This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes what wsdl2java tool for j2me cell phone ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "what wsdl2java tool for j2me cell phone ?" Watch "what wsdl2java tool for j2me cell phone ?" New topic
Author

what wsdl2java tool for j2me cell phone ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I want to use j2me cell client to access web service. Currently, my desktop swing application is using axis wsdl2java tool to build client side to access web service. But as you know , axis is too huge for cell phone. So my questions are

1. what web service toolkit could be used for j2me cell phone ?

2. what wsdl2java tool we could have to generate client code in cell phone ?

Thanks in advance .
Sachin Patil
Ranch Hand

Joined: Nov 22, 2004
Posts: 39
You can create a java class which does the following tasks
1. Construct an HTTP SOAP Request with input parameters
2. Parse the HTTP response to get the output parameters.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
You wouldn't need to run Axis on the cell phone, just the code it generates, which you can pare down to the bare minimum. But any code a tool like this generates probably relies heavily on the JAX-RPC libraries, which may or may not be too large for memory, and may rely on Java classes not present in J2ME.

Here's an article that may help you along.


Ping & DNS - my free Android networking tools app
Sachin Patil
Ranch Hand

Joined: Nov 22, 2004
Posts: 39
Originally posted by Ulf Dittmer:
You wouldn't need to run Axis on the cell phone, just the code it generates, which you can pare down to the bare minimum. But any code a tool like this generates probably relies heavily on the JAX-RPC libraries, which may or may not be too large for memory, and may rely on Java classes not present in J2ME.


Even if you dont have to run axis, you need to have the jar in classpath,which is quite big. So Just sending a simple HTTP request would be better.
 
jQuery in Action, 2nd edition
 
subject: what wsdl2java tool for j2me cell phone ?