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