on 05-26-2008 1:22 PM
Hi!
I'm trying to receive correct response from WebService. I read almost all blogs trying to find solution into my problem. Using TCPGateway and some logs from WebService I think I found place from where "HTTP 411 error - length required" comes. It is because SAP adds some extra information into SOAP header.
When I use SOAP Envelope my request looks:
POST / HTTP/1.0
Accept: */*
Host: 192.168.132.179:54000
User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
Content-ID: <soap-02cce7702b1a11dd9902000c29ee261e[at]sap.com>
Content-Type: text/xml; charset=utf-8
Content-Disposition: attachment;filename="soap-02cce7702b1a11dd9902000c29ee261e[at]sap.com.xml"
Content-Description: SOAP
Content-Length: 259
SOAPACTION:
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Header/><SOAP:Body><ns0:Sd2Ids_SzfExport xmlns:ns0='http://www.dat.de/sdii/ids/Sd2SOAP.wsdl'><arg1>1234567899-0</arg1><arg2>1</arg2></ns0:Sd2Ids_SzfExport></SOAP:Body></SOAP:Envelope>
When I DO NOT USE SOAP Envelope my request looks:
POST / HTTP/1.0
Accept: */*
Host: 192.168.132.179:54000
User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
content-id: payload-DD2B1AE2E8E735F182A00002A547E483[at]sap.com
Content-Type: text/xml
Content-Length: 175
SOAPACTION:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Sd2Ids_SzfExport xmlns:ns0="http://www.dat.de/sdii/ids/Sd2SOAP.wsdl"><arg1>1234567899-0</arg1><arg2>1</arg2></ns0:Sd2Ids_SzfExport>
*Question
How can I force XI to DO NOT generate in SOAP header below lines and still using SOAP Envelope?*
Content-Disposition: attachment;filename="soap-02cce7702b1a11dd9902000c29ee261e[at]sap.com.xml"
Content-Description: SOAP
U may write a java mapping code to edit the soap envelop
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Plz don't mind if you don't wish to include any SOAP related header information then, Is there any specifci need of using the SOAP enevlope. you can uncheck the usage of SOAP enevlope.
Else probably you may need to design your own Adapter module to achieve this kind of requirment.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did a small additional test. I pasted the same XI request which produces error into Altova and I send it to WebService... and surprise - I got a good answer. So I've checked logs in WebService and probably I found the real reason of my problems. SAP calculates length as 259 and Altova as 261 chars. I've checked in text editor how long is XI request and it is... 261 chars long!
Any ideas how can I force content-length to display correct value?
My whole message looks:
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Header/>
<SOAP:Body>
<ns0:Sd2Ids_SzfExport xmlns:ns0='http://www.dat.de/sdii/ids/Sd2SOAP.wsdl'>
<arg1>1234567899-0</arg1>
<arg2>1</arg2>
</ns0:Sd2Ids_SzfExport>
</SOAP:Body>
</SOAP:Envelope>
I do not see here any non-ascii characters
Edited by: Tomasz Suchanek on May 26, 2008 10:49 AM
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.