1. Frankel David
  2. PowerBuilder
  3. Saturday, 8 October 2022 18:22 PM UTC

I am trying to send a POST request to a SOAP API.

I have tested the request with POSTMAN and get return code 200.

When I do the same with Powerbuilder I get code 415.

I have compared the requests using Fiddler and they look exactly the same.

Same Headers, record length and body.

The Content-Type is application/soap+xml in both cases.

I have tried other content-Types - but always the same error 415.

So where can PB be different?

Where else can I look?

Any help would be appreciated.

 

Marco Meoni Accepted Answer Pending Moderation
  1. Monday, 10 October 2022 09:11 AM UTC
  2. PowerBuilder
  3. # 1

Hi Frankel,

if you follow carefully this tutorial

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object

you should be able to end up in a working client.

Please be sure you build correctly both http and soap headers, otherwise media type validation error will be issued by the server.

Best,

.m

Comment
  1. Frankel David
  2. Monday, 10 October 2022 09:38 AM UTC
Thanks - I read the tutorial. The API that I am calling does not provide on line assistance.

But I managed to get it working with POSTMANl.

However, sending the same message in PB(2017) I get error 415.

I checked both transmissions using Fiddler and both seem to send the same thing.

Postman works and PB does not. ?

  1. Helpful
  1. Daryl Foster
  2. Tuesday, 11 October 2022 00:41 AM UTC
You'll probably need to post your Powerbuilder Code and your working Postman Configuration (showing all headers and body) before anyone will be able to help you
  1. Helpful 1
There are no comments made yet.
Frankel David Accepted Answer Pending Moderation
  1. Thursday, 13 October 2022 17:43 PM UTC
  2. PowerBuilder
  3. # 2

Sorry to all.

I wrote Application instead of application.

Now it works.

 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 13 October 2022 17:46 PM UTC
Thanks for sharing the solution!
  1. Helpful
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.