You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Varadharajan, Magesh (c)" <Ma...@tvratings.com> on 2002/08/23 17:30:49 UTC

Having Trouble with Axis accessing a Web Service

Hi,

I am having little trouble accessing a Web Service deployed on Tomcat/Soap
2.2

The client code is written in Apache Axis.  I am trying the addressbook
example that is part of the Soap distribution.  The response back from the
server is fine.. It is returning the result.. But the client code is
croaking out.

I tried generating WSDL and then generating the Client Stubs from WSDL
also.. I am still having the same problem..  The following is the exception
that is thrown when I run the client..

org.xml.sax.SAXException: Bad types (null -> class
samples.addressbook.Address)
        at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:205)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa
tionContextImpl.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
AddressFetcher.RpcrouterSoapBindingStub.getAddressFromName(RpcrouterSoapBind
ingStub.java:148)
        at
AddressFetcher.AddressBookClientStub.main(AddressBookClientStub.java:7)
[ERROR] Call - -Exception: <org.xml.sax.SAXException: Bad types (null ->
class samples.addressbook.Address)>
Exception in thread "main" org.xml.sax.SAXException: Bad types (null ->
class samples.addressbook.Address)
        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
AddressFetcher.RpcrouterSoapBindingStub.getAddressFromName(RpcrouterSoapBind
ingStub.java:148)
        at
AddressFetcher.AddressBookClientStub.main(AddressBookClientStub.java:7)
Caused by: org.xml.sax.SAXException: Bad types (null -> class
samples.addressbook.Address)
        at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:205)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa
tionContextImpl.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)

Any help is appreciated.
Magesh.