1. Martijn van Dongen
  2. PowerBuilder
  3. Tuesday, 02 July 2019

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

Martijn van Dongen Accepted Answer Pending Moderation
0
Votes
Undo

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

Comment
There are no comments made yet.
  1. Wednesday, 3 July 2019
  2. PowerBuilder
  3. # 1
Martijn van Dongen Accepted Answer Pending Moderation
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
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
There are no comments made yet.
  1. Wednesday, 3 July 2019
  2. PowerBuilder
  3. # 2
Roland Smith Accepted Answer Pending Moderation
2
Votes
Undo

Use the SetRequestHeader function.

Comment
There are no comments made yet.
  1. Tuesday, 2 July 2019
  2. PowerBuilder
  3. # 3
  • Page :
  • 1


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