1. Prasa Pat
  2. PowerBuilder
  3. Thursday, 14 June 2018 18:58 PM UTC

Our application uses pipeline and it works in PB2017R2. I am trying to deploy it to web, how can I deploy as server NVO. All the documentation points to create server NVO and EAServer. Is EAServer needed

Step 2: Deploy the NVOs holding unsupported features to the EAServer hosting Appeon Server that is used for Web deployment of the target PowerBuilder application. To deploy an EAServer component from a PowerBuilder NVO, use the EAServer Component Project wizard in PowerBuilder.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 June 2018 14:20 PM UTC
  2. PowerBuilder
  3. # 1

Hi Prasa;

      I was able to create a simple example of a Pipeline based web service over the weekend. The PL WS basically copies the Contract table in the PB2017R2 demo database to a new table called Contract2. I used the sample OrderEntry integrated framework example application to build this code. You can download the PL Example App from here ( OrderEntry_Pipeline.zip ).

    Once downloaded, If you open the Web Service Target and look at the nc_login_controller object class and in particular the "of_run_pipeline" function - you will see the main PL code. The project object in the same library can deploy the WS to IIS. Once deployed, you can use the RHMB on the project and either run the WS via the .NET Test Harness or use the .Net debugger for more insight into the WS's operation. The WS produces a log file in the WS's "Session" folder for you to look at in more detail.

   In the main native Win32 target, within the "OES_Main.pbl" PBL - I built a Web Service DataWindow named "dw_pipeline_ws". If you open the DWO in the DW Painter and perform a Retrieve, the WS DW will call the deployed web service and run the respective PL to create the Contact2 table. Note that WS based DW's are automatically usable  in either PowerServer Web or Mobile apps "as is" (no special code required).

Tip: If you edit the DWO's source code, you will see the WSDL.

  I will continue to build upon this PL example into the full OrderEntry App for the next release of the frameworks and their respective sample OrderEntry application. However I hope in the meantime, that this starter WS/PL and PowerScript example code will help you in your project to get underway.

Regards ... Chris

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 14 June 2018 19:15 PM UTC
  2. PowerBuilder
  3. # 2

Hi Prasa;

   Unfortunately, Pipeline objects are not supported in either PowerServer Web or PowerServer Mobile applications at this time.

   A work around that I do is to create a .Net Web Service object via creating a Web Service Target in the PB2017 IDE and then a corresponding NVUO (that will then be deployed to the IIS application server) that incorporates the Pipeline(s) I need to have executed. In my Web and/or Mobile client App, I use a WS DataWindow (easiest way for a client to call a WS) to call the PB WS in IIS and have it run the Pipeline on my App's behalf. The WS would then just return the PL's completion code to the WS caller.

Food for thought. 

Regards ... Chris

Comment
  1. Prasa Pat
  2. Thursday, 14 June 2018 19:45 PM UTC
Thanks Chris, will try. Do you have any working example app for this.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 15 June 2018 16:56 PM UTC
Hi Prasa;



  Unfortunately, no. 



However - I'll try and "whip one up" for you over the weekend. Stay tuned.  



Regards ... Chris

  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.