1. Roland Smith
  2. PowerBuilder
  3. Friday, 24 May 2019 21:03 PM UTC

I am wondering if it is possible to create a web service from PowerBuilder that is SOAP based.

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 29 May 2019 00:58 AM UTC
  2. PowerBuilder
  3. # 1

I just want to try it out for a learning experience. I have every version of PowerBuilder so which ever one works the best is fine.

Comment
  1. Roland Smith
  2. Wednesday, 29 May 2019 10:54 AM UTC
I just want an example of wsdl and the xml sent to the web service. I was thinking it would be easier to understand than one that was calling one written in c#. Once I get those two pieces, I'll never touch it again.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 29 May 2019 13:23 PM UTC
PB 2017 and PB 2019 both still have the old Sybase SOAP-based Web service target. So if you have a copy of either of those it should work.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 29 May 2019 19:35 PM UTC
Hi Roland;

As a good reference & learning tool for the SOAP based WS in PB, you could have a look at my STD Framework's "OrderEntry" application source. It includes a PB WS target, objects & deployment project for the SOAP WS. Once deployed, you can also run the WS (RHMB the WS project) and execute (and even debug it) via your local web browser. The browser will use the .Net frameworks tools to assist you in running & debugging. The OrderEntry app itself calls the WS to perform various duties, like: DB login checking and pipeline execution. So studying that should give you the WSDL and XML exposure that you are looking for.

Starting in PB2019 GA (end of this week) - you can then move on to the RESTFul side of WS's and then compare the SnapDevelop approach to the older PB based SOAP approach.

FYI: https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry

HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 May 2019 16:38 PM UTC
  2. PowerBuilder
  3. # 2

Hi Kevin;

   Yes, you can - like in PB2017. However, as Armeen points out - that feature is no longer being enhanced. The new direction is RESTful web services a la SnapDevelop (included with PB2019).

Regards ... Chris

Comment
  1. Kevin Ridley
  2. Wednesday, 29 May 2019 13:13 PM UTC
I guess that's why I said "The recommended direction is to use PB2019 and create a REST webservice..."
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Monday, 27 May 2019 11:19 AM UTC
  2. PowerBuilder
  3. # 3

The recommended direction is to use PB2019 and create a REST webservice, but you should be able to create a SOAP one in PB2017, depending which version you have.  I haven't tried it yet, but I believe you need at least the Cloud version or above.

 

File>New>Target>.NET Web Service

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 28 May 2019 16:17 PM UTC
Just FYI for everybody, this is a deprecated feature in PB 2019 since the new REST Web service is introduced. It is still included in PB 2019 so if you are using it then no problem to upgrade, but we are no longer maintaining it in PB 2019 and beyond. So we don't recommend customers who are not already using this feature should not start to use this feature now.
  1. Helpful
  1. Kevin Ridley
  2. Tuesday, 28 May 2019 16:24 PM UTC
Well he did say "can I" not "should I", lol.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Saturday, 25 May 2019 19:49 PM UTC
  2. PowerBuilder
  3. # 4

With PowerBuilder 2019 you can create a C# non-visual library that is using the new .NET DataStore.  You would need to do a manual step of creating the SOAP wrapper yourself.   The C# IDE of PowerBuilder will only create the REST interface for you.

Comment
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.