Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

SOAP Help please

Thread view: 
Dom - 14 Mar 2007 13:30 GMT
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
Ian Wilson - 14 Mar 2007 16:49 GMT
> 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 :-)
Arne Vajhøj - 15 Mar 2007 00:36 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.