File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Small SOAP Client? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Small SOAP Client?" Watch "Small SOAP Client?" New topic
Author

Small SOAP Client?

Germano Rizzo
Greenhorn

Joined: Jan 10, 2008
Posts: 3
Hi,
I have a SOAP interface developed with the WS facility of the Knopflerfish OSGi container, and I have some thin clients that gathers data from it. My necessity is to keep the client as small as possible (ideally 100-200k), but using Axis 1.4 I have to include 1.7 Mb of libraries (notice that I can't use, for example, CXF because it doesn't like the WSDL format that KF produces - it's old, or something like this).

Is there a "lighter" way? A smaller library? I don't need anything too dynamic - just always the same calls to the exposed methods. Or could you give me a hint on how to write the "basic" http call, and parse the response?

Thanks for your attention, I searched the net for a long time, so I resolved to disturb you.

--Germano


Ever tried.<br />Ever failed.<br />No matter.<br />Try again.<br />Fail again.<br />Fail better.<br /> <br /> -- S. Beckett
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"germano",
Please check your private messages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Germano Rizzo
Greenhorn

Joined: Jan 10, 2008
Posts: 3
Changed. Sorry
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by germano:
Or could you give me a hint on how to write the "basic" http call, and parse the response?


This may give you some pointers:
Need Help with HTTP Request
of course you will have to replace the XML-RPC message with a SOAP message.

It may be a good idea to use TCPMon (Tutorial) to capture some valid requests and responses - to give you a template to work from and see any HTTP headers that you may need to set/process.

However Axis 1.4 includes a small saaj.jar which you may be able to use in isolation (you'll have to try it). With it you should be able to write a small SAAJ client.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Germano Rizzo
Greenhorn

Joined: Jan 10, 2008
Posts: 3
Great! Many thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Small SOAP Client?
 
Similar Threads
Web Service client with SOAP attachment
Calling a web service operation from a servlet
SOAP with attachments service & client example
handling SOAP fault in JAVA
Need to invoke SOAP msg with standalone java class