Published web service JSON over REST Service

Published web service JSON over REST Service

book

Article ID: KB0079940

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 7.0.5, 7.0.6,7.0.7,7.0.8,

Description

If you create WS (simple one for test - ignore the input information and validation) and let try the REST request on for XML over https  REST and one for JSON over https REST in the published web service section of TDV Studio.

For XML or REST it return the expected XML response. But, JSON over https REST will return an incomplete response.

Issue/Introduction

Published web service JSON over REST Service

Environment

All

Resolution

This problem is fixed in 7.0.8.00.01 and later versions. Prior version of 7.0.8.00.01 should should follow below workaround.

Workaround:

By simply disabling configuration item,  JSON Format /  "Validate XML Schema Definition Set" , on REST published panel will fix the issue and will render correct JSON response with all 4 fields. 

That means, set the value for " Validate XML Schema Definition Set to false" under JSON Format on REST published panel.

Please see the attached image (Json Output.png)  for your reference.

User-added image

The reason for disabling is:

In TDV, schema def set will affect json output by default if any def set is bind with the resource. This means "bad" schema definition will broke the json output by default. But we could disable 'JSON Format/Validate XML Schema Definition Set' option to avoid it.