When I call a webservice, where and how do I set the password and username?

6
I would like to call a Webservice from a Microflow. Where do I set the username and password of the specific Webservice I'm trying to call?
asked
4 answers
10

When you call a web service from a microflow, there are several options for user name/password authentication, depending on the web service being called. Some of the most common cases are the following:

HTTP authentication - A user name and password are required for communication with the web server that runs the web service. You can specify these in the "HTTP Authentication" tab of the Call Web Service activity.

SOAP header/body - Some web services specify a user name/password combination in the SOAP header or body. The user name/password fields will appear in the SOAP Header/Body tabs of the Call Web Service activity.

WS-Security - If a web service uses the WS-Security user name token, you can use a Custom SOAP Header by selecting the "Custom" radio button on the SOAP Header tab. In the custom template, you can insert the WS-Security user name token template by selecting it from the "Insert template..." drop-down box.

Currently, Mendix published web services use the SOAP header option.

Note that in all cases it is possible to create Constants for the user name and password and use these in the Call Web Service action.

answered
4

You'll have to make webservice-user in the project that is recieving the Webservice call. You can do that in the usersscreen. Then you can use that username and password in the Microflow Webserivce call, you can fill in the username and password in the SOAP-Header tab.

answered
0

Yes, but where do I add the the username and password exactly in the Webservice call? At the HTTP Authentication tab? Please explain in detail.

answered
0

You should use the SOAP-Header tab for that.

answered