Multibinding QuestionHi all,
           I am trying to invoke a webservice hosted at
http://ws.cdyne.com/emailverify/ev.asmx?wsdl . I tried calling the
ReturnCodes operation
           in it. The operation does not take any input params. I tried
calling the service without doing Service.mapType(..) when i did this i got
back the following error.

org.xml.sax.SAXException: Deserializing parameter 'ReturnCodesResponse':
could not find deserializer for type
{http://ws.cdyne.com/}ReturnCodesResponse
at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:297)
at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa
tionContextImpl.java:921)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:
699)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:331)
at org.apache.axis.client.Call.invoke(Call.java:2200)
at org.apache.axis.client.Call.invoke(Call.java:2099)
at org.apache.axis.client.Call.invoke(Call.java:1622)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXI
SDocStyle(Unknown Source)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeReq
uestResponseOperation(Unknown Source)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRe
questResponseOperation(Unknown Source)
at com.vergil.wsif.WSIFDynClient.executeWebService(WSIFDynClient.java:95)
at com.vergil.wsif.WSIFDynClient.invokeWebService(WSIFDynClient.java:218)
at com.vergil.wsif.WSIFDynClient.main(WSIFDynClient.java:35)

    So i created client stubs using wsdl2java util of axis and registered
the "ReturnCodesResponse" Qname with the ArrayOfAnyType Class that wsdl2java
generated.

When i tried invoking the service now i got back the following error

org.xml.sax.SAXException: Invalid element in
com.wsif.evSoap.ReturnCodes.ArrayOfAnyType - ReturnCodesResult
 at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.
java:260)
 at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa
tionContextImpl.java:921)
 at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
 at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:
699)
 at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224)
 at org.apache.axis.message.RPCElement.getParams(RPCElement.java:331)
 at org.apache.axis.client.Call.invoke(Call.java:2200)
 at org.apache.axis.client.Call.invoke(Call.java:2099)
 at org.apache.axis.client.Call.invoke(Call.java:1622)
 at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXI
SDocStyle(Unknown Source)
 at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeReq
uestResponseOperation(Unknown Source)
 at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRe
questResponseOperation(Unknown Source)
 at com.vergil.wsif.WSIFDynClient.executeWebService(WSIFDynClient.java:95)
 at com.vergil.wsif.WSIFDynClient.invokeWebService(WSIFDynClient.java:219)
 at com.vergil.wsif.WSIFDynClient.main(WSIFDynClient.java:352)

I am not sure if its a bug or if there is something wrong with my code.

suresh




Reply via email to