当前位置:编程学习 > C#/ASP.NET >>

求助wsdl报错

用ANT运行后报错
BUILD FAILED
C:\workspaces\wwwdocu\wsdl2java\build.xml:33: The following error occurred while executing this line:
C:\workspaces\wwwdocu\wsdl2java\build.xml:49: The following error occurred while executing this line:
C:\workspaces\wwwdocu\wsdl2java\build.xml:20: WSDL processing error for C:\workspaces\ServicesProject\serviceswsdl\getDocumentListService.wsdl : Type DocumentDTO is referenced but not defined.


WSDL如下:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:7001/serviceswebModule/services/getDocumentListService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:7001/serviceswebModule/services/getDocumentListService" xmlns:intf="http://localhost:7001/serviceswebModule/services/getDocumentListService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
 <wsdl:types>
  <schema targetNamespace="urn:servicesweb" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="DocumentDTO">
    <sequence>
     <element name="filecode" nillable="true" type="xsd:string"/>
     <element name="filecontext" nillable="true" type="xsd:string"/>
     <element name="fileid" nillable="true" type="xsd:int"/>
     <element name="filename" nillable="true" type="xsd:string"/>
     <element name="input" nillable="true" type="xsd:string"/>
     <element name="open" nillable="true" type="xsd:string"/>
     <element name="printnum" nillable="true" type="xsd:string"/>
     <element name="proofreading" nillable="true" type="xsd:string"/>
     <element name="recieve" nillable="true" type="xsd:string"/>
     <element name="releasedate" nillable="true" type="xsd:string"/>
     <element name="releaseobject" nillable="true" type="xsd:string"/>
     <element name="releaseplace" nillable="true" type="xsd:string"/>
     <element name="remarks" nillable="true" type="xsd:string"/>
     <element name="themeword" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
  <schema targetNamespace="http://localhost:7001/serviceswebModule/services/getDocumentListService" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="urn:servicesweb"/>
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="ArrayOf_tns1_DocumentDTO">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:DocumentDTO[]"/>
     </restriction>
    </complexContent>
   </complexType>
  </schema>
 </wsdl:types>
 
   <wsdl:message name="getDocumentListRequest">

   </wsdl:message> 
   
   <wsdl:message name="getDocumentListResponse">

     <wsdl:part name="getDocumentListReturn" type="impl:ArrayOf_tns1_DocumentDTO"/>

   </wsdl:message>
   
   <wsdl:portType name="GetDocumentListMgr">
      <wsdl:operation name="getDocumentList">

         <wsdl:input message="impl:getDocumentListRequest" name="getDocumentListRequest"/>

         <wsdl:output message="impl:getDocumentListResponse" name="getDocumentListResponse"/>

      </wsdl:operation>
   </wsdl:portType>

   <wsdl:binding name="getDocumentListServiceSoapBinding" type="impl:GetDocumentListMgr">

      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="getDocumentList">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="getDocumentListRequest">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:7001/serviceswebModule/services/getDocumentListService" use="encoded"/>

         </wsdl:input>

         <wsdl:output name="getDocumentListResponse">

            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:7001/serviceswebModule/services/getDocumentListService" use="encoded"/>

         </wsdl:output>

      </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="GetDocumentListMgrService">

      <wsdl:port binding="impl:getDocumentListServiceSoapBinding" name="getDocumentListService">

         <wsdlsoap:address location="http://localhost:7001/serviceswebModule/services/getDocumentListService"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>
--------------------编程问答-------------------- ding!!!!!!!!!!!!!
补充:.NET技术 ,  Web Services
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,