Copyright © Nortel Networks Limited 2006
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
2
3
4
Open Provisioning Interface Reference Guide
The Client classes are now ready to be used.
Instantiate the OPIServiceLocator.
Instantiate a URL object that will point to the Provisioning Server
location and the OPI service running on it.
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.
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.
21