Nortel Networks NN42020-123 manual Writing a client to perform some specific OPI operations

Page 21

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

Image 21
Contents Multimedia Communication Server Page Finding the latest updates on the Nortel Web site Page Getting help from the Nortel web site Getting help over the phone from a Nortel Solutions CenterGetting help through a Nortel distributor or reseller Open Provisioning Interface introduction Web Services Description Language WsdlLogical view of OPI interactions Third party client developmentGenerate stubs Get the WsdlImplement interface accessing stubs Authentication and authorizationAccess stubs from the third-party application AuthenticationDomain-level authorization Provisioning-Level authorization AuthorizationSuccess indication on remove methods Provisioning InterfaceExample Deprecated methods and method fieldsProvisioning data visibility PROV606 logsDeprecated method elements Sheet 1 Affected method Affected method Deprecated method element Deprecated method elements Sheet 2Page Building OPI Stubs Clients RequirementsDownloading the Axis toolkit Procedure 1 Downloading the Axis toolkit Setting the ClasspathProcedure 2 Setting the Classpath Procedure 3 Downloadin the Wsdl file Compiling the stubs Procedure 4 Compiling the stubsDownloading the Wsdl file \opiclient\com\client\opi\service Writing a client to perform some specific OPI operations Copyright Nortel Networks Limited Two examples Example creating a user route to screen two numbers Page Example creating a route using simultaneous ringing Page Special note on .NET authentication headers Error codes and messages Error Code Error Message Data-Access error messagesDirectoriesImpl error messages Error Code Error Message AddressBookImpl error messages Error Code Error Message Error Code Error Message Error Code Error Message UserServicePkgImpl error messages UserMgrImpl error messages Error Code Error Message RouteMgrImpl error messages DomainMgrImpl error messagesError Code Error Message AddressBookGroupCondMgr error messages GlobalAddrBookCondMgr error messagesPersonalAddrBookCondMgr error messages PhoneNumberCondMgr error messages TimeBlockGroupCondMgr error messagesBannedSubscriberMgrImpl error messages DomainCosMgrImpl error messages TimeZoneMgrImpl error messages DomainProfileMgrImpl error messagesStatusReasonMgrImpl error messages ServiceMgrImpl error messages Error Code Error Message UserPropertiesServlet error messages VoicemailMgrImpl error messages UserDataMgrImpl error messagesDeviceMgrImpl error messages IPCMMgrImpl error messages UserTimeMgrImpl error messages Error Code Error Message Error Code Error Message Page Page Multimedia Communication Server