0 Replies Latest reply: Mar 1, 2012 11:57 AM by Marcos Aurelio Brandao RSS

Web service client authentication,

Marcos Aurelio Brandao
Currently Being Moderated

Hi Experts


I have created a client where will consume a autheticated web service.

The web service use basic authetication(user id and password).


My client is a web module project. After give the wsdl and generate all the artifacts to consume the web service i create  aservlet to execute it.


I put this  line of code to get the Web Service:


     private WsAuthClient cli;


When i consume the web service i get the message "unauthorized".


I know that i can put the username and password in BondingProvider object to authenticate, but i can't want to do this.

I would like to do something like service group in WebDynpro. But how can i do it?


I get the wsdl in project and create a service group. if i see in sevice reference of the project i can see the service there.

in NWA i go to application communication and assign the service group in the project with a provider system but the unathorized erro continue.


Can someone help me to connect to web service in my servlet with some mecanism like service group?


Best Regards

Marcos Brandão


Edited by: Marcos Aurelio Brandao on Aug 5, 2011 1:53 PM