aspose file tools*
The moose likes Web Services and the fly likes My rest web service uses Soap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "My rest web service uses Soap" Watch "My rest web service uses Soap" New topic
Author

My rest web service uses Soap

gargi tewari
Greenhorn

Joined: Dec 09, 2011
Posts: 2
Hi

I am writing a Rest web service which internally consumes a Soap web service.

First, is it feasible? Has anyone tried this?

Thanks
gtm
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

If it uses SOAP, it's not REST.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gargi tewari
Greenhorn

Joined: Dec 09, 2011
Posts: 2
Bear Bibeault wrote:If it uses SOAP, it's not REST.


Agree. This is just a POC. And What i wanted to know was that is it feasible? I am running into some issues which I had not seen till i added the web service layer over my application
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

It's as feasible as trying to sell a red car as blue. If it's a SOAP web service, it can't be (honestly) called a REST web service.

So I'm not even sure what the "is this feasible?" is referring to? If you have a red car, sure, you can call it blue, but that's doesn't make it blue.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
You're writing a REST service which in turn accesses a SOAP service; is that correct? if so, it's most certainly still a REST service. Why wouldn't it be? And where do you see problems implementing it?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Ah...... horse of a different color! So you're writing a translation layer to create a REST API that leverages an existing SOAP service?

As Tim asked, why do you think there's a feasibility issue? Although I'd likely say that unless the existing processes are highly complicated, it'd likely be easier and cleaner to recreate the services from scratch as to perform a lot of translation code.
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 381
Language is the source of misunderstandings.


The way I try read the OP's question:

1. I'm Restful webservice provider.
2. Upon recieve the request from the client, I being now a SOAPful Client, call a SOAPful web service provider.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My rest web service uses Soap
 
Similar Threads
Check if CXF Webservice is alive
SOAP based web services still relevant in software Industry?
Web-app to web-service (Axis)
WSDL question
JEE 5 Vs JEE 6