-
1. Re: could not find deserializer
richard_opalka Sep 20, 2007 7:11 AM (in response to itrahulsoni)Did you regenerate all the generated staff?
Richard -
2. Re: could not find deserializer
itrahulsoni Sep 21, 2007 2:57 AM (in response to itrahulsoni)sorry,
I didn't get what you mean to say???????
how can we regenerate the stuffs.
what can i do for that ???????
I am a new bie for the webservice.
so can you please tell me how to do that regenerate the stuffs?????????
what can i do for that??????
as i have said I am using Ant to use the wstools and package the war using the ant war task and deploy it on the server.
Regards,
Rahul. -
3. Re: could not find deserializer
richard_opalka Sep 21, 2007 3:19 AM (in response to itrahulsoni)OK,
I suggest you to follow the following link:
http://jbws.dyndns.org/mediawiki/index.php?title=JAX-RPC_User_Guide
If you're a newbie to webservices try to consider using JAXWS based Webservices instead of JAX-RPC ones. JAXWS is the future, JAX-RPC is just a backward compatibility stuff. Here's the link to other usefull information:
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS
Richard -
4. Re: could not find deserializer
itrahulsoni Sep 26, 2007 5:15 AM (in response to itrahulsoni)I have refer that and done the simple rpc style endpoint example
and i came to the same problem as I have described earlier that when my method in the webservice return any types that means String or Int it will throw me the errors while I am doing same thing with the return type void then everything works fine.
So what can i do for that because i have to develop webservice that return the String.
Please help me stuck to this problem since long time.
Regards,
Rahul -
5. Re: could not find deserializer
richard_opalka Sep 26, 2007 5:38 AM (in response to itrahulsoni)There's the example in our tests. See:
JBOSSWS_SVN_ROOT/stack/native/trunk/src/test/java/org/jboss/test/ws/jaxrpc/samples/rpcstyle/
and
JBOSSWS_SVN_ROOT/stack/native/trunk/src/test/resources/jaxrpc/samples/rpcstyle/
It returns String and it works
Richard -
6. Re: could not find deserializer
itrahulsoni Sep 27, 2007 3:45 AM (in response to itrahulsoni)hi did not get the location
where can i found that i donot get that anywhere.
please help me where i can found the example you have stated.
Please give me the link.
Thanks for yr replies.
Rahul -
7. Re: could not find deserializer
palin Sep 27, 2007 4:01 AM (in response to itrahulsoni)Richard refers to the sourse code on the SVN repository. Either checkout the sources from the repository http://jbws.dyndns.org/mediawiki/index.php?title=Subversion or download the src binaries.
Bye
Alessio Soldano -
8. Re: could not find deserializer
itrahulsoni Sep 27, 2007 6:02 AM (in response to itrahulsoni)Hi,
I have developed the same thing for that means I have developed example that you have stated but still get the error that if i am returning the void then it will works fine with my client but when I am developing the service that return the type Int than it will throws the error.
I have done some googles on that and found that any kind of mapping is required for that and I have also included one file that is ws4ee-deployment.xml is that any kind of thing we required for the mapping so when it will return the service can use the mapping for the deserialization
The Error i got is stated below:
localhost invokeMethod >>> org.apache.wsif.WSIFException: SOAPException: SOAP-ENV:ClientNo Deserializer found to deserialize a ':result' using encoding style 'null'.; nested exception is:
[SOAPException: faultCode=SOAP-ENV:Client; msg=No Deserializer found to deserialize a ':result' using encoding style 'null'.; targetException=java.lang.IllegalArgumentException: No Deserializer found to deserialize a ':result' using encoding style 'null'.]
at org.apache.wsif.providers.soap.apachesoap.WSIFOperation_ApacheSOAP.invokeRequestResponseOperation(WSIFOperation_ApacheSOAP.java:697)
at org.apache.wsif.providers.soap.apachesoap.WSIFOperation_ApacheSOAP.executeRequestResponseOperation(WSIFOperation_ApacheSOAP.java:575)
and My wsdl file is following:
<definitions name="MathService" targetNamespace="http://math.ws.jboss.org/"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://math.ws.jboss.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<soap:operation soapAction="" />
<soap:body namespace="http://math.ws.jboss.org/" use="literal" />
<soap:body namespace="http://math.ws.jboss.org/" use="literal" />
<soap:address location="http://localhost:8080/mathservice/MathWs" />
Thank you for your all replies,
Rahul