I have found that when the xml message inside the soap:body has the xml declaration that it throws this error
HTTP/ASMX Message Receive Failure: System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 951.
However, If i remove the xml declaration inside the soap:body this is what is returned
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<faultstring>The message is not a valid XML message</faultstring>
I have tried enclosing the entire xmlmessage node inside the soap:body in CDATA, as well as the just the xmlmessage node's xml declaration and that did not work.
Does anyone know what I have to do to get this to work? The webservice I am trying to consume is written in C# and unfortunately the server that this site is on does not have asp.net enabled on it so I can not use C# to consume the webservice and need to find a way to consume the webservice.