Good afternoon, the service http_url_post_xml is returning this error
<faultcode>a:DeserializationFailed</faultcode><faultstring>The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'MolST247Transacciones'. End element 'XmlInMol' from namespace 'http://tempuri.org/' expected. Found element 'DATA' from namespace ''. Line 1, position 303.</faultstring><s:Fault></s:Fault><s:Body></s:Body><s:Envelope></s:Envelope>
Please if you can tell me what the error could be.
Thanks.
service http_url_post_xml
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: service http_url_post_xml
This message is NOT coming from http_url_post_xml. It is coming from the HTTP server that you are communicating with.
The message says that it is having a problem interpreting the XML document that you are sending. Please read this:
It says that instead of the end of the XmlInMol element, it is finding element "DATA" from namespace ''. (In other words, there's no namespace, or it is blank.) This looks to me like someone created an XML document incorrectly. Sent it to an HTTP server (probably using the SOAP protocol) and since it was invalid, the server sent back a message explaining what was wrong.
Fix your XML.
The message says that it is having a problem interpreting the XML document that you are sending. Please read this:
It says it is expecting the end of the XmlInMol element -- this is something specific to your application, but... surely if you look at how your program works, you can see where the XmlInMol element starts, and determine where it is supposed to end, right?End element 'XmlInMol' from namespace 'http://tempuri.org/' expected. Found element 'DATA' from namespace ''. Line 1, position 303
It says that instead of the end of the XmlInMol element, it is finding element "DATA" from namespace ''. (In other words, there's no namespace, or it is blank.) This looks to me like someone created an XML document incorrectly. Sent it to an HTTP server (probably using the SOAP protocol) and since it was invalid, the server sent back a message explaining what was wrong.
Fix your XML.
Re: service http_url_post_xml
Thank you very much for the comments, I already found the problem, it was a Ñ in the address TAG, which possibly interprets it as an invalid character.
Thank you.
Thank you.