cancel
Showing results for 
Search instead for 
Did you mean: 

Authenticating the web service

Former Member
0 Kudos

Hi

I have a web service i am hardcoding the username and password to authenticate the web service by bellow code


wdContext.currentRequest_ZCPEX_GET_PAYLOAD_WSD_zcpexGetPayloadElement().modelObject()._setUser("uname");
wdContext.currentRequest_ZCPEX_GET_PAYLOAD_WSD_zcpexGetPayloadElement().modelObject()._setPassword("pass");

i don't want this isted of that i want to use http authentication for that i have changed the authentication property under logical port in security tab but that is not working.

so what could be the options to resolve that option

Thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Try This,

wdContext.currentRequest_ZCPEX_GET_PAYLOAD_WSD_zcpexGetPayloadElement().setUser("user");

wdContext.currentRequest_ZCPEX_GET_PAYLOAD_WSD_zcpexGetPayloadElement().setPassword("Password");

//execute the webservice

Kind Regards

Mukesh

Former Member
0 Kudos

Hi,

Check these threads:

1.

Regards,

Satyajit.