You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jane Knight <ja...@yahoo.com> on 2004/08/27 14:28:28 UTC

problem generating client - getMinOccrs()I

Hiya,

I was wondering if someone can help me..  using the binary version of wsdl2ws on Linux I am trying to generate client from a wsdl file but I get following error:


[jane@Linux-PC xmethod]$ java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws method.wsdl
-lc++ -sclient
args =
args =
1

-------------------------------------------------------------------------

############## the type found
={http://www.xmethods.net/interfaces/query.xsd}IDNamePair
Exception in thread "main"
java.lang.NoSuchMethodError:
org.apache.axis.wsdl.symbolTable.ElementDecl.getMinOccrs()I
        at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createTypeInfo(WSDL2Ws.java:615)
        at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getTypeInfo(WSDL2Ws.java:380)
        at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.genarateWrappers(WSDL2Ws.java:405)
        at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:699)

-------------------------------------------------------------------------

The WSDL file seems fine because I used gSOAP to generate stubs from it and had no problem.

I have been stuck on this for more than 2 weeks now, I will really appreciate if you can help me in resolving the problem. The code for WSDL file is shown below:


Thank you very much,

Regards,

Jane




<?xml version="1.0" encoding="UTF-8"?>
<definitions name="XMethodsQuery"

targetNamespace="http://www.xmethods.net/interfaces/query.wsdl"

xmlns:tns="http://www.xmethods.net/interfaces/query.wsdl"

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:t="http://www.xmethods.net/interfaces/query.xsd"
 xmlns:ns="http://www.xmethods.net/interfaces/query"
 xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
 xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>

 <schema
targetNamespace="http://www.xmethods.net/interfaces/query.xsd"
 
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:t="http://www.xmethods.net/interfaces/query.xsd"
  xmlns:ns="http://www.xmethods.net/interfaces/query"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  <complexType name="ServiceSummary">
   <sequence>
    <element name="name" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="id" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
    <element name="shortDescription" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="wsdlURL" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="publisherID" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
   </sequence>
  </complexType>
  <complexType name="ServiceDetail">
   <sequence>
    <element name="name" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="id" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
    <element name="shortDescription" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="description" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="implementationID" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="email" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="wsdlURL" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="infoURL" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="discussionURL" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="notes" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="tmodelID" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="publisherID" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
    <element name="uuid" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
   </sequence>
  </complexType>
  <complexType name="IDNamePair">
   <sequence>
    <element name="id" type="xsd:string" minOccurs="0"
maxOccurs="1" nillable="true"/>
    <element name="name" type="xsd:string"
minOccurs="0" maxOccurs="1" nillable="true"/>
   </sequence>
  </complexType>
 </schema>

 <schema
targetNamespace="http://www.xmethods.net/interfaces/query"
 
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:t="http://www.xmethods.net/interfaces/query.xsd"
  xmlns:ns="http://www.xmethods.net/interfaces/query"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  <import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  <complexType name="ArrayOfServiceSummary">
   <complexContent>
    <restriction base="SOAP-ENC:Array">
     <sequence>
      <element name="item" type="t:ServiceSummary"
minOccurs="0" maxOccurs="unbounded"/>
     </sequence>
     <attribute ref="SOAP-ENC:arrayType"
WSDL:arrayType="t:ServiceSummary[]"/>
    </restriction>
   </complexContent>
  </complexType>
  <complexType name="ArrayOfIDNamePair">
   <complexContent>
    <restriction base="SOAP-ENC:Array">
     <sequence>
      <element name="item" type="t:IDNamePair"
minOccurs="0" maxOccurs="unbounded"/>
     </sequence>
     <attribute ref="SOAP-ENC:arrayType"
WSDL:arrayType="t:IDNamePair[]"/>
    </restriction>
   </complexContent>
  </complexType>
 </schema>

</types>

<message name="getAllServiceSummariesRequest">
</message>

<message name="getAllServiceSummariesResponse">
 <part name="param-1"
type="ns:ArrayOfServiceSummary"/>
</message>

<message name="getServiceSummariesByPublisherRequest">
 <part name="publisherID" type="xsd:string"/>
</message>

<message
name="getServiceSummariesByPublisherResponse">
 <part name="param-2"
type="ns:ArrayOfServiceSummary"/>
</message>

<message name="getServiceDetailRequest">
 <part name="id" type="xsd:string"/>
</message>

<message name="ServiceDetail">
 <part name="name" type="xsd:string"/>
 <part name="id" type="xsd:string"/>
 <part name="shortDescription" type="xsd:string"/>
 <part name="description" type="xsd:string"/>
 <part name="implementationID" type="xsd:string"/>
 <part name="email" type="xsd:string"/>
 <part name="wsdlURL" type="xsd:string"/>
 <part name="infoURL" type="xsd:string"/>
 <part name="discussionURL" type="xsd:string"/>
 <part name="notes" type="xsd:string"/>
 <part name="tmodelID" type="xsd:string"/>
 <part name="publisherID" type="xsd:string"/>
 <part name="uuid" type="xsd:string"/>
</message>

<message name="getAllServiceNamesRequest">
</message>

<message name="getAllServiceNamesResponse">
 <part name="param-4" type="ns:ArrayOfIDNamePair"/>
</message>

<message name="getServiceNamesByPublisherRequest">
 <part name="publisherID" type="xsd:string"/>
</message>

<message name="getServiceNamesByPublisherResponse">
 <part name="param-5" type="ns:ArrayOfIDNamePair"/>
</message>

<portType name="XMethodsQueryPortType">
 <operation name="getAllServiceSummaries">
  <documentation>Service definition of function
ns__getAllServiceSummaries</documentation>
  <input message="tns:getAllServiceSummariesRequest"/>
  <output
message="tns:getAllServiceSummariesResponse"/>
 </operation>
 <operation name="getServiceSummariesByPublisher">
  <documentation>Service definition of function
ns__getServiceSummariesByPublisher</documentation>
  <input
message="tns:getServiceSummariesByPublisherRequest"/>
  <output
message="tns:getServiceSummariesByPublisherResponse"/>
 </operation>
 <operation name="getServiceDetail">
  <documentation>Service definition of function
ns__getServiceDetail</documentation>
  <input message="tns:getServiceDetailRequest"/>
  <output message="tns:ServiceDetail"/>
 </operation>
 <operation name="getAllServiceNames">
  <documentation>Service definition of function
ns__getAllServiceNames</documentation>
  <input message="tns:getAllServiceNamesRequest"/>
  <output message="tns:getAllServiceNamesResponse"/>
 </operation>
 <operation name="getServiceNamesByPublisher">
  <documentation>Service definition of function
ns__getServiceNamesByPublisher</documentation>
  <input
message="tns:getServiceNamesByPublisherRequest"/>
  <output
message="tns:getServiceNamesByPublisherResponse"/>
 </operation>
</portType>

<binding name="XMethodsQuery"
type="tns:XMethodsQueryPortType">
 <SOAP:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
 <operation name="getAllServiceSummaries">
  <SOAP:operation style="rpc" soapAction=""/>
  <input>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </input>
  <output>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </output>
 </operation>
 <operation name="getServiceSummariesByPublisher">
  <SOAP:operation style="rpc" soapAction=""/>
  <input>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </input>
  <output>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </output>
 </operation>
 <operation name="getServiceDetail">
  <SOAP:operation style="rpc" soapAction=""/>
  <input>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </input>
  <output>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </output>
 </operation>
 <operation name="getAllServiceNames">
  <SOAP:operation style="rpc" soapAction=""/>
  <input>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </input>
  <output>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </output>
 </operation>
 <operation name="getServiceNamesByPublisher">
  <SOAP:operation style="rpc" soapAction=""/>
  <input>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </input>
  <output>
   <SOAP:body use="encoded"
namespace="http://www.xmethods.net/interfaces/query"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
  </output>
 </operation>
</binding>

<service name="XMethodsQuery">
 <documentation>gSOAP 2.6.0 generated service
definition</documentation>
 <port name="XMethodsQuery"
binding="tns:XMethodsQuery">
  <SOAP:address
location="http://www.xmethods.net/interfaces/query"/>
 </port>
</service>

</definitions>

		
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.