Skip to Content

Authorization in Http Header

Hi Experts,

My Scenario is proxy to Webservice. We need to send Authorization values in http header to the webservice and get the response back.

I have configured a SOAP reciever with username and password for User Authentication.

But to call the Webservice we need to add some authorization values as well.

How can we send authorization value.

Please Suggest.

Thanks ,

Rama.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jan 08, 2015 at 07:42 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2015 at 08:07 PM

    Hi Rama,

    Go with SOAP Envelope as the Target XML and add all the required fields you want.

    In Receiver SOAP Adapter - Select the check box "Do Not Use SOAP Envelope"

    Regards,

    Anudeep

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09, 2015 at 07:16 AM

    Hi Ramashish,

    I have not so clear what is your Pi version, at least from PI 7.31 you can use this bean to add the authorization fields to the header "AddSOAPHeaderBean" module

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ramashish kumar

      Hi

      Write a simple java mapping and generate the soap xml strcuture with soap envelope. In Receiver SOAP Adapter - Select the check box "Do Not Use SOAP Envelope".

      Please let us know if you need any help on java mapping. Attach the input data and the reuired soap xml in order to get the java mapping code.

      Thanks,

      Indrajit

  • Jan 23, 2015 at 04:11 AM

    Hi all,

    Thanks fo your Suggestions. Sorry, Was busy in trying out things.

    I did resolve the issue by using XSLT and java mapping as per expected by webservice.

    And also there seems to be a password mismatch for consuming the webservice.

    Thanks,

    Rama.

    Add comment
    10|10000 characters needed characters exceeded