I got around this error. It was aparently an issue with proxy which got
resolved.
However with the current client code I am getting
| java.rmi.RemoteException: Call invocation failed with code [Client] because
of: Server did not recognize the value of HTTP Header SOAPAction: .; nested
exception is:
| javax.xml.rpc.soap.SOAPFaultException: Server did not recognize the
value of HTTP Header SOAPAction: .
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:713)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
| at $Proxy0.getUserList(Unknown Source)
| at somewebsite.Test.call(Test.java:38)
| at somewebsite.Test.main(Test.java:19)
| Caused by: javax.xml.rpc.soap.SOAPFaultException: Server did not recognize
the value of HTTP Header SOAPAction: .
| at
org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100)
| at
org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(SOAPBindingProvider.java:486)
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:702)
| ... 5 more
|
Doing some research around the forums I figured I neeed to use the Call object
to set this SoapAction stuff. So I modified code like
| Call call = service.createCall();
| call.setOperationName(new
QName("http://somewebsite.net/", "GetUserList"));
| call.setProperty(Call.SOAPACTION_USE_PROPERTY,
Boolean.TRUE);
| call.setProperty(Call.SOAPACTION_URI_PROPERTY,
"http://somewebsite.net/GetUserList");
|
call.setTargetEndpointAddress("http://someurl/services/usermanagement.asmx");
| GetUserList gul = new GetUserList("notfound");
| //String str = "notfound";
| Object response = call.invoke(new Object[] {gul});
|
It still does not work with following error:
| javax.xml.rpc.JAXRPCException: Cannot obtain operation meta data for:
{http://somewebsite.net/}GetUserList
| at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:840)
| at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:820)
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:618)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| at somewebsite.Test.call(Test.java:48)
| at somewebsite.Test.main(Test.java:19)
|
I am lost...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973414#3973414
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973414
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user