0

基于 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>

更新:

在这种情况下,正确的客户请求应该如何看待?

4

0 回答 0