Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error when generating WS Client code using wsdl

 
Wendy Tao
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new for web service. I got a pmp.wsdl file to develope WS client. I am using eclipse/wtp. When I tried to generate the WS Client code, I received the following error. I also attached the pmp.wsdl file at the end.

Any ideas or suggestions on solving this error?

Thanks,

Wendy
-------------------------------------------------------------

IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type {urn mp_service}ModelInfoStruct is referenced but not defined.
java.io.IOException: Type {urn mp_service}ModelInfoStruct is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)







Listed below is the wsdl file.

<?xml version="1.0"?>
<definitions name="pmp_service"
targetNamespace="urn mp_service"
xmlns:tns="urn mp_service"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/" >

<types>
<xsd:schema
targetNamespace="pmp_service"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:complexType name="ServerAnswerStruct">
<xsd:all>
<xsd:element name="returncode" type="xsd:int"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="errortext"type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="VersionStruct">
<xsd:all>
<xsd:element name="titel" type="xsd:string"/>
<xsd:element name="server" type="xsd:string"/>
<xsd:element name="db" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ProviderInfoStruct">
<xsd:all>
<xsd:element name="provider" type="xsd:string"/>
<xsd:element name="model_count"type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ArrayOfProviderInfo">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns roviderInfoStruct[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ModelInfoStruct">
<xsd:all>
<xsd:element name="pmp_uid" type="xsd:string"/>
<xsd:element name="portal_url" type="xsd:string"/>
<xsd:element name="provider" type="xsd:string"/>
<xsd:element name="provider_uid" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="templates" type="xsd:string"/>
<xsd:element name="tt_seq_id" type="xsd:string"/>
<xsd:element name="qe" type="xsd:string"/>
<xsd:element name="reference_key" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="reference_match_from" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="reference_match_to" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="reference_annotation" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="reference_ac" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="reference_hash" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
<xsd:element name="model_seq_hash" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ModelInfoArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:ModelInfoStruct[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ModelSummaryStruct">
<xsd:all>
<xsd:element name="returncode" type="xsd:int"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="errortext" type="xsd:string"/>
<xsd:element name="model_count" type="xsd:string"/>
<xsd:element name="provider_list" type="extends:ArrayOfProviderInfo" xmlns:extends="pmp_service"/>
<xsd:element name="model_list_length" type="xsd:string"/>
<xsd:element name="model_list" type="extends:ModelInfoArray" xmlns:extends="pmp_service"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="AsyncSummaryStruct">
<xsd:all>
<xsd:element name="returncode" type="xsd:int"/>
<xsd:element name="state" type="xsd:string"/>
<xsd:element name="errortext" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="VersionResponse">
<xsd:all>
<xsd:element name="server" type="extends:ServerAnswerStruct" xmlns:extends="pmp_service"/>
<xsd:element name="version" type="extends:VersionStruct" xmlns:extends="pmp_service"/>
<xsd:element name="sid" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ModelSummaryResponse">
<xsd:all>
<xsd:element name="server" type="extends:ServerAnswerStruct" xmlns:extends="pmp_service"/>
<xsd:element name="summary" type="extends:ModelSummaryStruct" xmlns:extends="pmp_service"/>
<xsd:element name="sid" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="StartAsyncResponse">
<xsd:all>
<xsd:element name="server" type="extends:ServerAnswerStruct" xmlns:extends="pmp_service"/>
<xsd:element name="summary" type="extends:AsyncSummaryStruct" xmlns:extends="pmp_service"/>
<xsd:element name="sid" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>

<message name="connectTestRequest"/>
<message name="connectTestResponse">
<part name="result" type="xsd:string"/>
</message>
<message name="getVersionsRequest">
<part name="sid" type="xsd:string"/>
</message>
<message name="getVersionsResponse">
<part name="result" type="extends:VersionResponse" xmlns:extends="pmp_service"/>
</message>
<message name="queryByACRequest">
<part name="ac" type="xsd:string"/>
<part name="sid" type="xsd:string"/>
<part name="actype" type="xsd:string"/>
<part name="range_from" type="xsd:string"/>
<part name="range_to" type="xsd:string"/>
<part name="checksum" type="xsd:string"/>
<part name="sorting" type="xsd:string"/>
<part name="limits" type="xsd:string"/>
</message>
<message name="queryByACResponse">
<part name="result" type="extends:ModelSummaryResponse" xmlns:extends="pmp_service"/>
</message>
<message name="queryBySeqRequest">
<part name="seq" type="xsd:string"/>
<part name="sid" type="xsd:string"/>
</message>
<message name="queryBySeqResponse">
<part name="result" type="extends:ModelSummaryResponse" xmlns:extends="pmp_service"/>
</message>
<message name="startQueryBySeqAsyncRequest">
<part name="seq" type="xsd:string"/>
<part name="sid" type="xsd:string"/>
<part name="args" type="xsd:string"/> <!-- PRIVATE: will disapear later -->
</message>
<message name="startQueryBySeqAsyncResponse">
<part name="result" type="extends:StartAsyncResponse" xmlns:extends="pmp_service"/>
</message>
<message name="statusQueryBySeqAsyncRequest">
<part name="sid" type="xsd:string"/>
</message>
<message name="statusQueryBySeqAsyncResponse">
<part name="result" type="extends:ModelSummaryResponse" xmlns:extends="pmp_service"/>
</message>
<message name="queryByTemplateIDRequest">
<part name="pdbid" type="xsd:string"/>
<part name="sid" type="xsd:string"/>
</message>
<message name="queryByTemplateIDResponse">
<part name="result" type="extends:ModelSummaryResponse" xmlns:extends="pmp_service"/>
</message>

<portType name="PMP_SERVICE_PortType">
<operation name="connectTest">
<input message="tns:connectTestRequest"/>
<output message="tns:connectTestResponse"/>
</operation>
<operation name="getVersions">
<input message="tns:getVersionsRequest"/>
<output message="tns:getVersionsResponse"/>
</operation>
<operation name="queryByAC">
<input message="tns:queryByACRequest"/>
<output message="tns:queryByACResponse"/>
</operation>
<operation name="queryBySeq">
<input message="tns:queryBySeqRequest"/>
<output message="tns:queryBySeqResponse"/>
</operation>
<operation name="startQueryBySeqAsync">
<input message="tns:startQueryBySeqAsyncRequest"/>
<output message="tns:startQueryBySeqAsyncResponse"/>
</operation>
<operation name="statusQueryBySeqAsync">
<input message="tns:statusQueryBySeqAsyncRequest"/>
<output message="tns:statusQueryBySeqAsyncResponse"/>
</operation>
<operation name="queryByTemplateID">
<input message="tns:queryByTemplateIDRequest"/>
<output message="tns:queryByTemplateIDResponse"/>
</operation>
</portType>

<binding name="PMP_SERVICE_Binding" type="tns MP_SERVICE_PortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="connectTest">
<soap peration soapAction=""/>
<input>
<soap:body use="literal" namespace="pmp_service" />
</input>
<output>
<soap:body use="literal" namespace="pmp_service" />
</output>
</operation>

<operation name="getVersions">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>

<operation name="queryByAC">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>
<operation name="queryBySeq">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>
<operation name="startQueryBySeqAsync">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>
<operation name="statusQueryBySeqAsync">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>
<operation name="queryByTemplateID">
<soap peration soapAction=""/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="pmp_service" />
</output>
</operation>
</binding>

<service name="pmp_service">
<port name="PMP_SERVICE_Port" binding="tns MP_SERVICE_Binding">
<soap:address location="http://www.proteinmodelportal.org/service/pmp.cgi"/>
</port>
</service>
</definitions>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic