File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Jersey Bundle to call a SOAP based WS

 
Vivek K Singh
Ranch Hand
Posts: 85
Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Bhagat Singh Rawat
Ranch Hand
Posts: 93
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic