web service output xml is not consistant.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

web service output xml is not consistant.

#1

Postby xren » Mon Mar 11, 2013 8:00 pm

Hi

I am building this web service, getting data from a db table, then copy the data to another table for output.

However, when some column is null then it will not appear in the output xml. the column only appear in output xml when there is data.

I would like to have the item always in the output xml no matter if the corresponding column has data or not.

Thanks,
Xiaoli
0 x

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Tue Mar 12, 2013 9:10 am

Hi Xiaoli,

You need to set the property on the source field within the web service resource to write out an empty element.

1) Open the web service resource
2) Select the column (or field) in the 'Resource Fields' panel
3) In the 'Update Options' on the field properties panel, change the dropdown for 'Source field has no value' to 'write empty element'

This should now write an empty element if no data is present.

Kind regards

Steve
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Fri Mar 15, 2013 4:12 pm

Thank you Steve.
0 x


Who is online

Users browsing this forum: Bing [Bot] and 40 guests