How to append authorization header for invoking StardustBpmServices through SOAP [message #1480757] |
Thu, 20 November 2014 13:03  |
Eclipse User |
|
|
|
Hi,
I am trying to invoke the Stardust Engine through SOAP and have generated the Stardust java classes through wsdl given at the below link:
http://54.169.104.91:8080/stardust-standard/services/rest/UserServiceHttpBasicAuthSsl?wsdl
I can use StardustBpmServices class to get a handle to IUserService but I am getting the following exception:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: No Authorization header provided.
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:117)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135)
at com.sun.proxy.$Proxy37.getUser(Unknown Source)
Here is a snippet of my sample code:
StardustBpmServices stardustServices = new StardustBpmServices();
IUserService userService = stardustServices.getUserServiceHttpBasicAuthEndpoint();
User user = userService.getUser(3);
How can I append the authorization header before invoking an API of IUserService?
Thanks,
Shuchi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.47006 seconds