Loading ...
Sorry, an error occurred while loading the content.

9948BUG in wsdl2ws in Axis C++???????????

Expand Messages
  • jane_1975us
    Aug 26, 2004
    • 0 Attachment
      Hiya,

      I was wondering if you 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:

      ############## the type found ={http://info.edg.org}RGMAException
      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"?>
      <wsdl:definitions targetNamespace="http://registry.services.info.edg.org"
      xmlns:impl="http://registry.services.info.edg.org"
      xmlns:intf="http://registry.services.info.edg.org"
      xmlns:apachesoap="http://xml.apache.org/xml-soap"
      xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:tns1="http://info.edg.org"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://info.edg.org">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <complexType name="RGMAException">
      <sequence>
      <element name="recoverable" type="xsd:boolean"/>
      <element name="source" nillable="true" type="xsd:string"/>
      <element name="type" nillable="true" type="xsd:string"/>
      </sequence>
      </complexType>
      <complexType name="ResultSetMetaData">
      <sequence>
      <element name="columnCount" type="xsd:int"/>
      <element name="columnHeaders" nillable="true"
      type="impl:ArrayOf_xsd_string"/>
      <element name="columnName" nillable="true" type="xsd:string"
      maxOccurs="unbounded"/>
      </sequence>
      </complexType>
      <complexType name="ResultSet">
      <sequence>
      <element name="boolean" type="xsd:boolean" maxOccurs="unbounded"/>
      <element name="data" nillable="true" type="apachesoap:Vector"/>
      <element name="int" type="xsd:int" maxOccurs="unbounded"/>
      <element name="metaData" nillable="true"
      type="tns1:ResultSetMetaData"/>
      <element name="string" nillable="true" type="xsd:string"
      maxOccurs="unbounded"/>
      </sequence>
      </complexType>
      <complexType name="EndpointReference">
      <sequence>
      <element name="connectionId" type="xsd:int"/>
      <element name="servletURL" nillable="true" type="xsd:string"/>
      </sequence>
      </complexType>
      </schema>
      <schema xmlns="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://xml.apache.org/xml-soap">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <complexType name="Vector">
      <sequence>
      <element name="item" minOccurs="0" maxOccurs="unbounded"
      type="xsd:anyType"/>
      </sequence>
      </complexType>
      </schema>
      <schema xmlns="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://registry.services.info.edg.org">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <complexType name="ArrayOf_xsd_string">
      <complexContent>
      <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
      </restriction>
      </complexContent>
      </complexType>
      </schema>
      </wsdl:types>

      <wsdl:message name="getStatusResponse">

      <wsdl:part name="getStatusReturn" type="xsd:string"/>

      </wsdl:message>

      <wsdl:message name="RGMAException">

      <wsdl:part name="fault" type="tns1:RGMAException"/>

      </wsdl:message>

      <wsdl:message name="getStatusRequest">

      </wsdl:message>

      <wsdl:message name="getRelevantProducersRequest">

      <wsdl:part name="in0" type="xsd:string"/>

      <wsdl:part name="in1" type="xsd:string"/>

      <wsdl:part name="in2" type="xsd:int"/>

      </wsdl:message>

      <wsdl:message name="getRelevantProducersResponse">

      <wsdl:part name="getRelevantProducersReturn"
      type="apachesoap:Vector"/>

      </wsdl:message>

      <wsdl:portType name="RegistryPortType">

      <wsdl:operation name="getRelevantProducers" parameterOrder="in0
      in1 in2">

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

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

      <wsdl:fault name="RGMAException" message="impl:RGMAException"/>

      </wsdl:operation>

      <wsdl:operation name="getStatus">

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

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

      <wsdl:fault name="RGMAException" message="impl:RGMAException"/>

      </wsdl:operation>

      </wsdl:portType>

      <wsdl:binding name="RegistryServiceSoapBinding"
      type="impl:RegistryPortType">

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

      <wsdl:operation name="getRelevantProducers">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="getRelevantProducersRequest">

      <wsdlsoap:body use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:input>

      <wsdl:output name="getRelevantProducersResponse">

      <wsdlsoap:body use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:output>

      <wsdl:fault name="RGMAException">

      <wsdlsoap:fault use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:fault>

      </wsdl:operation>

      <wsdl:operation name="getStatus">

      <wsdlsoap:operation soapAction=""/>

      <wsdl:input name="getStatusRequest">

      <wsdlsoap:body use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:input>

      <wsdl:output name="getStatusResponse">

      <wsdlsoap:body use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:output>

      <wsdl:fault name="RGMAException">

      <wsdlsoap:fault use="encoded"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      namespace="http://registry.services.info.edg.org"/>

      </wsdl:fault>

      </wsdl:operation>

      </wsdl:binding>

      <wsdl:service name="RegistryService">

      <wsdl:port name="RegistryService"
      binding="impl:RegistryServiceSoapBinding">

      <wsdlsoap:address
      location="http://localhost:8080/axis/services/RegistryService"/>

      </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>