Developer's Guide for Parlay X
Get Adobe Reader |
The following sections provide an overview of developing using the Parly X APIs:
WebLogic Network Gatekeeper Web Services applications are services offering their users access to telecom functionality. The applications can access the telecom functionality through two different Web services APIs. Which API to use depends on the application's needs for network functionality and means of access.
For applications that will provide standardized basic telecom functionality, it is recommended to use the Parlay X APIs.
For applications with a need for more granular control, the Extended Web Services interfaces can be used.
This guide describes how to develop Parlay X applications that connects to the WebLogic Network Gatekeeper. WebLogic Network Gatekeeper acts as aParlay X gateway to the underlying telecom network.
Using the Parlay X APIs you can quickly develop powerful telecom-enabled applications using any programming environment supporting Web Services.
Figure 2-2, Parlay X and JS2SE applications, on page 2-4 illustrates different ways of using the Web Services APIs as provided by the WebLogic Network Gatekeeper, as well as examples of different execution environments for applications.
There are two flavours of Web Services; XML-based RPC and WS-I.
Web services applications executes in an environment capable of handling Web Services.
The Web Services applications communicates with the WebLogic Network Gatekeeper using SOAP/HTTP.
A Web Services Parlay X application
Below is a description of an example development environment. Integrated programming environments, like Visual Studio .Net can be used for development of Web Services applications, but this guide uses a minimalistic approach. For the purpose of this guide, the following will do:
The following files, from the Axis distribution, are used:
The following JavaMail files are used:
Before an application is developed, the application developer and the service provider must exchange information regarding resources.
The first step for the application developer is to define which resources to use, call, messaging, location, status, payment etc. and to map these requirements to an APIs that corresponds to these resources.
The next step is to exchange the information according to .
WebLogic Network Gatekeeper operator must also communicate which services and methods that are supported by the deployment.
In addition to this information, other information related to commercial, security, and privacy regulations must also be exchanged. Examples includes:
Below you find overall workflows for development of Web Services applications based on Parlay X.
Two main scenarios are identified:
Often, an application acts as both server and client.
In Parlay X, all methods starting with "handle" or "notify", for example "handleBusy" are methods that WebLogic Network Gatekeeper invokes on the application's server-part. The application's server side implements the interface.
The method invocations are SOAP requests over HTTP, which means that the server part of the application must be capable of handling SOAP requests.
When using Axis, the Simple Axis Server can be used as a SOAP engine during test. In a production system can, for example, Axis in combination with Tomcat be used.
Below is an overall work sequence for developing telecom enabled Web Services using XML-based RPC:
Below is an overall work sequence for developing telecom enabled Web Services using XML-based RPC:
The example below shows how to define a web service that takes care of notifications on new SMS:es from to the applications' server side. The web service is the SMS notification API, containing the method notifySmsReception().
The Simple Axis Server is used as deployment environment for the application.
Below is an outline on the procedure:
%java org.apache.axis.wsdl.WSDL2Java --server-side
parlayx_sms_notification_service.wsdl
--skeletonDeploy true
Note: The Axis files must be in the classpath.
In the example, the class is named SmsNotificationBindingImpl..
When generating skeletons using WSDL2Java, the empty interface implementations are named <Name of API>BindingImpl
.
The WSDD files are used when deploying and undeploying services. Two files are generated: deploy.wsdd
and undeploy.wsdd
.
<parameter name="className" value="org.csapi.www.wsdl.parlayx.sms.v1_0.notification.SmsNotificationBindingSkeleton"/>
<parameter name="className" value="com.acme.apps.getSmsApp.SmsNotification"/>
Figure 2-4, Application test flow, on page 2-13 shows the application test flow, from the application developers' functional test to deployment in a live network. An application developer can perform functional tests using ATE. The other tests in the flow are performed in cooperation between the application provider and the service provider.
When an application shall be tested using the ATE, the application is connected to ATE, which emulates the WebLogic Network Gatekeeper. Before testing in a test telephony network, a network simulator can be used.
An overview of the relation between ATE and WebLogic Network Gatekeeper is shown in Figure 2-5, ATE in relation to WebLogic Network Gatekeeper, on page 2-14.
For a applications based on Web Services, the applications uses the endpoints provided by ATE during test. After successful verification, the application uses endpoints provided by WebLogic Network Gatekeeper.