XML error parsing SOAP payload: Reserved XML Name

后端 未结 3 1131
孤街浪徒
孤街浪徒 2021-01-22 13:15

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

相关标签:
3条回答
  • 2021-01-22 13:40

    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.

    0 讨论(0)
  • 2021-01-22 13:49

    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

    0 讨论(0)
  • 2021-01-22 13:51

    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.

    0 讨论(0)
提交回复
热议问题