Hi ,

I am new to webservices world.I am trying to call a webservice which is running 
in Jboss version jboss-4.0.3RC1.I am using Java object(ValResult) as return 
type from my webservice method.But I am getting following error when I call the 
webservice from a standalone client.Please help me to find out the solution for 
this problem.

xisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: Deserializing parameter 'result':  could not find deserializer 
for type {http://com.samp/types}ValResult
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: 
Deserializing parameter 'result':  could not find deserializer for type 
{http://com.samp/types}ValResult
        at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:325)
        at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1166)
        at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
        at 
org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:262)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:396)
        at org.apache.axis.client.Call.invoke(Call.java:2641)
        at org.apache.axis.client.Call.invoke(Call.java:2513)
        at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
        at org.apache.axis.client.Call.invoke(Call.java:1914)
        at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
        at com.samp.HelloClient.main(HelloClient.java:58)


org.apache.axis.AxisFault: Deserializing parameter 'result':  could not find 
deserializer for type {http://com.samp/types}ValResult
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:146)
        at org.apache.axis.client.Call.invoke(Call.java:2646)
        at org.apache.axis.client.Call.invoke(Call.java:2513)
        at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
        at org.apache.axis.client.Call.invoke(Call.java:1914)
        at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
        at com.samp.HelloClient.main(HelloClient.java:58)
Caused by: org.xml.sax.SAXException: Deserializing parameter 'result':  could 
not find deserializer for type {http://com.samp/types}ValResult
        at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:325)
        at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1166)
        at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
        at 
org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:262)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:396)
        at org.apache.axis.client.Call.invoke(Call.java:2641)
        ... 5 more



Here is my client code:

String urlstr   = "http://localhost:8888/MedwizWeb/Hello?wsdl";;
                System.out.println("Contacting webservice at " + urlstr);
                URL url =  new URL(urlstr);
                String ns        = "http://com.samp/";;
                QName  qname     = new QName(ns, "HelloService");
                QName  port      = new QName(ns, "HelloPort");
                QName  operation = new QName(ns, "sayHello");

                ServiceFactory factory = ServiceFactory.newInstance();
                Service        service = factory.createService(url, qname);
                Call            call    = service.createCall(port, operation);
                call.invoke(null);      
                
                
                
                }catch(Exception ex){ex.printStackTrace();}

I am using Dynamic proxy invocation method to call the webservice.
Any help would be appricated.




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883609#3883609

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883609


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to