Personally I would say there's little point unmarshalling it to Java
objects, only to have CXF marshal it again behind the scenes to send
down the wire!

I suppose this would give you a warning at the client end if the
payload is malformed, but you could do schema validation yourself and
not have to pay the cost of creating the JAXB objects.

Andrew.

2008/10/15 Adrian Corcoran <[EMAIL PROTECTED]>:
> do you have the payload of the body or the raw request? if you have raw
> request as Andrew is talking about then you can use Dispatch. If you have
> the pay load you could use your binding to parse it if Jaxb just create an
> instance of the context and unmarshall it. You will then have the object to
> pass as the request to your operation...
>
> On Wed, Oct 15, 2008 at 3:12 PM, Andrew Clegg <[EMAIL PROTECTED]>wrote:
>
>> 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.
>>
>

Reply via email to