Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Developing a web service and consuming it with J2ME Client

Kuntal Ganguly (kuntalganguly86@gmail.com), Jr. Consultant, Protech Infosystems Pvt. Ltd
Kuntal has a Bachelor of Technology from West Bengal University of Technology, India in Information Technology in 2010. Published project documentation on Steganography and Data Hiding in college magazine. Currently associated as a Junior Consultant at Protech InfoSystems Pvt. Ltd, Kolkata and working on Legacy modernization project that includes various components like JCL, CICS, COBOL, DB2 and PL1, involving Business Rule Extraction , Analysis and Documentation for a foreign Bank. He has expertise in using a wide range of open source and commercial tools (WASCE, Eclipse, Mule ESB, Mule Galaxy, EZlegacy , Active MQ , Birt , and DB2 express C) and technologies (GWT, RSS and Atom).

Summary:  This tutorial demonstrates how to develop web service with Java 2 Platform and deploying it in WebSphere Application Server Community Edition (WASCE) and Tomcat server using two simple examples (HelloWorld and Logging), then invoking them through a J2ME client. Eclipse IDE is also used to develop a web service and deploy it in the WASCE. There is also a Stock-Quote service example in a remote location (not in local host) developed in .NET platform and this tutorial will show how to invoke it using a J2ME client.

Date:  09 Mar 2011
Level:  Intermediate PDF:  A4 and Letter (1145 KB | 51 pages)Get Adobe® Reader®

Activity:  21727 views
Comments:  

Before you start

Learn what to expect from this tutorial, and how to get the most out of it.

About this tutorial

This tutorial demonstrates how to develop web service with Java 2 Platform and deploying it in WebSphere Application Server Community Edition (WASCE) and Tomcat server using two simple examples (Hello World and Logging) and invoking them through a J2ME client. Eclipse IDE is also used to develop a web service and deploy it in the WASCE. There is also a Stock-Quote service example in a remote location (not in local host) developed in .NET platform and this tutorial will show how to invoke it using a J2ME client.

All these web service uses SOAP as a fundamental messaging framework for web services. SOAP builds up a loosely coupled infrastructure that provides significant resilience, scalability and flexibility in deployment using different implementation technologies and network transport. J2ME Web services specification (JSR 172) identifies two independent, optional packages that you can use to access remote SOAP- or XML-based Web services and parse XML data. The complete JSR 172 specification, which is available for download at the Java Community process.


Objectives

In this tutorial, learn how to:

  • Download and Install the web servers (Tomcat and WASCE), if it is not already installed, and make minor additions to it to successfully implement the given examples.
  • Download and install Sun J2ME Emulator (Java[TM] ME Platform SDK 3.0) for developing J2me Client to invoke the web services.
  • Download and install Axis2 runtime environment into Tomcat for developing and deploying Web service (Hello World).
  • Developing web service (Logging) using Eclipse IDE and deploying it in WebSphere Community edition (WASCE).
  • Accessing Remote web service (Stock Quote) developed in .Net platform and hosted in the Remote machine through J2me client.

Prerequisites

This tutorial assumes familiarity with some basic concepts of the Eclipse IDE, including views, editors, panels, and so on, along with basic programming concept in Java and J2me. For an introduction to Eclipse, Java and J2me, see Resources.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=SOA and web services
ArticleID=631080
TutorialTitle=Developing a web service and consuming it with J2ME Client
publish-date=03092011
author1-email=kuntalganguly86@gmail.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.