基于Axis 1.4的Web服务。 客户端发送以下请求:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://org.mysite.services/service/np">
<SOAP-ENV:Body>
<ABC:createAction>
<ABC:resourceID>MyResource</ABC:resourceID>
</ABC:createAction>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
错误:
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: The prefix ”ABC” for element
“ABC:createAction” is not bound.
</faultstring>
server-config.wsdd具有以下配置:
<service name="MyService" provider="java:RPC" style="wrapped" use="literal">
<namespace>http://webservices.mysite.org</namespace>
更新:
在此上下文中,正确的客户端请求应如何查看?