Gwt 类型{http://www.w3.org/2001/XMLSchema}xml被引用但未定义

Gwt 类型{http://www.w3.org/2001/XMLSchema}xml被引用但未定义,gwt,soap,wsdl,axis,Gwt,Soap,Wsdl,Axis,我在GWT服务器端使用axis1.4访问SOAP 这是我的密码: String result = ""; QName servQN = new QName("XYZService"); Service service = new Service( wsdlLocation, servQN ); Call call = (Call) service.createCall(); call.setOperationName("call"); call.setTargetEndpointA

我在
GWT
服务器端使用
axis1.4
访问
SOAP

这是我的密码:

String result = "";
QName servQN = new QName("XYZService");
Service service = new Service( wsdlLocation, servQN );
Call    call    = (Call) service.createCall();

call.setOperationName("call");
call.setTargetEndpointAddress( endpointURL );

result += (String) call.invoke( new Object[] { "LOGIN", arr } );
然后,这里是我创建的wsdl文件:

<?xml version ="1.0" encoding ="UTF-8" ?>
<definitions name="XYZ" 
 targetNamespace="http://xxx.yyyyy.com/xxxserv/soap/main.wdsl" 
 xmlns="http://schemas.xmlsoap.org/wsdl/"
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:tns="http://xxx.yyyyy.com/xxxserv/soap/main.wdsl"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<message name="getRequest"> 
  <part name="action" type="xsd:string"/> 
  <part name="params" type="xsd:xml"/> 
</message> 
<message name="getResponse"> 
  <part name="Result" type="xsd:xml"/> 
</message> 

<portType name="XYZPortType"> 
  <operation name="get">
    <input message="tns:getRequest"/> 
    <output message="tns:getResponse"/>   
  </operation>
</portType> 

<binding name="XYZBinding" type="tns:XYZPortType"> 
  <soap:binding style="rpc" 
    transport="http://schemas.xmlsoap.org/soap/http"/> 
  <operation name="get"> 
    <soap:operation soapAction="urn:localhost-main#get"/> 
    <input> 
      <soap:body use="encoded" namespace="urn:localhost-main" 
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    </input> 
    <output> 
      <soap:body use="encoded" namespace="urn:localhost-main" 
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    </output> 
  </operation>
</binding> 

<service name="XYZService"> 
  <port name="XYZPort" binding="tns:XYZBinding"> 
    <soap:address location="http://xxx.yyyyy.com/xxxserv/soap/server.php"/> 
  </port> 
</service>

我在wsdl文件中做错了什么?请提供帮助。

您的WSDL定义了两个消息部分,它们引用名为
xsd:xml
的类型。然而,这种类型并不存在。请注意,您可以在此处查阅XML模式规范定义的类型列表:


您的WSDL定义了两个消息部分,它们引用一个名为
xsd:xml
的类型。然而,这种类型并不存在。请注意,您可以在此处查阅XML模式规范定义的类型列表:

javax.xml.rpc.ServiceException: Error processing WSDL document:  
java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}xml is referenced but not defined.