Question

I want to call a rest service via http adapter. I do a get request to the url of the rest service but it is in a password protected domain. (if i try to access the url from browser it pops up a window for username and password.) How can i pass these credentials along with my get request? do i have to make a post request before that?

Was it helpful?

Solution

Use the element of the HTTP adapter.

<authentication>
  <basic/>
    <serverIdentity>
      <username> ${user} </username>
      <password> ${password} </password>
   </serverIdentity>
</authentication>  

It will pass the network credential while accessing the service url.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top