cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume and use an external webservice with header level authentication?

Former Member
0 Kudos

Hello Experts,

I am trying to use am External webservice which we re planning to buy. This web service basically has User and Password tags in the header itself.

Following is the web service

<soapenv:Header>

      <ser:Header>

         <ser:Username>?</ser:Username>

         <ser:Password>?</ser:Password>

     </ser:Header>

</soapenv:Header>

<soapenv:Body>

      <ser:ConvertRealTimeValue>

        

         <ser:From>?</ser:From>

       

         <ser:To>?</ser:To>

         <ser:Amount>?</ser:Amount>

      </ser:ConvertRealTimeValue>

   </soapenv:Body>

</soapenv:Envelope>

I am able to consume the webservice in an external webservice integration mechanism available in SDK and this has to be executed at the click of button. but in ABSL I do not get the option to enter the User and password under Header for the request message as ABSL intellisense only shows payload fields as attached screenshot.

Because of this I am not able to execute the service.

Does anyone has solution for this.

Thanks,

Saurabh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Saurabh,

Did you try to consume this web service in SOAP UI?

If not? try to consume in SOAP UI like below:

<soapenv:Header>

      <ser:Header>

     </ser:Header>

</soapenv:Header>

<soapenv:Body>

      <ser:ConvertRealTimeValue>

         <ser:From>?</ser:From>

         <ser:To>?</ser:To>

         <ser:Amount>?</ser:Amount>

      </ser:ConvertRealTimeValue>

   </soapenv:Body>

</soapenv:Envelope>

Don't pass userid and password in header part, and pass those values in SOAP Authentication settings.

If you are able to achieve consume.Then do the following steps in BYD:

Step 1 : create External Web Service Integration, It will create wsid file.

Step 2 : Right click on wsid file and create communication scenario.

Step 3 : Right click on scenario file and create communication arrangement, here you need to select scenario then it will ask for authentication method then select UserID and Password as authentication method. Then pass your credentials.

Then consume your wsid file in backend script.

Let me know if it is working fine.

Regards,

Shiva G

former_member186648
Active Contributor
0 Kudos

In the Communication Arrangement try mainining API Key using "EDIT API Keys" button.