1. Benjamin Daniels
  2. PowerBuilder
  3. Wednesday, 11 January 2023 14:24 PM UTC

Hi All

I am trying to call PowerServer Open Interface. In the help I found the below code for using a Webservice to call the open interface but Soap is not supported in 2019R3. How do I call PS Open Interface using HTTTP Client ??

soapconnection  ieon_soap
wsappeonservice ieon_ws    //the Web service proxy object generated by the .NET engine
wsauthsoapheader ieon_head
long ll_return
string ls_return, ls_server, ls_app

ieon_soap = create soapconnection
ieon_head = create wsauthsoapheader

ll_return = ieon_soap.createinstance (ieon_ws, 'wsappeonservice')
ieon_head.username = "admin"
ieon_head.password = "admin"
ieon_ws.setauthsoapheadervalue (ieon_head)

ls_server ='localhost'
ls_app = ''
ls_return = ieon_ws.getAllSessions (ls_server, ls_app)
ls_return = ieon_ws.getAllClients (ls_server, ls_app)

Regards

Benjamin

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 11 January 2023 15:00 PM UTC
  2. PowerBuilder
  3. # 1

Hi Benjamin,

If you are using PowerServer version 2020 and newer, HTTPClient object is supported.  This tech article outlines how to call a SOAP Web service: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object

Best regards,
Armeen

Comment
  1. Benjamin Daniels
  2. Tuesday, 17 January 2023 20:06 PM UTC
Thanks Armeen. I got it working using HTTPClient !



Regards

Benjamin
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 17 January 2023 20:51 PM UTC
Glad to hear that, and thanks for the update! Please mark your post as resolved.
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.