cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Java + Webservice Athentication

roger_alluivall
Participant
0 Kudos

Hello Experts,

i'm trying create a webdynpro application to consume a webservice following this example:

[http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/]

However, when i try to set up the authentication mecanisms i can't find the methods _setUser _setPassword in my model object class.

wdContext.currentRequest_SI_TEST_DB_OAElement().modelObject()._setUser

wdContext.currentRequest_SI_TEST_DB_OAElement().modelObject()._setPasswords

I only have the methods _setField and _setAttribute. Could anybody tell me if i'm doing something wrong? Or how to put the user and password using the _setField or _setAttribute methods to call the webservice?

Thank you very much.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi

You need to execute the FM after setting the field .This is similar to calling and execuating a RFC from WD.

BR

Satish Kumar

roger_alluivall
Participant
0 Kudos

I have configured a destination with the URL of the webservice in the Netweave Administrator. I used it to configure the model and everything worked.

Thank you.