Win a copy of Head First Android this week in the Android 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
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Using Jersey Bundle to call a SOAP based WS

 
Ranch Hand
Posts: 85
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We have an application where we make a lot of WS Calls (all of them are RESTFul WS). We use Jersey to make RESTFul calls.

In a new requirement we need to consume a SOAP based WS, Can we use Jersey to call the SOAP WS ? Pass the SOAP XML as a String?

thanks.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vivek K Singh wrote:
We have an application where we make a lot of WS Calls (all of them are RESTFul WS). We use Jersey to make RESTFul calls.

In a new requirement we need to consume a SOAP based WS, Can we use Jersey to call the SOAP WS ? Pass the SOAP XML as a String?



Please check at SOAP over RESTy Client
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you want to do that? Is there an actual problem using a proper SOAP stack with all its attendant benefits? If there's a proper abstraction layer on top of the WS access code then the client shouldn't care one way or the other what library is used underneath.

Note that the article linked by Bhagat shows an approach that uses SAAJ, which works on a lower level than APIs like JAX-WS. That means more code to write, and more opportunities to get things wrong.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could always fake a SOAP client if you can get the clear text of a SOAP request to this service as a template and the service is not implementing all the WS-* security bells and whistles.

Your Jersey client would POST a copy of this text with the desired values pasted into the template.

SoapUI is great for fiddling with SOAP messages.

Bill
 
You showed up just in time for the waffles! And this 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