<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://some.shopdomain.com/soap.php" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> etc.....
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://some.shopdomain.com/soap.php" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> etc.....
Answers
How do you create the Soap Request? Do you use MS XML 6.x?
Regards
Thomas
Name DataType Subtype XMLHttp Automation 'Microsoft XML, v6.0'.XMLHTTP60 XMLDomDoc Automation 'Microsoft XML, v6.0'.DOMDocument XMLDomNode Automation 'Microsoft XML, v6.0'.IXMLDOMNode CGBase64 Automation 'CG Request Client'.Base64 ADOStream Automation 'Microsoft ActiveX Data Objects 2.7 Library'.Stream
I have access to a testsite where I can enter and test the content of the envelope, see the complete request and see the result. The content is ok - the only problem (for now) is the SOAP-ENC/SOAP-ENV line in the request.
Imo it's better not to add xml content combining parts with '+' like a text. Better use xmlDOMDoc to add the content. This way you have full control of the Document and if there is a problem normally you'll find out very soon.
Try this:
http://www.mibuso.com/dlinfo.asp?FileID=1384
Anyway, what happens if you replace the 2. ENV by ENV? If you use a tool like xmlSpy, everything looks ok, no schema errors, etc.?
your SOAP-ENV was not created in the correct order. Use above.
When I have problems with an xml, I save it and open it up in www.firstobject XML editor. Hope it helps.
Thats what I mean. I you use xmlDomDoc to create, it's not possible to add "uneven" tags/elements, the document has to be well formed.
If I use ENV I can open the request in Internet Explorer.
NAV will not create the request if I use ENC - and it has to be ENC
Have you used e.g. SOAPUI or Fiddler to catch the communication and the real message send to the server when using -ENC? It seems that you haven't changed the ENV for ENC everywhere where needed.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I save the request as a file before it's send.
With ENC I get an empty file and with ENV a correct structured file.