SoapFault exception: looks like we got no XML document
From FVue
Problem
A SOAP request fails with this error message:
looks like we got no XML document
Environment
- php-5.3
Solution
The error seems to indicate that although an XML document *is* sent, the XML is not valid according to the SOAP server's DTD or XML Schema.
Fortunately I have a working SOAP request, and by comparing the working request with the erroneous request, the cause appears to be a comma (,) instead of a period (.) inside an `xsd:decimal'.
In my case the WSDL shows the SOAP server is expecting an `xsd:decimal':
<xsd:element name="price" type="xsd:decimal"/>and I'm sending a comma-separated price:
6,36
which should be period-separated:
6.36
Now the XML document is received all right :-)