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

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 UTC
  2. PowerBuilder
  3. # 1

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 UTC
  2. PowerBuilder
  3. # 2

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

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

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.