Using Java web services to connect J2ME app to the internet: Part 1

This tutorial assumes that you have fair knowledge in the following;

1.       Java

2.       J2ME

Asides the above you need the following tools in order to follow the tutorial;

1.       Eclipse IDE for Java EE developers – I will be using Eclipse Galileo, download it here

2.       Net beans  – I will be using Net beans 6.9

3.       Apache Tomcat – I will be using jakarta-tomcat-5.0.28 ,download it here

First what are web services?

In a nutshell, Web Services are the natural evolution of basic Remote Procedure Calls. A Web Service is three specific things;

  • A way to find and register interest in a service.
  • A transport mechanism to access a service.
  • A way to define what the input and output parameters are for such a service.

These three properties, when used in combination, provide a new form of Distributed Computing environment. The difference between this computing environment and DCEs of the past is in standards and implementations. A standard definition mechanism, standard lookup services, and standard transport definitions via Simple Object Access Protocol (SOAP). All of which are provided without concern for the underlying implementation mechanism. What makes Web Services so cool is that, at least in theory, a Web Service written in C and running on a Microsoft IIS can access a Web Service written in Java and running on BEA Web Logic Server. All without concern for how each Web Service is actually implemented.

The standard web service model is depicted as follows;

Java web services model

Java web services model

Some one might ask why I chose web services over Servlets. I have also tried to use servlets to connect a J2ME application to the internet. I found it very tedious and hard to configure and found this as better alternative. That will be all for today’s tutorial. In the next tutorial we are going to go over Apache Tomcat configurations so keep it here!

The next tutorial is now available: Configuring Apache Tomcat


2 thoughts on “Using Java web services to connect J2ME app to the internet: Part 1

  1. Pingback: J2ME and Web Services:Part 2 – Configuring Apache Tomcat « KiruinC

  2. Pingback: Creating the Login: Java web services part 4 « KiruinC

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s