1. Martijn van Dongen
  2. PowerBuilder
  3. Tuesday, 2 July 2019 14:47 PM

Can I set the HTTP header when using the HTTPClient object to consume a SOAP webservice ?

Martijn van Dongen Accepted Answer Pending Moderation
  1. Wednesday, 3 July 2019 09:56 AM
  2. PowerBuilder
  3. # 1
0
Votes
Undo

Thank you, I will see if this works (now).

Comment
There are no comments made yet.
Martijn van Dongen Accepted Answer Pending Moderation
  1. Wednesday, 3 July 2019 06:19 AM
  2. PowerBuilder
  3. # 2
0
Votes
Undo

I believe that sets the SoapHeader, not the HTTPHeader...

Comment
Hi Martijn,

HTTPClient object is for HTTP requests. So SetRequestHeader sets the HTTPHeader.

SOAP is only a special type of content (request body) and SOAPHeader is part of that content. The HTTPClient does not know about the content.

HTH,

René
  1. René Ullrich
  2. Wednesday, 3 July 2019 07:59 AM
SOAP is just a specially formed XML document being sent via HTTP. The SoapHeader is an HTTP Header. Therefore SetRequestHeader would be correct.
  1. Roland Smith
  2. Wednesday, 3 July 2019 15:27 PM
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 2 July 2019 15:26 PM
  2. PowerBuilder
  3. # 3
2
Votes
Undo

Use the SetRequestHeader function.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.