File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Consuming SOAP Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Consuming SOAP Web Service" Watch "Consuming SOAP Web Service" New topic

Consuming SOAP Web Service

Jotnarta Jot

Joined: May 18, 2006
Posts: 24
Hi All

I want to develop a web service that consumes a SOAP web service, that accepts a SOAP message and response with a SOAP message. Any help please?

Tim Moores

Joined: Sep 21, 2011
Posts: 2413
Have you checked out Java SOAP implementations like Metro and Axis-2? Those come with extensive documentation.
Jotnarta Jot

Joined: May 18, 2006
Posts: 24
Thank you Tim for your reply, I am new to web service development, and using Eclipse IDE with J2EE, I built a simple web service and I want to consume it from another web service using SOAP.

Above is my web service, the web service executes and run fine, I want to create another web service to consume the above web service, by sending SOAP message. If you have a simple example it will be great and helpful, thank you for time.
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 471
Use Help from Eclispe IDE: It has a section JAX-WS Tools User Guide

It used Apache CXF implementation. It's OK to get started. Once you know how to use the IDE and the steps involved for
creating and consuming a soap web service, you can change to any JAX-WS implementation like Metro or etc..
It's a matter of seting up.

Java Savvy

Joined: Nov 25, 2011
Posts: 2

You need to start with some basic examples where frameworks like AXIS or CXF with eclipse/Netbeans IDE will help you understand the classes involved.SOAP is used a s a protocol in Web Services where WSDL is exposed for access to internal methods.A result SOAP message with data is sent back.
I agree. Here's the link:
subject: Consuming SOAP Web Service
jQuery in Action, 3rd edition