Link to home
Start Free TrialLog in
Avatar of rupeshaga
rupeshaga

asked on

Write Mobile Web Service Client So need JSR 172 api

Hi,

I am developing J2ME application that call a web service.
It working fine on some mobile.
But some mobile do not support full JSR 172 .So we need api for using Web Service.

We need this api  j2me_web_services-1_0-src.zip that contain two jar files j2me_rpc_ri.jar and j2me_xml_ri.jar.

Regards
Rupesh
Avatar of Venabili
Venabili
Flag of Bulgaria image

Define some mobiles? Do they support J2ME?
Avatar of rupeshaga
rupeshaga

ASKER

It is not working on Nokia 6300. And this support J2ME
You need the j2me-ws.jar and the j2me-xmlrpc.jar
Both these are a part of the WTK (try version 2.5.2)

You need to generate the WSDL using whatever tools you are using to create the service.

Then you need to generate the client side stubs. For this you need the stub generator provided in the J2ME WTK (Wireless Tool Kit).

Open the wireless toolkit, start a new project and go to Project -> Stub Generator. Choose the generated WSDL and enter the package name for the stubs. Your stub classes will not get generated in your project.

You can then move these classes to your actual project (in eclipse or whatever) and use them there.




Also, check out these links
ASKER CERTIFIED SOLUTION
Avatar of keyurkarnik
keyurkarnik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
download Sun Wireless Toolkit 2.5.2 from the following location http://www.oracle.com/technetwork/java/download-135801.html
In the same tool, under utilities you can find utility to convert wsdl to stubs(webservice client) using which you can write client/midlet to call the webservices.