tags:

views:

91

answers:

0

I am connecting from php using nusoap to the sap soap web service, we had some proples getting it to work but I have now manage to get the connection to work. When I do a service call from php the sap web service get the requests but does not convert it to a soap object instead it seems to escape my call and pass it as a string...

my call soap call in raw text

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.eeee.com/getmksapcrmbp/"&gt;&lt;SOAP-ENV:Body&gt;&lt;tns:Request xmlns:tns="http://www.eeee.com/getmksapcrmbp/"&gt;&lt;value name="BP_NUMBER">0001000001</value></tns:Request></SOAP-ENV:Body></SOAP-ENV:Envelope>

and the soap response I get

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <SOAP-ENV:Body> <SOAP-ENV:Fault>   <faultcode>SOAP-ENV:Server</faultcode><faultstring>[ISS.0088.9116] The server cannot execute the requested SOAP utility; required parameter soapData is missing or invalid</faultstring>
<faultactor>http://schemas.xmlsoap.org/soap/actor/next/&lt;/faultactor&gt;&lt;/SOAP-ENV:Fault&gt;&lt;/SOAP-ENV:Body&gt;

Now on the soap server this is what is recorded

alt text

I decide to take a picture of the sap output because the escaped tags we being shown as normal tags.

The sap server seems to catch my call as a string in stead of creating a soap object.