1. David Pylatuk
  2. PowerBuilder
  3. Tuesday, 28 November 2023 18:31 PM UTC

Hello everyone,

 

I am migrating a PB2019 application that uses SOAP to PB2022. As SOAP has been deprecated in PB2022 can anyone suggest a strategy to replace the SOAP code with REST API?

Thanks in advance.

Who is viewing this page
Shannon Axon Accepted Answer Pending Moderation
  1. Wednesday, 30 October 2024 13:29 PM UTC
  2. PowerBuilder
  3. # 1

Hi David,

This is a new area for me and I've been slowly trying to piece this together but did anyone ever provide a solution that worked for you? Could you share how you decided to handle this? I see windows authentication isn't supported by httpclient. Did you go with a 3rd party? Something like Visual Guard is far more than we need for this one thing and was wondering what worked for you? This is so specific and doesn't seem like a huge thing that should require more software. 

Comment
There are no comments made yet.
VINOD NAIR Accepted Answer Pending Moderation
  1. Wednesday, 29 November 2023 23:31 PM UTC
  2. PowerBuilder
  3. # 2

Is it true that SOAP calls are deprecated in PB 2022? If we have interfaces with other vendor applications that still uses SOAP then how do we mitigate this issue? 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 30 November 2023 00:44 AM UTC
No, you can still make SOAP calls. But the implementation has been changed. Now you need to use the HTTPClient. Here is article: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object
  1. Helpful 2
There are no comments made yet.
David Pylatuk Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 19:58 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris, a follow up to this if you don't mind... I am a little new to SOAP, REST in PB.

 

HTTP Client can call SOAP API, is it possible to apply authentication on HTTP client call to SOAP API?

ie.

The existing EAS SOAP API below is using integrated windows authentication. is it possible to apply integrated windows authentication on HTTP client call to SOAP API?

conn = Create soapconnection

          TRY

                 conn.Useintegratedwindowsauthentication( True)

          CATCH (Throwable x)

                   ls_error = x.GetMessage()

                   MessageBox( "EAS", "Error initializing web service call to Universal Coder." )

                   RETURN -1

          END TRY

 Thank you. Much appreciated.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 28 November 2023 22:09 PM UTC
Hi David;

From the little that I know of your authentication "Use Case:" requirements .. I think that you might want to use the SetCredentials() command ...

https://docs.appeon.com/pb2022r2/powerscript_reference/setCredentials_func.html

HTH

Regards ...Chris
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 29 November 2023 00:22 AM UTC
The documentation Chris provided specifically points out that integrated windows authentication not supported for the HTTPClient.
  1. Helpful 1
  1. Logan Liu @Appeon
  2. Wednesday, 29 November 2023 09:19 AM UTC
Hi David,

Before the HttpClient object supports Windows authentication, could you use another supported authentication method? It usually depends on your Web Service.

If you have to use integrated Windows authentication, you can try some third-party HTTP Clients.

Such as ChilKat, refer to a similar topic here: https://community.appeon.com/index.php/qna/q-a/useintegratedwindowsauthentication-replacement-for-httpclient

If interested in .NET, you can also try the Calling the .NET Assembly feature (https://docs.appeon.com/pb2022r2/application_techniques/Calling_C_Assembly_in_an_Application.html) to leverage the other components from the .NET world.

Regards, Logan

  1. Helpful 2
There are no comments made yet.
David Pylatuk Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 19:07 PM UTC
  2. PowerBuilder
  3. # 4

Much appreciated Chris,

 

Reading them over now. Thanks.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 28 November 2023 20:55 PM UTC
You are most welcome!
  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.