1. Moshe Tangi
  2. PowerBuilder
  3. Tuesday, 8 May 2018 12:40 PM UTC

Hello

I have developed a .Net  WS target  with some functions which connects the database , retrieve data into DS and needs to returns it .

I used an  array of structures by reference  in the functions ( i saw it in Bruce A. video ) ,  but the programmer ( java ) who worked to get the data didn't know how deal with it .

Now i just build a very long string to return the data ( Loop on the DS results , field by field ).

 

Any other ideas ?

 

Thanks

 

Kevin Ridley Accepted Answer Pending Moderation
  1. Tuesday, 15 May 2018 12:10 PM UTC
  2. PowerBuilder
  3. # 1

Why not use SaveAs and pick XML for type right from your datastore?  Seems like the easiest way to do it.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 8 May 2018 13:44 PM UTC
  2. PowerBuilder
  3. # 2

Hi Moshe;

  Your Structure approach is correct. The key is that what you return in the structure must be standard "C" data types for other languages to process correctly.

FYI:  XML (SOAP) data types.

Regards ... Chris

Comment
  1. Moshe Tangi
  2. Wednesday, 9 May 2018 07:03 AM UTC
hi Chris



The fields in the structure are all string / integer data types .  How can i send xml string



 

  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 15 May 2018 13:26 PM UTC
String  ls_xml



ls_xml = .Describe("DataWindow.Data.XML")



Return ls_xml

  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.