SOAP Help please

D

Dom

Hello
I want to do a SOAP client for connection in a server in Ruby on
Rails. Have got an example of code because I don't how I can do this.
Think you
I developp with Eclispe 3.2 with java 1.6
Bye
 
I

Ian Wilson

Dom said:
Hello
I want to do a SOAP client for connection in a server in Ruby on
Rails. Have got an example of code because I don't how I can do this.
Think you
I developp with Eclispe 3.2 with java 1.6
Bye

I'm not sure why you mention Ruby on Rails, I'll assume that this has to
do with the provider of the web services for which you wish to write a
client. Therefore I'll ignore the Ruby on Rails part.


Plan A
------
This only uses the classes provided with the vanilla JDK.

Use HttpURLConnection and the Xerces SAXParser

http://www-128.ibm.com/developerworks/xml/library/x-soapcl/index.html
http://www.cafeconleche.org/books/xmljava/chapters/ch03s05.html

I find the above approach simple and effective. It helps that I know
what SOAP requests and responses look like on the wire (thanks to Perl,
SOAP::Lite, Wireshark and some 3rd party web-services)


Plan B
------
This requires you download lots of stuff and learn how to use it.

Download Apache SOAP, which requires you download JavaMail which
requires you download some other stuff. I thought "why do I need
JavaMail?" and went back to plan A.

Start here - http://ws.apache.org/soap/

I find the above approach daunting. Perhaps it looks easier after you've
climbed the mountain :)
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Dom said:
I want to do a SOAP client for connection in a server in Ruby on
Rails. Have got an example of code because I don't how I can do this.

Get a web service toolkit and generate a stub from the WSDL.

Then calling the web service is just calling a method in a class.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Please help 1
Code help please 4
Arduino Code Please Help 0
Help please 8
Please help 7
Please help me!!! 3
Malicious Coding Help Please 5
SOAP 1

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top