1. Aurora Carrales
  2. PowerBuilder
  3. Wednesday, 7 February 2018 22:09 PM UTC

Hi!

I need to create a webservice to consume it from a mobile application.

The webservice, must create a pdf file and send it by email.

Can someone guide me?

I have already build a webservice and consume it but only the retrieve of the data returns, I can not create the pdf file.I do not know much about virtual paths and web services.

Tnks!!

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Thursday, 8 February 2018 08:22 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Aurora,
essential steps for your use case "The webservice, must create a pdf file and send it by email."

1) SaveAs(ls_filename, PDF!) the datawindow (will need Ghostscript driver on the server unless you deploy the WS from PB2017);
2) Read back ls_filename into a blob variable and make the it the return value of your WS;
3) From the mobile app retrieve the blob (you may need to cast it to a byte array).

Cheers,
Marco

Comment
  1. Aurora Carrales
  2. Thursday, 8 February 2018 23:20 PM UTC
Thanks!!! 

  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 8 February 2018 00:23 AM UTC
  2. PowerBuilder
  3. # 1

Hi Aurora,

 

Here's a video that might help you on your way: https://www.appeon.com/developers/library/videos/how-create-net-web-service-powerbuilder.html

 

I hope this helps.

 

Regards,

Comment
  1. Aurora Carrales
  2. Thursday, 8 February 2018 23:21 PM UTC
Gracias!

  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.