DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22213>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22213

Axis 1.1 array deserialization: SAXException Invalid element 

           Summary: Axis 1.1 array deserialization: SAXException Invalid
                    element
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi all!

I'm having a problem calling a web service with Axis 1.1. The problem seems to 
have something to do with handling of arrays. I have tried this with Axis 1.1 
release and the nigthly build dated 2003-08-06.

The web service is deployed on BEA WLS 8.1 server, and I have succesfully called 
it with other SOAP client libraries such as Axis 1.0, WLS 8.1 client and WASP. 

I have generated the client code from the WSDL and XSD desriptions. The
descriptions are 
attached to this report. For the code generation I have used the following command:
    
    java -cp %MY_CP% org.apache.axis.wsdl.WSDL2Java -v -t -o client -p
fi.posti.arraytest.axis %WSDL_FILE%

, where MY_CP contains Axis 1.1 jars, xerces.jar and path to the generated code. 

I will also attach the client-server HTTP conversation captured by Ethereal and 
Tester.java, which calls the genereted code.

Here is the stacktrace that occurs when the generated client is processing the 
server response:


org.xml.sax.SAXException: Invalid element in
fi.posti.arraytest.axis.InnerDataType - innerDataType
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:260)
        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
fi.posti.arraytest.axis.ArrayTestPortStub.getDataOperation(ArrayTestPortStub.java:164)
        at test.Tester.main(Tester.java:45)
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Invalid element in
fi.posti.arraytest.axis.InnerDataType - innerDataType
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Invalid
element in fi.posti.arraytest.axis.InnerDataType - innerDataType
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:260)
        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
fi.posti.arraytest.axis.ArrayTestPortStub.getDataOperation(ArrayTestPortStub.java:164)
        at test.Tester.main(Tester.java:45)


org.xml.sax.SAXException: Invalid element in
fi.posti.arraytest.axis.InnerDataType - innerDataType
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
        at org.apache.axis.client.Call.invoke(Call.java:2275)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
        at
fi.posti.arraytest.axis.ArrayTestPortStub.getDataOperation(ArrayTestPortStub.java:164)
        at test.Tester.main(Tester.java:45)
Caused by: org.xml.sax.SAXException: Invalid element in
fi.posti.arraytest.axis.InnerDataType - innerDataType
        at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:260)
        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)
        ... 4 more


BR, Oskari

Reply via email to