This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send a SOAP message to a REST service?  RSS feed

 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to a REST service using Restlet.
The service uses SOAP messages defined by a WSDL as the requests and responses.
I have used JAXB to create classes based on the WSDL.
What I cannot work out how get at the SOAP XML string.

My sample code is below, I can connect to the service as I successfully receive a challenge (which I need to write a custom authentication helper for...)

Maybe JAXB is not the right thing to be using?
Would something other than Restlet be better? I was using it as it seemed to allow me to define my own code to handle the authentication challenge.
 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Turns out to be pretty simple
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!