2008/10/15 Lukasz L. <[EMAIL PROTECTED]>: > > Consider such case: > I want to make a call to a web service using SOAP > I have ready XML request that the web service expects so I want to send it > using CXF on client side. > Is it possible?
Yep, you can use javax.xml.ws.Dispatch to send raw XML as a SOAP message. Have a look at Glen Mazza's post about testing web services here: http://www.jroller.com/gmazza/date/20080904 and look for Dispatch<SOAPMessage> and Dispatch<Source> in code listing 2. The Dispatch<SOAPMessage> example shows you how to send an entire message (read from a local XML file in this case). The Dispatch<Source> example is similar but just sends the payload -- the SOAP envelope is still generated for you. Is this the sort of thing you mean? Andrew.
