[JBossWS] - Re: webParameter is null
by georges.goebel
"georges.goebel" wrote : Hi,
|
| I have exactly the same proble with JBOSS 4.2.0 and 4.2.2.
|
|
| | @Stateless(name = "Facade")
| | @Local(Facade.class)
| | @Remote(Facade.class)
| | @WebService
| | public class FacadeImpl implements Facade {
| | @WebMethod
| | public List<NiveauService> getLastDataNiveauService(String e1, String e2) throws WebPchException {
| | System.out.println(e1);
| | System.out.println(e2);
| | .....
| | }
| |
| | }
| |
|
| When I invoke the Webservice from the generated wsdl by a client written in Java with Axis1 or Axis2 or JAXWS2 the parameters e1 and e2 have the correct values.
|
| When I invoke the Webservice from SOAP Client (under MACOS X) or by a PHP client, both parameters e1 and e2 are null !
|
| What could be the solution to this problem ?
|
| Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104579#4104579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104579
18 years, 5 months
[JBossWS] - Re: webParameter is null
by georges.goebel
Hi,
I have found one solution get it working. I have to use the annotation @SOAPBinding(style = SOAPBinding.Style.RPC)
| @Stateless(name = "Facade")
| @Local(Facade.class)
| @Remote(Facade.class)
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class FacadeImpl implements Facade {
| @WebMethod
| public NiveauService[] getLastDataNiveauService(String e1, String e2) throws WebPchException {
| System.out.println(e1);
| System.out.println(e2);
| }
|
| }
|
But I read everywhere that RPV is "BAD" and "Document" should be used instead. But when I use Document I have the previous error.
Can somebody tell me if it is worth to implement a RPC solution, or how can I get it working with "Document" ?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104458#4104458
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104458
18 years, 5 months
JBoss 4.0 -wstools-client Giving Exception
by srinu boddapati
Hi,
I published one web service with reference to admin guide.
http://docs.jboss.org/jbossas/jboss4guide/r3/adminguide.pdf.
I am able to see wsdl after deploying into jboss 4.0.but when I am
running client it is giving the following exception.
Any one please help me in this regard.
java.rmi.RemoteException: Call invocation failed: Could not setup
remoting client; nested exception is:
javax.xml.soap.SOAPException: Could not setup remoting client
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
at $Proxy0.welcome(Unknown Source)
at com.nandaki.ws.Client.main(Client.java:36)
Caused by: javax.xml.soap.SOAPException: Could not setup remoting client
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:168)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
... 4 more
Caused by: java.lang.RuntimeException: Can not set remoting client
Marshaller when not connected.
at org.jboss.remoting.Client.setMarshaller(Client.java:1292)
at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:163)
... 5 more
Thanks & Regards
Srinivasa Rao
18 years, 5 months