• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How to effectively test Spring Web Services (that don't use SOAP)

 
Bartender
Posts: 1938
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a suite of Spring Web Services we need to test, but it appears that using Spring's WebServiceTemplate testing framework won't work for us because our Spring Web Services don't have any SOAP envelopes.

Instead, we dynamically, via Reflection, figure out what method to call based on the outer element in the XML.

I haven't seen any way to keep WebServiceTemplate from sending the SOAP envelope.

This is what WebServiceTemplate sends:



This is what we want to send:



Because our web service does not use SOAP, SOAP UI is similarly not working. No WSDL "operation" tags, for example.

----

So, my questions are these:

1. Is there a way to use WebServiceTemplate, but have it ONLY send the Raw XML Request (but no soap surrounding tags like shown above)?

Using WebServiceTemplate with a non-SOAP Spring WS Web Service results in this error:

org.springframework.ws.client.WebServiceTransportException: Not Found [404]

-----------

2. What testing frameworks would be best for testing XML-only Spring Web Services (especially if WebServiceTemplate won't work)?

I was hoping WebServiceTemplate would work, but I'm not sure now.

---------

Look forward to any advice or suggestions.

Thanks. mike
 
reply
    Bookmark Topic Watch Topic
  • New Topic