Hello all,
I used XMLA.WSDL and generated the java stubs.
I wrote a test program and when I run I get the following exceptions.
The Discover() takes 3 arguments ( one
string and 2 custom classes) and returns a result
class.
Pl find attached the .wsdl and file and my test
program.
What is the reason for the exception?
registerTypeMapping is called for all non-builtin types including the return
type.
- Exception:
org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.tempuri.ClsXMLAProxDiscoverResult) at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:205) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:831) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:199) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:589) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:248) at org.apache.axis.client.Call.invoke(Call.java:1701) at org.apache.axis.client.Call.invoke(Call.java:1608) at org.apache.axis.client.Call.invoke(Call.java:1169) at org.tempuri.ClsXMLAProxSoapBindingStub.discover(ClsXMLAProxSoapBindingStub.java:167) at org.tempuri.Abcd.main(Abcd.java:18) Exception in thread "main" org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.tempuri.ClsXMLAProxDiscoverResult) at org.apache.axis.AxisFault.makeFault(AxisFault.java:116) at org.apache.axis.client.Call.invoke(Call.java:1704) at org.apache.axis.client.Call.invoke(Call.java:1608) at org.apache.axis.client.Call.invoke(Call.java:1169) at org.tempuri.ClsXMLAProxSoapBindingStub.discover(ClsXMLAProxSoapBindingStub.java:167) at org.tempuri.Abcd.main(Abcd.java:18) Caused by: org.xml.sax.SAXException: Bad types (class java.lang.String -> class org.tempuri.ClsXMLAProxDiscoverResult) at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:205) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:831) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:199) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:589) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:248) at org.apache.axis.client.Call.invoke(Call.java:1701) ... 4 more |
Abcd.java
Description: Binary data
msxmla.workswithsoapsdk.WSDL
Description: Binary data