1. Kieu Parrish
  2. .NET DataStore
  3. Tuesday, 1 February 2022 20:16 PM UTC

Hello,

When porting an SOAP pb.net to .Net Datastore and because the SOAP has WSDL, the calling /consuming will be different.

Soap pb.net is xml based with http post and content-type can be text/xml or application/soap+xml. 

How would I keep the clients use the same settings of calling soap URL for .Net datastore ? (I mean I would like to use .net core web api but do not want all clients make any update on their end.)

Thank you for all the help!!

 

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 1 February 2022 21:24 PM UTC
  2. .NET DataStore
  3. # Permalink

The .NET DataStore does not limit you only to use REST... you could use SOAP, GraphQL, etc.  .NET DataStore is just a data object, and what you do with the data depends on the C# code you write to handle.

First, before you embark on this conversion project you need to have strong C# programming skills.  If you don't have such skills, then I recommend you engage one of our consulting partners.

At a high level, what you need to do is the following (with PowerBuilder/SnapDevelop 2019 R3 or newer):

1. Use the PowerScript Migrator to convert the PowerScript NVOs to C# classes. 

2. Create SOAP/XML interface for the C# classes. There are number of ways to do this for .NET Core 3.x, and here is just one example.

3. In the PowerBuilder client app, use the HTTPClient object to call the SOAP Web service.

I'm sorry, but Appeon doesn't have SOAP examples to provide you.  SOAP is not very popular these days.

Comment
  1. Kieu Parrish
  2. Tuesday, 1 February 2022 21:39 PM UTC
I researched and saw SoapCore nuget package but was not sure. It sounds like I need to look into the SoapCore more.

Thank you very much!!

  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 1 February 2022 23:17 PM UTC
You’re very welcome. Yes, it is whatever .NET Core framework supports and third-party NuGet packages. .NET DataStore is just a DB mapping object.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.