1. Leven AU
  2. PowerBuilder
  3. Tuesday, 23 March 2021 10:16 AM UTC

Hi all,

May I know is it support to send soap request with attachment (MIME type) using HttpClient object?

 

I have checked the SendRequest function but seems no way to add the attachment.

And the PostData function is unable to send with soap body message.

 

Thanks.

Leven AU Accepted Answer Pending Moderation
  1. Wednesday, 24 March 2021 02:41 AM UTC
  2. PowerBuilder
  3. # 1

Hi Marco,

The article does not mention how to send soap body message & attachments as a single request.

Just like in SoapUI, Is it possible to do this in Powerbuilder?

 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 23 March 2021 10:30 AM UTC
  2. PowerBuilder
  3. # 2
Comment
  1. Leven AU
  2. Thursday, 1 April 2021 04:28 AM UTC
Hi Marco,



May I have your update on it? It looks like Powerbuilder 2019 do not support send soap request in this way.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 1 April 2021 05:13 AM UTC
  2. PowerBuilder
  3. # 3

Hi Leven,

PowerBuilder can do it with HTTPClient. Or better: You can do it using HTTPClient. PowerBuilder doesn't provide special SOAP features (except the obsolete WebService Proxy project).

To create the correct request you have to read more about SOAP requests with attachments. I have never tried it but I guess you need a request with Multipart body. Such requests can contain different parts, in your case the SOAP and the attachment.

I think you can find the information you need here: https://www.w3.org/TR/SOAP-attachments/

HTH,

René

 

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.