none
Need to add two header parameters to restful post using biztalk RRS feed

  • Question

  • Hi,

     I developed a biztalk application to post to restful service developed in java.

    Posting successfully happened. Now the java restful service had included two header parameters for security, as below:


    APP-CODE = ABCD

    PASS-CODE = DFGHSJHK778998==

    I tested these by adding in SOAP UI and got a response.

    How can i invoke then in my biztalk application?


    Gopi Srinivas K

    Monday, July 6, 2015 9:19 AM

Answers

All replies

  • Hi Gopi ,

    Have you checked properties related to the WCF-WebHttp adapter .There is a property HttpHeaders which you can set  for outbound message .

    For reference you can look into below blog post 

    http://www.codit.eu/blog/2013/04/30/using-httpheaders-with-wcf-webhttp-adapter-on-biztalk-2013/

    Thanks

    Abhishek

    • Marked as answer by GopiSrinivas Tuesday, July 7, 2015 10:51 AM
    Monday, July 6, 2015 9:27 AM
  • For adding static outbound header parameters

    navigate to -->admin console project properties --> RequestResponse Send Port --> WCF-WebHttp properties --> Configure --> Under Message Tab --> give below content.

    Content-Type: application/json
    APP_CODE: XYZABC
    PASS_CODE: DJJHKJHKLKPDzrNfJtZA==

    Click Apply

    Regards.


    Gopi Srinivas K

    • Marked as answer by GopiSrinivas Tuesday, July 7, 2015 10:54 AM
    Tuesday, July 7, 2015 10:54 AM
  • Hi what i need to set in case xml based reques Like

    Content-Type: application/xml

    Please help me.

    Wednesday, April 10, 2019 12:36 PM
  • It would be best to start a new thread.  But you'll have to include more details, at least the Adapter you're using.
    Wednesday, April 10, 2019 12:52 PM