Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Hierarchy Web Service >

Example of Getting a Node ID


This example shows you how to use the hierarchy Web service to returns a node ID using the unique link target URI, without the hierarchy node type.

Operation

Use the following operation to get a node ID using the unique link target URI:

GET /hierarchies/{hierarchyId}/linkTargets/{linkTargetURI}

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/hierarchies/91295/linkTargets/edx:omf:company:Dutch%20Home%20Insurance

XML Response

The following is an example of the XML response:

<hierarchyNodeInfo>
<nodeId>91296</nodeId>
<hierarchyId>91295</hierarchyId>
<nodeName>Dutch Home Insurance</nodeName>
<linkTargetType>edx:omf:company:</linkTargetType>
<linkTargetURI>edx:omf:company:Dutch Home Insurance</linkTargetURI>
<linkTargetExternalKey>Dutch Home Insurance</linkTargetExternalKey>
</hierarchyNodeInfo>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.