Copyright © Nortel Networks Limited 2006 | 21 |
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
1Instantiate the OPIServiceLocator.
2Instantiate a URL object that will point to the Provisioning Server location and the OPI service running on it.
3Invoke 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.
4Set 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.
Open Provisioning Interface Reference Guide