Using IBM worklight for server-side mobile application Development (II)

Source: Internet
Author: User
Tags definition file system web services websphere application server

Integration of IBM Worklight adapters with WEB services business logic

Brief introduction

In the 1th part of this article series, you developed and tested a Java application using the IBM Rational application Developer for WebSphere Version 8.5.1 Developer Workbench. It then uses an extension and conversion method, and uses the custom Java application logic that you developed in a mobile application. To develop a mobile application that contains HTTP adapters that invoke the logic of Java applications, you used the IBM worklight Studio Developer Workbench.

In part 2nd, you will learn how to use the Rational application Developer for WebSphere v8.5.1 Developer Workbench to create/test a Java Bean based Java application developed in part 1th Bottom-up design of the JAX-WS. You will then learn how to merge this custom Java API for XML Web Services (JAX-WS) application logic into a server-side mobile application that contains HTTP adapters. Finally, you will learn how to test this mobile application end-to-end.

Considerations for use-case architecture

This article is based on the same use case developed in part 1th. The same programming artifacts are merged in the article. Be sure to read part 1th, familiarize yourself with the use case and the programming artifacts (or click More in this series).

Use Case Implementation method

The use-case implementation consists of 6 different activities, which are generally grouped into the following steps:

Develop JAX-WS applications in IBM Rational application Developer.

Use the IBM Rational application Developer Test JAX-WS application.

Package the JAX-WS application logic as a Java archive (. jar) for use by mobile applications.

Develop mobile applications in IBM worklight Studio.

Merges the provided JAX-WS application logic into a mobile application as a JAX-WS archive library.

Test the mobile application in IBM Worklight Studio by calling the JAX-WS application logic developed in the previous steps and using the Worklight adapter. This constitutes an end-to-end test.

Develop a JAX-WS application using Rational application Developer

The following steps list the process of developing a JAX-WS application using the Rational application Developer for WebSphere, Version 8.5.1.

Start Rational application Developer, specify the workspace location on the file system: C:\temp\RADWS\WSUsecasesJAX-WSProject.

If you have not already opened the Java Enterprise Edition perspective, open it (by selecting Window > Open Perspective > Other > Java EE (Default), and then click OK).

To create a new JAX-WS project:

In Enterprise Explorer, select Usecasesjavaproject > src > Com.worklight.customcode > Usecases.java.

To start the Web Service Creation Wizard, you can right-click and select the Web Services > Create Web Service (see Figure 1).

Figure 1. Start the wizard to create a WEB service

Accept the default service definition value (see Figure 2):

Web service type:bottom up JavaBean Web Service

Service implementation:com.worklight.customcode.Usecases

Server Runtime:websphere Application Server v8.5

Web Service RUNTIME:IBM WebSphere Jax_ws

Service Project:webserviceproject

Service EAR Project:webserviceprojectear

Client Type:java Proxy

Configuration:no Client Generation

Box checked:overwrite files without warning

Click Next.

Figure 2. Web Service Creation wizard, service definition

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.