Skip to Content
0
Former Member
Jan 24, 2007 at 08:42 AM

Problem in Calling Secure Webservice.

19 Views

Hi Gurus,

I'm using a secured webservice in my webdynpro application. I'd also assigned

role to this webservice. My Portal is connected to LDAP, so when I call this

webservice through Webservice Navigator, it prompts me for username and

password, after supplying same it authenticate the user against LDAP.This is

working fine.

Now when I'call this webservice through my webdynpro application, it requires

username and password. I write follwing code:

Request_VI_RFP_CountriesDocument_displayCountries display = new

Request_VI_RFP_CountriesDocument_displayCountries();

wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().bind(display)

;

display._setUser("User");

display._setPassword("Password");

try {

wdContext.nodeRequest_VI_RFP_CountriesDocument_displayCountries().currentReques

t_VI_RFP_CountriesDocument_displayCountriesElement().modelObject().execute();

} catch (Exception e) {

e.printStackTrace();

}

It also works fine. Now my question is there any other method to call this

webservice without setting password in code( as one can easilly find it out)?

As this application is ultimately deployed on Portal, i have to follow Single

Sign On concept.

Plz help me out.

Thanks & Regards

Abhinav Sharma