My Oracle Support Banner

HTTP-401 Error When Accessing JSRP Webservice Using Java Client (Doc ID 2249012.1)

Last updated on MARCH 31, 2017

Applies to:

Oracle Communications ASAP - Version and later
Information in this document applies to any platform.


On : version, Web Server

There is a problem Accessing the JSRP Webservice using the Java Client

The customer has generated web service stubs using the following ant task (the referenced  WSDL is saved from the WebLogic server):


  destDir="${clientclass-dir}" >

The customer is calling the web service as follows and is getting a 401 Unauthorized message from the server.

Code Snippet:

MslvAsapWs service = new MslvAsapWs();

MslvAsapWsServicePortType serviceHTTPPort = service.getHttpSessionPort();

Binding binding = ((BindingProvider)serviceHTTPPort).getBinding();

  List handlerChain = new ArrayList();
  handlerChain.add(new WSSecurityHeaderSOAPHandler(/*"weblogic", "password123"*/));
  service.setHandlerResolver(new HeaderHandlerResolver());
CreateOrderByValueResponse response = serviceHTTPPort.createOrderByValue(request);

We have also followed this similar to:   




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.