Nortel Networks AS 5300 Writing a client to perform some specific OPI operations, opi\service

Page 43

Writing a client to perform some specific OPI operations 43

This creates the client stubs under D:\opiclient\com\clien

t\opi\service

The stubs contain all the provisioning methods that are exposed by the OPI web service, and the same methods that can be seen in the WSDL.

The arguments provided to these provisioning methods are generated in the directory D:\opiclient\com\nortelnet works\ims\opi.

All the OPI provisioning methods are Java Bean objects and are used to configure and retrieve data for different functionality. Each element in the data object is of a type specified in the OPI.

The name space mapping from OPI to com.client.opi.serv ice can be changed to another mapping.

Attention: The OPISoapBindingStub.java file, generated under com\client\opi\service, has a large static block that will not compile. You must edit this file by hand to split the large static block into two or three smaller ones so that it compiles. This is a known issue due to the fact that the code is automatically generated.

3Compile the files that are generated in the previous step using either the command line command javac or an Interactive Development Environment (IDE) such as netbeans or eclipse, and save them in a separate folder.

The Client classes are now ready to be used.

--End--

Writing a client to perform some specific OPI operations

Use this procedure to write 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 provisioning method calls can be made using the following procedure.

Procedure Steps

Step Action

1Instantiate the OPIServiceLocator.

Nortel AS 5300

Nortel Application Server 5300 Application Programming Interfaces Reference

NN42040-110 01.01 Standard

11 June 2008

Copyright © 2008 Nortel Networks

Image 43
Contents NN42040-110 Legal Notice Contents Starting the Bulk Provisioning Tool Other changes New in this releaseNew in this release Related documents IntroductionNavigation AudienceIntroduction Open Provisioning Interface fundamentals Application Programming Interface fundamentalsBulk Provisioning Tool fundamentals Why use the Bulk Provisioning ToolFollowing table lists the requirements to run the BPT Bulk Provisioning Tool requirementsApplication Programming Interface fundamentals Install and launch the BPT Using the Bulk Provisioning ToolBPT main menu BPT main menu Quit Files BPT provisioning methodsBPT files and scripts NavigationScripts BPT conventions and examplesMethod and file syntax conventions GetSysRoles optional into file name Optional syntaxBrackets Angle bracketsBar Square bracketsFully qualified user name Comma separated stringsSuccess indication on remove methods Create and manage provisioning roles using the BPT Unknown error messagesDefine the new provisioning role View the new provisioning role AddRole using file D\prov\addexample.txtGetRole using AddExample Add the new provisioning roleDelete the new provisioning role Help addRole BPT Help optionBPT mapping to the Provisioning Client BPT limitationsResource use Batch processingProvisioning data visibility Using the Bulk Provisioning Tool Security, authentication, and authorization Using the Open Provisioning InterfaceSecurity Http Basic Authentication Onboard Authentication AuthenticationWS-Security UsernameToken Special note for .NET authentication headers Domain-level authorization Provisioning-level authorization AuthorizationWsdl Third-party client developmentGet the Wsdl Generate stubsAccess stubs from the third-party application Implement interface accessing stubsStarting the Bulk Provisioning Tool Starting the Bulk Provisioning ToolDownloading the Bulk Provisioning Tool to a workstation Procedure StepsLaunching the BPT on a workstation Launching the BPT on a workstation Starting the Bulk Provisioning Tool Prerequisites for creating OPI clients Creating Open Provisioning Interface clientsCreating OPI clients Task flow for creating OPI clients \axis-14\webapps\axis\WEB-INF\lib Retrieving the error codesDownloading the Axis toolkit Configuring the class pathLoadname/wsdl/opi Downloading the Wsdl fileCompiling the client stubs \opiclientWriting a client to perform some specific OPI operations \opi\serviceExample Writing a client Writing a client to perform some specific OPI operations Compiling the client class Procedure Steps Accessing the OPI Java docsAdminAuthentication subfolder in the OPI Java Docs folder Writing a client to perform some specific OPI operations Accessing the OPI Java docs Tool prompts Trust this certificate? no Importing a CA Certificate into the BPTKeytool -list -v -keystore opitruststore Importing a CA Certificate into the BPT Page Nortel AS
Related manuals
Manual 92 pages 3.24 Kb