axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <david.zie...@thomson.com>
Subject WSDL2Java difference between v0.94 and v1RC4
Date Wed, 03 May 2006 13:56:46 GMT
Hi all,
 
I have a WSDL file which when fed into the the WSDL2Java process from
v94 produces the needed files and functions appropriately.  When this
same WSDL file is fed into the WSDL2Java process from v1.0 RC4 errors
out with the followin issue:
 
C:\Downloads\Axis2\axis2-v1.4unzipped\bin>WSDL2Java -uri service.wsdl -o
c:\Load
Gen -p com.thomson.west.foundations.server.soap -t -ss on -sd on -d adb
-g -u -s
n FoundationsServicesServer -pn FoundationServicesServerService
Using AXIS2_HOME:   C:\Downloads\Axis2\axis2-v1.4unzipped
Using JAVA_HOME:    C:\j2sdk1.4.2_07
Exception in thread "main" java.lang.VerifyError: (class:
org/apache/axis2/descr
iption/WSDL2AxisServiceBuilder, method: populateOperations signature:
(Ljavax/ws
dl/Operation;Ljavax/wsdl/Definition;)Lorg/apache/axis2/description/AxisO
peration
;) Incompatible argument to function
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:87)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 
The call to WSDL2Java remains the same as follows:
C:\Downloads\Axis2\axis2-v94Unzipped\bin>WSDL2Java -uri service.wsdl -o
c:\LoadG
en -p com.thomson.west.foundations.server.soap -t -ss on -sd on -d adb
-g -u -sn
 FoundationsServicesServer -pn FoundationServicesServerService
 
The WSDL file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://server.foundations.west.thomson.com"
xmlns:impl="http://server.foundations.west.thomson.com"
xmlns:intf="http://server.foundations.west.thomson.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <wsdl:types>
  <schema targetNamespace="http://server.foundations.west.thomson.com"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://server.foundations.west.thomson.com"
xmlns:intf="http://server.foundations.west.thomson.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <element name="retrieveCollectResponse">
    <complexType>
     <sequence>
      <element name="retrieveCollectReturn" nillable="true"
type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="retrieveUnique">
    <complexType>
     <sequence>
      <element name="classType" nillable="true" type="xsd:string"/>
      <element name="fBaseXMLString" nillable="true" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="retrieveUniqueResponse">
    <complexType>
     <sequence>
      <element name="retrieveUniqueReturn" nillable="true"
type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="record">
    <complexType>
     <sequence>
      <element name="classType" nillable="true" type="xsd:string"/>
      <element name="fBaseXMLString" nillable="true" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="cacheDump">
    <complexType>
     <sequence>
      <element name="fBaseXMLString" nillable="true" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="cacheDumpResponse">
    <complexType>
     <sequence>
      <element name="cacheDumpReturn" nillable="true"
type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="recordResponse">
    <complexType>
     <sequence>
      <element name="recordReturn" nillable="true" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="retrieveCollect">
    <complexType>
     <sequence>
      <element name="classType" nillable="true" type="xsd:string"/>
      <element name="fBaseXMLString" nillable="true" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </schema>
 </wsdl:types>
   <wsdl:message name="recordResponse">
      <wsdl:part element="impl:recordResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="cacheDumpResponse">
      <wsdl:part element="impl:cacheDumpResponse" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="retrieveCollectRequest">
      <wsdl:part element="impl:retrieveCollect" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="retrieveUniqueResponse">
      <wsdl:part element="impl:retrieveUniqueResponse"
name="parameters"/>
   </wsdl:message>
   <wsdl:message name="retrieveCollectResponse">
      <wsdl:part element="impl:retrieveCollectResponse"
name="parameters"/>
   </wsdl:message>
   <wsdl:message name="retrieveUniqueRequest">
      <wsdl:part element="impl:retrieveUnique" name="parameters"/>
   </wsdl:message>
   <wsdl:message name="recordRequest">
      <wsdl:part element="impl:record" name="parameters"/>
   </wsdl:message>
   <wsdl:portType name="FoundationServicesServer">
      <wsdl:operation name="retrieveCollect">
         <wsdl:input message="impl:retrieveCollectRequest"
name="retrieveCollectRequest"/>
         <wsdl:output message="impl:retrieveCollectResponse"
name="retrieveCollectResponse"/>
      </wsdl:operation>
      <wsdl:operation name="retrieveUnique">
         <wsdl:input message="impl:retrieveUniqueRequest"
name="retrieveUniqueRequest"/>
         <wsdl:output message="impl:retrieveUniqueResponse"
name="retrieveUniqueResponse"/>
      </wsdl:operation>
      <wsdl:operation name="record">
         <wsdl:input message="impl:recordRequest" name="recordRequest"/>
         <wsdl:output message="impl:recordResponse"
name="recordResponse"/>
      </wsdl:operation>
      <wsdl:operation name="cacheDump">
         <wsdl:input message="impl:cacheDumpRequest"
name="cacheDumpRequest"/>
         <wsdl:output message="impl:cacheDumpResponse"
name="cacheDumpResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="FoundationServicesServerSoapBinding"
type="impl:FoundationServicesServer">
      <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="retrieveCollect">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="retrieveCollectRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="retrieveCollectResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="retrieveUnique">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="retrieveUniqueRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="retrieveUniqueResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="record">
         <wsdlsoap:operation soapAction="recordRequest"/>
         <wsdl:input name="recordRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="recordResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
      <wsdl:operation name="cacheDump">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input name="cacheDumpRequest">
            <wsdlsoap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="cacheDumpResponse">
            <wsdlsoap:body use="literal"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="FoundationServicesServerService">
      <wsdl:port binding="impl:FoundationServicesServerSoapBinding"
name="FoundationServicesServerService">
         <!--<wsdlsoap:address
location="http://localhost:9080/FoundationsSoapServ/services/FoundationS
ervicesServer"/> -->
         <wsdlsoap:address
location="http://localhost:8080/axis2/services/FoundationServicesServer"
/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>


As far as the classes generated are concerned, does it matter if they
are generated via v0.94 WSDL2Java or v1RC4 WSDL2Java?

Thanks in advance.

Dave Ziebol

 


Mime
View raw message