I have a very simple web service that returns a string (hardcoded at that). I keep getting an error while parsing SOAP payload : Reserved XML Name.
I can view the WSDL n
Remove the whitespace before <?xml
and then it works. If you can't, maybe you can alter/extend the nusoap class to trim
the response before interpretation. Most likely the extra whitespace comes from some accidental whitespace outside the <?php
& ?>
tags.
Adding the following line in nusoap.php :
$this->responseData = trim($this->responseData);
before this line :
return $this->parseResponse($http->incoming_headers, trim($this->responseData));
solved my same problem
In my code it was poorly formatted XML, as in the Portuguese language BR has very special characters, quotes, did not close the tag correctly. At the end of the code shows the return, an XML, made a check at this site: http://www.xmlvalidation.com/ then he went back to work.