{"id":13284,"date":"2021-12-12T04:57:22","date_gmt":"2021-12-12T04:57:22","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=13284"},"modified":"2021-12-12T04:58:46","modified_gmt":"2021-12-12T04:58:46","slug":"xml-error-terminated-by-the-matching-end-tag","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/xml-error-terminated-by-the-matching-endtag\/30161.html","title":{"rendered":"XML Error &#8211; Terminated By The Matching End-Tag"},"content":{"rendered":"<p>Hi guys,<\/p>\n<p>I am trying to send a xml by telnet session, but i am receiving the following error:<br \/>\n<b><\/b><\/p>\n<pre><b>The element type \"soapenv:Envelope\" must be terminated by the matching end-tag \"&lt;\/soapenv:Envelope&gt;\"<\/b><\/pre>\n<p>Does anyone know why i am receiving this error ?<\/p>\n<p>The complete command is:<\/p>\n<pre>[root@rjmck01hpsa1 claudio]# telnet 10.111.11.11 8000\r\nTrying 10.129.64.60...\r\nConnected to rjmck01hpsa-cluster (10.111.11.11 ).\r\nEscape character is '^]'.\r\nPOST \/hpsaws\/services\/BRMSWebService?wsdl HTTP\/1.0\r\nContent-Type: text\/xml; charset=utf-8\r\nAccept: application\/soap+xml, application\/dime, multipart\/related, text\/*\r\nUser-Agent: Axis\/1.4\r\nHost: rjbot02-hppcrf01:8000\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nSOAPAction: \"\"\r\nContent-Length: 501\r\n\r\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;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\"&gt;\r\n &lt;soapenv:Body&gt;\r\n  &lt;ns1:getSubscriberProductsByMSISDN soapenv:encodingStyle=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:ns1=\"http:\/\/axis.brms.hp.com\"&gt;\r\n   &lt;msisdn xsi:type=\"xsd:string\"&gt;1112345879628&lt;\/msisdn&gt;\r\n  &lt;\/ns1:getSubscriberProductsByMSISDN&gt;\r\n &lt;\/soapenv:Body&gt;\r\n&lt;\/soapenv:Envelope&gt;<\/pre>\n<p>The complete error is:<\/p>\n<pre>HTTP\/1.1 500 Internal Server Error\r\nServer: Apache-Coyote\/1.1\r\nX-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)\/Tomcat-5.5\r\nContent-Type: text\/xml;charset=utf-8\r\nDate: Thu, 24 Sep 2015 19:28:36 GMT\r\nConnection: close\r\n\r\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&lt;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\"&gt;&lt;soapenv:Body&gt;&lt;soapenv:Fault&gt;&lt;faultcode&gt;soapenv:Server.userException&lt;\/faultcode&gt;&lt;faultstring&gt;org.xml.sax.SAXParseException: The element type \"soapenv:Envelope\" must be terminated by the matching end-tag \"&lt;\/soapenv:Envelope&gt;\".&lt;\/faultstring&gt;&lt;detail&gt;&lt;ns1:hostname xmlns:ns1=\"http:\/\/xml.apache.org\/axis\/\"&gt;rjmck01hpsa1&lt;\/ns1:hostname&gt;&lt;\/detail&gt;&lt;\/soapenv:Fault&gt;&lt;\/soapenv:Body&gt;&lt;\/soapenv:Envelope&gt;Connection closed by foreign host.<\/pre>\n<p>&nbsp;<\/p>\n<p align=\"right\"><span style=\"font-size: xx-small;\"><i>message edited by surfistadesampa<\/i><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":4},"question-category":[55],"question_tags":[],"class_list":["post-13284","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/13284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=13284"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=13284"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=13284"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=13284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}