문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top