Axis or bust this one....

I have an Axis client with which I want to bind all xsi types to java.lang.Object in order to convert them to a String. I'm not using beans to do bindings as the client must be able to dynamically connect to a variety of web services.
Is there an easy way to do this?


Currently I'm getting an error message with a simple Axis service:

org.xml.sax.SAXException: Bad types (int -> class java.lang.String)
at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:311)
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)


Where the simple response type is (snippet of WSDL):

- <#> <wsdl:message name="*setGetIntResponse*">
 <wsdl:part name="*setGetIntReturn*" type="*xsd:int*" />
 </wsdl:message>

Thanks,

Benjamin



Reply via email to