Hi guys,
I am trying to send a xml by telnet session, but i am receiving the following error:
The element type "soapenv:Envelope" must be terminated by the matching end-tag "</soapenv:Envelope>"
Does anyone know why i am receiving this error ?
The complete command is:
[root@rjmck01hpsa1 claudio]# telnet 10.111.11.11 8000 Trying 10.129.64.60... Connected to rjmck01hpsa-cluster (10.111.11.11 ). Escape character is '^]'. POST /hpsaws/services/BRMSWebService?wsdl HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: rjbot02-hppcrf01:8000 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 501 <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getSubscriberProductsByMSISDN soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://axis.brms.hp.com"> <msisdn xsi:type="xsd:string">1112345879628</msisdn> </ns1:getSubscriberProductsByMSISDN> </soapenv:Body> </soapenv:Envelope>
The complete error is:
HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 Content-Type: text/xml;charset=utf-8 Date: Thu, 24 Sep 2015 19:28:36 GMT Connection: close <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXParseException: The element type "soapenv:Envelope" must be terminated by the matching end-tag "</soapenv:Envelope>".</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">rjmck01hpsa1</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>Connection closed by foreign host.
message edited by surfistadesampa
<?xml version=”1.0″ encoding=”UTF-8″?>
<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
</soapenv:Envelope>
<soapenv:Body>
<ns1:getSubscriberProductsByMSISDN soapenv:
encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/”
xmlns:ns1=”http://axis.brms.hp.com”>
<msisdn xsi:type=”xsd:string”>1112345879628</msisdn>
</ns1:getSubscriberProductsByMSISDN>
</soapenv:Body>
in case the envelope is heirarchically above the body and not the parent/container. Other than that, maybe google can help find a good example…