axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Hägg <daniel.h...@factum.se>
Subject SAXException Bad types
Date Tue, 01 Oct 2002 11:23:56 GMT
Hi!
I have a web service with a WSDL that works fine with both
soap implementations in Microsoft .NET (ATL and ASP).
But I cannot get it to work with Axis 1.0 RC2.

Generated java code like this (see attached wsdl):

  java org.apache.axis.wsdl.WSDL2Java -p AxisClient.dab DabCtrlApi.wsdl

No problems.

Wrote a little app (java 1.4.0-02) that does this:

  DabCtrlApiLocator locator = new DabCtrlApiLocator();
  ApiPort cfgApi = locator.getApiPort();
  ArrayOfConfigurations arr = cfgApi.requestAllConfigurations();

The SOAP communications looks fine (see attachment).
But I get the following error when the response is deserialized:

2002-okt-01 13:00:54 org.apache.axis.client.Call invoke
ALLVARLIG: Exception:
org.xml.sax.SAXException: Bad types (class [Ljava.lang.Object; -> class 
AxisClient.dab.ArrayOfConfigurations)
        at 
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:285)
        at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:893)
        at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
        at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
        at 
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
        at org.apache.axis.client.Call.invoke(Call.java:1871)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)
        at 
AxisClient.dab.ApiBindingStub.requestAllConfigurations(ApiBindingStub.java:123)
        at AxisClient.AxisClient.main(AxisClient.java:22)

BTW: "ALLVARLIG" is swedish and means "SERIOUS".
What is wrong?

 /
/ Daniel


Mime
View raw message