rreid Respected Contributor.
Respected Contributor.
186 views

Documentation for json2xds utility in REST driver


Is there any documentation for the json2xds utility in the REST driver?
I am connecting to the Graph API and processing queries for associations
just fine but I can't get the resulting response to be processed by
json2xds. It just comes back blank. I have tried lots of different
things including exact examples for supported JSON in the docs but it
keeps coming back blank.

Any ideas?

Rich


--
rreid
------------------------------------------------------------------------
rreid's Profile: https://forums.netiq.com/member.php?userid=396
View this thread: https://forums.netiq.com/showthread.php?t=56047

Labels (1)
0 Likes
4 Replies
Knowledge Partner
Knowledge Partner

Re: Documentation for json2xds utility in REST driver

On Fri, 17 Jun 2016 15:34:01 +0000, rreid wrote:

> Is there any documentation for the json2xds utility in the REST driver?


None that I know of.


> I am connecting to the Graph API and processing queries for associations
> just fine but I can't get the resulting response to be processed by
> json2xds. It just comes back blank. I have tried lots of different
> things including exact examples for supported JSON in the docs but it
> keeps coming back blank.


Post a level 3 trace so we can see what it's (not) doing.


--
David Gersic
Knowledge Partner http://forums.microfocus.com
If you find this post helpful, please click on the star below.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Documentation for json2xds utility in REST driver

rreid wrote:

>
> Is there any documentation for the json2xds utility in the REST
> driver? I am connecting to the Graph API and processing queries for
> associations just fine but I can't get the resulting response to be
> processed by json2xds. It just comes back blank. I have tried lots
> of different things including exact examples for supported JSON in
> the docs but it keeps coming back blank.


It is very fussy about the format. It is especially important that the
driver-operation-data metadata is correct as this seems to be used by
the JARs to decide what to do with it.

So for example: poll

Also known issue with simulation of these JARs in Designer (there is a
separate thread about that)
Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
rreid Respected Contributor.
Respected Contributor.

Re: Documentation for json2xds utility in REST driver


alexmchugh;268832 Wrote:
> rreid wrote:
>
> >
> > Is there any documentation for the json2xds utility in the REST
> > driver? I am connecting to the Graph API and processing queries for
> > associations just fine but I can't get the resulting response to be
> > processed by json2xds. It just comes back blank. I have tried lots
> > of different things including exact examples for supported JSON in
> > the docs but it keeps coming back blank.

>
> It is very fussy about the format. It is especially important that the
> driver-operation-data metadata is correct as this seems to be used by
> the JARs to decide what to do with it.
>
> So for example: poll should return modify (rather than add) and the JAR
> will return empty results if you feed it an Add in that context.
>
> Also known issue with simulation of these JARs in Designer (there is a
> separate thread about that)


Thanks guys. Not sure if it is required but I put brackets "[" and "]"
around all the value elements returned in the json (I assume effectively
making them single item arrays) and it returned values. I assume this
is to be able to handle multivalued attributes. I also tweaked a few
other elements adding in src dn and object class elements.


--
rreid
------------------------------------------------------------------------
rreid's Profile: https://forums.netiq.com/member.php?userid=396
View this thread: https://forums.netiq.com/showthread.php?t=56047

0 Likes
Knowledge Partner
Knowledge Partner

Re: Documentation for json2xds utility in REST driver

rreid <rreid@no-mx.forums.microfocus.com> wrote:
>

alexmchugh;268832 Wrote:
> rreid wrote:
>>
>>>
>>> Is there any documentation for the json2xds utility in the REST
>>> driver? I am connecting to the Graph API and processing queries for
>>> associations just fine but I can't get the resulting response to be
>>> processed by json2xds. It just comes back blank. I have tried lots
>>> of different things including exact examples for supported JSON in
>>> the docs but it keeps coming back blank.

>>
>> It is very fussy about the format. It is especially important that the
>> driver-operation-data metadata is correct as this seems to be used by
>> the JARs to decide what to do with it.
>>
>> So for example: poll should return modify (rather than add) and the JAR

> will return empty results if you feed it an Add in that context.
>>
>> Also known issue with simulation of these JARs in Designer (there is a
>> separate thread about that)

>
> Thanks guys. Not sure if it is required but I put brackets "[" and "]"

around all the value elements returned in the json (I assume effectively
making them single item arrays) and it returned values. I assume this
is to be able to handle multivalued attributes. I also tweaked a few
other elements adding in src dn and object class elements.

Oh yes David and I forgot to mention that.
The parsing is strict and expects every value as an array (even if the
schema indicates the value is single valued).

I assume it is also to enable round-trip behaviour as the opposite
direction (XDS to JSON) always generates JSON like this.

--
If you find this post helpful and are logged into the web interface, show
your appreciation and click on the star below...
Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.