Web Services Reference for Oracle Self-Service E-Billing > Examples of Web Services > Examples of the Hierarchy Web Service >

Example of Getting a List of Hierarchy Root Nodes


This example shows you how to use the hierarchy Web service to return a list of root nodes of the hierarchy that the authenticated user can access, for the latest period.

Operation

Use the following operation to get a list of hierarchy root nodes for a user:

GET /hierarchies/{hierarchy_id}/my_root_nodes

Sample URL

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

http://myhost.example.com:7017/ebillingrs/rs/hierarchies/91295/my_root_nodes

Roles

The following roles are valid for this Web service example:

  • B2B Admin
  • B2B Manager
  • B2B User
XML Response

The following is an example of the XML response:

<hierarchyNodeList>

<count>1</count>

<hierarchyNode>

<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>

</hierarchyNode>

</hierarchyNodeList>

Web Services Reference for Oracle Self-Service E-Billing Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.