axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhao Sharon-CSC002 <Sharon.Z...@motorola.com>
Subject WSDL2Java Dug?
Date Wed, 31 Mar 2004 04:21:50 GMT
Hello,
  We are using WSDL2java to generate the client stub and other java file. However, we got
the following errors during the runtime. The WSDL2Java tool only generates the __WSNPatchDownloadOutput2
java files.
    

- Exception:
org.xml.sax.SAXException: Deserializing parameter 'WSNPatchDownloadOutput':  could not find
deserializer for type {http://localhost/MotWSN/MC000046/WSNPatchDownload}__WSNPatchDownloadOutput
        at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:302)
        at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:963)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
        at org.apache.axis.client.Call.invoke(Call.java:2272)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at com.mot.corp.gish8003.MotWSN_MC000046BindingStub.WSNPatchDownload(MotWSN_MC000046BindingStub.java:143)
        at WSNPatchDownloadTest.main(WSNPatchDownloadTest.java:36)
Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Deserializing parameter &apos;WSNPatchDownloadOutput&apos;:
 could not find deserializer for type {http://localhost/MotWSN/MC000046/WSNPatchDownload}__WSNPatchDownloadOutput

 

  The following is part of the WSDL file used for generating the *.java file:

<xsd:complexType name="__WSNPatchDownloadOutput">

      <xsd:sequence>

          <xsd:element name="WSNPatchDownloadOutput" nillable="true" type="tns:__WSNPatchDownloadOutput2"/>

      </xsd:sequence>

</xsd:complexType>

<xsd:complexType name="__WSNPatchDownloadOutput2">

      <xsd:sequence>

          <xsd:element name="ISStatus" nillable="true" type="xsd:unsignedInt"/>

          <xsd:element name="Status-Info" nillable="true" type="xsd:string"/>

          <xsd:element name="Patch_available_version" nillable="true" type="xsd:boolean"/>

          <xsd:element name="Patch_version" nillable="true" type="xsd:string"/>

          <xsd:element name="Patch_size" nillable="true" type="xsd:unsignedInt"/>

          < xsd:element name="Patch_info" nillable="true" type="xsd:string"/>

          <xsd:element name="Patch_location" nillable="true" type="xsd:string"/>

          <xsd:element name="Reservedarg1" nillable="true" type="xsd:string"/>

          <xsd:element name="Reservedarg2" nillable="true" type="xsd:string"/>

          <xsd:element name="Reservedarg3" nillable="true" type="xsd:string"/> 

      </xsd:sequence>

</xsd:complexType>

...

<wsdl:message name="WSNPatchDownloadOutput">

      <wsdl:part name="WSNPatchDownloadOutput" type="wsdns1:__WSNPatchDownloadOutput2"/>

</wsdl:message> 

wsdl:portType name="MotWSN_MC000046PortType">

<wsdl:operation name="WSNPatchDownload">

<wsdl:portType name="MotWSN_MC000046PortType">

      <wsdl:operation name="WSNPatchDownload">

          <wsdl:input message="tns:WSNPatchDownloadInput"/>

          <wsdl:output message="tns:WSNPatchDownloadOutput"/>

      </wsdl:operation>

</wsdl:portType>

  Any idea why the tool generated stuff does not working?

 

Thanks,

Sharon Zhao 

 

Mime
View raw message