Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

My rest web service uses Soap

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it uses SOAP, it's not REST.
 
gargi tewari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Saloon Keeper
Posts: 7233
169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.


 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic