Nortel Networks AS 5300 manual Example Writing a client

Page 44

44Creating Open Provisioning Interface clients

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

3Invoke 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.

4Set the authentication information on the OPI object.

Perform this action by downcasting the OPI object as a org.apache.axis.client.Stub object.

5Set 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.

6Make 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.

--End--

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

Nortel Application Server 5300 Application Programming Interfaces Reference

NN42040-110 01.01 Standard

11 June 2008

Copyright © 2008 Nortel Networks

Image 44
Contents NN42040-110 Legal Notice Contents Starting the Bulk Provisioning Tool New in this release Other changesNew in this release Introduction NavigationAudience Related documentsIntroduction Application Programming Interface fundamentals Open Provisioning Interface fundamentalsWhy use the Bulk Provisioning Tool Bulk Provisioning Tool fundamentalsBulk Provisioning Tool requirements Following table lists the requirements to run the BPTApplication Programming Interface fundamentals BPT main menu Using the Bulk Provisioning ToolInstall and launch the BPT BPT main menu Quit BPT provisioning methods BPT files and scriptsNavigation FilesMethod and file syntax conventions BPT conventions and examplesScripts Optional syntax BracketsAngle brackets GetSysRoles optional into file nameSquare brackets BarSuccess indication on remove methods Comma separated stringsFully qualified user name Define the new provisioning role Unknown error messagesCreate and manage provisioning roles using the BPT AddRole using file D\prov\addexample.txt GetRole using AddExampleAdd the new provisioning role View the new provisioning roleDelete the new provisioning role BPT Help option Help addRoleBPT limitations BPT mapping to the Provisioning ClientBatch processing Resource useProvisioning data visibility Using the Bulk Provisioning Tool Security Using the Open Provisioning InterfaceSecurity, authentication, and authorization WS-Security UsernameToken AuthenticationHttp Basic Authentication Onboard Authentication Special note for .NET authentication headers Authorization Domain-level authorization Provisioning-level authorizationThird-party client development Get the WsdlGenerate stubs WsdlImplement interface accessing stubs Access stubs from the third-party applicationStarting the Bulk Provisioning Tool Starting the Bulk Provisioning ToolLaunching the BPT on a workstation Procedure StepsDownloading the Bulk Provisioning Tool to a workstation Launching the BPT on a workstation Starting the Bulk Provisioning Tool Creating OPI clients Creating Open Provisioning Interface clientsPrerequisites for creating OPI clients Task flow for creating OPI clients Retrieving the error codes Downloading the Axis toolkitConfiguring the class path \axis-14\webapps\axis\WEB-INF\libDownloading the Wsdl file Compiling the client stubs\opiclient Loadname/wsdl/opi\opi\service Writing a client to perform some specific OPI operationsExample Writing a client Writing a client to perform some specific OPI operations Compiling the client class Accessing the OPI Java docs Procedure StepsAdminAuthentication subfolder in the OPI Java Docs folder Writing a client to perform some specific OPI operations Accessing the OPI Java docs Keytool -list -v -keystore opitruststore Importing a CA Certificate into the BPTTool prompts Trust this certificate? no Importing a CA Certificate into the BPT Page Nortel AS
Related manuals
Manual 92 pages 3.24 Kb