【发布时间】:2015-02-11 06:39:11
【问题描述】:
我有一个简单地检查帐户余额的 SOAP 请求。
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:someurn">
<SOAP-ENV:Body>
<Execute xmlns="">
<sessionId xmlns="">SomeSessionID</sessionId>
<username xmlns="">SomeUserName</username>
<password xmlns="">SomePassword</password>
<command xmlns="">CommandName</command>
<data xmlns=""><?xml version="1.0"?><meta><accountNo></accountNo></meta>
</data>
</Execute>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
每当我提出请求时,都会发生此错误,我已经阅读了一些关于此的堆栈问题,我需要清除我已经完成的空格,我还尝试使用 html 实体作为问号仍然无济于事。
错误是:XML error parsing SOAP payload on line 14: Reserved XML Name which is the data tag。
有人可以帮我吗?另外,我正在使用 Java 向服务器发出请求。
【问题讨论】:
标签: java xml web-services soap nusoap