Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what wsdl2java tool for j2me cell phone ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sachin Patil
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic