You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by AxisBeta2User <ju...@hotmail.com> on 2002/05/11 23:09:46 UTC

Can this be a bug in WSDL2Java

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