1. Moshe Tangi
  2. PowerBuilder
  3. Wednesday, 9 May 2018 13:31 PM UTC

hi all

 

How do i return string formatted as xml  by .Net ws target

i have the rows retrieved rows , now i have so save it as xml

how do i do that ??

thanks

Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 9 May 2018 14:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi Moshe,

the short answer is "same as in a PB application".

The long answer, since you ask how to save as XML retrieved rows, is:

  1. scan the datastore (you are in a WS) and build the XML object using PBDOM (which you will deploy along with the .NET WS), then convert the object to string;
  2. export the datastore to a file via SaveAs(..,XML!), then read the file back into a string.

Best,

Marco

Comment
  1. Moshe Tangi
  2. Thursday, 17 May 2018 18:09 PM UTC
hi Marco



That is what i did and its works , but i dont see the file i have created



why

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 9 May 2018 13:42 PM UTC
  2. PowerBuilder
  3. # 2

Hi Moshe;

   This web service primer might be of interest.

HTH

Regards ... Chris

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