Nortel Networks NN42020-123 User Manual

Page 21

Advertising
background image

Open Provisioning Interface Reference Guide

21

Copyright © Nortel Networks Limited 2006

The Client classes are now ready to be used.

Writing a client to perform some specific OPI operations

Once the OPI stubs have been generated and compiled, the real OPI
client can be constructed and OPI method calls can be made. To
accomplish this, the following steps must be performed in code.

Procedure 5 Writing a client to perform some specific OP
operations

1

Instantiate the OPIServiceLocator.

2

Instantiate a URL object that will point to the Provisioning Server
location and the OPI service running on it.

3

Invoke the getOPI call on the OPIServiceLocator instance with
the URL created in step 2. This action will result in an instance
of the OPI object, which can be used to make OPI calls.

4

Set the authentication information on the OPI object from step 3.
Peform this action by down casting the OPI object as a
org.apache.axis.client.Stub object.

Advertising