I have written few function where it need to call using SOAP and PHP Curl. I started getting error:
SOAP-ENV:Client
parsing error: org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
After reading at lots of places I could not find the solution. I read about XML rule – Each element must have a closing element and case must also match, element cannot nest in each other. But I could not find the solution. Then I got that I am not calling it the way I need to call it. and That was the problem.
Then after that I got new error which was coming due to the experiment I was doing for solving the above error. This error was easy to recognize:
Error:
SOAP-ENV:Server
java.lang.NoSuchMethodException: no such method 'do_ota_profilecreaterq' on
This was due to the case not matching with the actual function given to me for web service. Actual was profileCreateRQ().