on 05-02-2014 8:48 AM
Hi together,
I try to establish a connection to a webservice over soap protocol.
The integration process: synchronous Abap Proxy <-> SAP PI (7.1) <-> Web Service.
In the inbound communication channel I have set parameter "do not use SOAP Envelope". The soap envelope is created by XSLT mapping.
Message content:
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:reg="http://regis_tr_xml_load" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns1:send_xml>
</soapenv:Body>
</soapenv:Envelope>
As response I get following error message:
<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</ns1:send_xmlResponse>
</soapenv:Body>
</soapenv:Envelope>
If i try to send the message with the same content over SOUP UI works fine.
I have tried different settings but have no success.
Thanks,
Vadim
Hi Can,
if I put the same content into SOAP UI tool it works fine.
Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:send_xmlResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://regis_tr_xml_load">
<send_xmlReturn xsi:type="xsd:string"/>
</ns1:send_xmlResponse>
</soapenv:Body>
</soapenv:Envelope>
So from my point of view it could not be the error in the XML format.
The only difference I have found till now is that SOAP UI send the message with content-type "text/xml". And in the transaction SXMB_MONI of SAP PI I see content-type "application/xml).
Could it be a problem?
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
The content-type can give problems too. Have you checked the XML sxmb_moni with notepad editor in order to view if the tags are correctly interpreted?
Also with the XSL you can control the content-type and this instruction:
<xsl:output
method="xml|html|text|name"
version="string"
encoding="string"
omit-xml-declaration="yes|no"
standalone="yes|no"
doctype-public="string"
doctype-system="string"
cdata-section-elements="namelist"
indent="yes|no"
media-type="string"/>
Regards.
Hi Vadim,
Maybe Iñaki is correct, but check the XML content also, I have faced this issue time ago and the problem was in the XML format.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Looking the wenbservice response i notice a problem similar than i have recently. If you check the answer the tag has
xsi:type="xsd:string" in <send_xmlReturn xsi:type="xsd:string">
I think that you have to set this xsi:type="xsd:string" in the request root tag as well. May be in all your request tags too.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.