0
Votes
Undo
  1. Moshe Tangi
  2. PowerBuilder
  3. Sunday, 22 March 2020 10:50 AM UTC

Hi all

 

I am trying  to consume  a ws and getting this error : The system expected soap + xml response but the user sends

and customer found txt request ….  something like that

 

How do I change the configuration of my ws proxy ?

I am using .NET engine with pb 2017 R3

 

Thanks

 

Moshe

Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 22 March 2020 20:52 PM UTC
  2. PowerBuilder
  3. # 1

Hi Mosche,

instead of "something like that" it would be much more helpful if you post the exact error.

This said, the SoapConnection object takes care of handling the entire SOAPL/XML communication. If you include pbwsclient PB extension, just instantiate the PB proxy and call the WS, here plenty of examples:

https://docs.appeon.com/appeon_online_help/pb2019/extension_reference/ch03s01.html#XREF_27736_CreateInstance

However, please notice this is a *legacy* approach and Appeon suggests to implement SOAP/XML clients using the new HTTPclient object:

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

Best,

.m

 

 

Comment
  1. Moshe Tangi
  2. Monday, 23 March 2020 08:40 AM UTC
Hi Marco,

thanks for your answer .

About the "something like that".. the message for some reason was in Hebrew so I tried to translate it into English.

About the approach .. I know and I read the articles , and I use it for other ws ..

However , I tried to ask the vendor for xml example to consume the ws build the right string to use it with HttpClient object and I didn't get any , so I don't know how to do that .

The only thing he could told me is that is WCF ws , so it has a svc url or wsdl url ...so I choose the wsdl with the soap .NET in Pb

  1. Helpful
  1. Kevin Ridley
  2. Monday, 23 March 2020 14:54 PM UTC
Moshe,

There's also tools like SoapUI, Fiddler, etc that are great for debugging web services. SoapUI is particularly good at creating sample requests that work which you can copy with the HTTPClient object. Fiddler is great at trapping the outbound request and inbound response to help see what's happening.
  1. Helpful
  1. Moshe Tangi
  2. Tuesday, 24 March 2020 09:56 AM UTC
thanks Kevin
  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.