Hmmm...can you actually use JAXBContext with rpc/encoded?  I would have
guessed "no" (and hence you would be limited to the other two Dispatch
options--either Sources or SOAPMessages), because JAX-WS is not defined
with respect to rpc/encoded web services, only rpc/lit or doc/lit.

Glen

Am Dienstag, den 30.10.2007, 03:18 -0700 schrieb tirtza:
> I see the problem-  I was passing JAXBContext.class instead of a JAXBContext
> object.
> My current problem is when using the dispatch method, if the service returns
> a bad response such as a 500 instead of a SoapFaultException being thrown I
> get an Unmarshalling Error since it could not create the response object. 
> Is there a way around this?
> 
> 
> 
> tirtza wrote:
> > 
> > I created a dispatch client since I am invoking a service that returns the
> > soap message as rpc/encoded.
> > I am using PAYLOAD mode since I want a JaxB object returned.
> > My client generates this exception
> > 
> > org.apache.cxf.interceptor.Fault: Exception occurred while marshalling
> > Dispatch object to stream
> >     at
...

Reply via email to