Nortel AS 5300 Application Programming Interface page 44

Application programming interfaces reference
Hide thumbs Also See for AS 5300:
Table of Contents

Advertisement

44 Creating Open Provisioning Interface clients
2
3
4
5
6
Example - Writing a client
The following figure shows an example of writing a client. In the example,
the class is placed under D:\opiclient.
Nortel Application Server 5300 Application Programming Interfaces Reference
Copyright © 2008 Nortel Networks
.
Instantiate a URL object that will point to the Provisioning Server
location and the OPI web service running on it.
Invoke the getOPI call on the OPIServiceLocator instance
with the URL.
This action will result in an instance of the OPI object, which can
be used to make OPI provisioning method calls.
Set the authentication information on the OPI object.
Perform this action by downcasting the OPI object as a
org.apache.axis.client.Stub object.
Set the OPI Client Version number in a SOAP Header.
This is used by the Provisioning Server to determine the version
of the provisioning client and return data that the Provisioning
Client can understand.
Make the OPI provisioning method call (for example, getUser)
by invoking the same on the OPI instance.
The arguments to this provisioning method are the data objects
generated during the stub generation process. For example, for
the addUser method, pass in the domainName and the User
object, which is populated with the user data.
Nortel AS 5300
NN42040-110 01.01 Standard
11 June 2008
--End--

Advertisement

Table of Contents
loading

Table of Contents