Hi, I'm getting XMLSyntaxError whilst parsing the POST request using spyne. With same code it works when xml is sent from SOAP UI, I compared the Request headers and I found the following difference.
The difference I found was the additional header here : *MIMEBoundary etc.* *Not sure if that is the issue for the XML parser ? Please have a look.* POST /netact/cm/open-api/operations/OpenCmOperationsNotificationServiceSOAP HTTP/1.1 Host: 10.233.194.212:4500 Accept: application/soap+xml,multipart/related,text/* User-Agent: IBM WebServices/1.0 Cache-Control: no-cache Pragma: no-cache SOAPAction: " http://www.nsn.com/schemas/public/cm/open-api/operations/OpenCmOperationsService/statusNotification " Connection: Keep-Alive IBM-WAS-CLIENT: TRUE Content-Type: multipart/related; boundary="MIMEBoundary_20e962709bc8b20fb713ba2f39afb0a2416f09400f0a38f7"; type="application/xop+xml"; start="< 0.d1e962709bc8b20fb713ba2f39afb0a2416f09400f0a3...@apache.org>"; start-info="text/xml" Content-Length: 962 Date: Tue, 24 Jan 2017 10:13:35 GMT *--MIMEBoundary_20e962709bc8b20fb713ba2f39afb0a2416f09400f0a38f7* *Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"* *Content-Transfer-Encoding: binary* *Content-ID: <0.d1e962709bc8b20fb713ba2f39afb0a2416f09400f0a3...@apache.org <0.d1e962709bc8b20fb713ba2f39afb0a2416f09400f0a3...@apache.org>>* *<soapenv:Envelope><soapenv:Body> xml_data </soapenv:Body></soapenv:Envelope>* *________________________________________________________________________* *The one with SOAP UI worked fine and NO errors :* *POST /nbi?wsdl HTTP/1.1* *Accept-Encoding: gzip,deflate* *Content-Type: text/xml;charset=UTF-8* *SOAPAction: "http://www.nsn.com/schemas/public/cm/open-api/operations/OpenCmOperationsService/statusNotification <http://www.nsn.com/schemas/public/cm/open-api/operations/OpenCmOperationsService/statusNotification>"* *Content-Length: 649* *Host: ic-vm-129.cisco.com:5080 <http://ic-vm-129.cisco.com:5080>* *Connection: Keep-Alive* *User-Agent: Apache-HttpClient/4.1.1 (java 1.5)* *<soapenv:Envelope><soapenv:Body> xml_data </soapenv:Body></soapenv:Envelope>* *Looking forward for help.* *thanks* *Himanshu*
_______________________________________________ Spyne community mailing list people@spyne.io http://lists.spyne.io/listinfo/people