cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL authentication in NWDS 7.0.14

Former Member
0 Kudos

Hi SDN,

In Webdynpro, I am consuming WSDL generated in XI System. During consumption in the webdynpro, I need to mention the XI userid and password i.e., authenticate the XI system to consume and execute the WSDL.

request._setUser(XIUsername);

request._setPassword(XIPassword);

This methods are available only in NWDS 7.0.0 and not in higher versions say 7.0.14. How to set authentication in higher versions. If anybody have done it..please share...

Thanks & Regards,

p188071

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can create a destination name for this XI webservice with user name and passowrd in visual administartor and while creating the adaptive webservice model you can use this destination name so that no need of setting user name and passowrd for this.

You can create the destination in Visual Administrator in the following path..

Under services>Destinations>Webservice

Provide the URL of webservice,username and password.

Hope this helps you..

Regards,

Saleem

Edited by: Saleem Baig Mohammed on Jun 12, 2009 9:38 AM

Former Member
0 Kudos

Hi Experts,

I am consuming a Webservice created in PI using the Adaptive WebService Model in NWDS 7.0.14 Version.

I am creating a model by uploading the WSDL file from my local system by specifing the Logical destinations where in I am giving Default Metadata Destination and Default Execution Destination the same alias name created for the WSDL and is being used to refer the WSDL in VA. I am passing the User name and Password for authentication during the creation of this model itself.

Yet,when I try to execute the model, I am encountering an error

"Exception on creation of service metadata for WS metadata destination '<alias name>' and WS interface '‑<WSDL interface name>'. One possible reason is that the metadata destination '<alias name >' has not been properly configured; check configuration."

But, when I am trying to refer the WSDL with the same alias name, I am able to get the appropriate result.

Please provide me a solution for this.

Regards,

P188071.

Former Member
0 Kudos

Hi,

Surely this is the problem with configuration in visual admin..

Please go through this link step by step and check where you have gone wrong in your creation of model and configuration of destination name in Visual admin

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff...

Hope this helps you..

Regards,

Saleem

Former Member
0 Kudos

Thanks everyone. This is solved.

Former Member
0 Kudos

Hi,

Try

wdContext.currentModelInputElemnet().modelObject()._setUserName();

wdContext.currentModelInputElemnet().modelObject()._setPassword();

Are you using AdaptiveWebServiceModel? or Depricated WebService Model?

If you are using Adaptive , You can create the destination in VisualAdmin in the below location.

VisualAdmin> Services> WebServiceClients-->DynamicWebServiceProxies

Here in the destination you can configure the username, password, url..etc

Regards,

Charan