Hi,
I think at this stage when this method get invoked, the stream already
get consumed and xml already unmarshalled to java object.
I think you can write your own interceptor for incoming message, which
can save inputstream as re-readable inputstream, so that you can read
the stream again later on, pretty much same as what
LoggingInInterceptor do. Or just enable LoggingInInterceptor directly.
Freeman
On 2010-12-8, at 下午6:19, Podiki Stifado wrote:
Hi,
I'm still looking for a way to get access to the dom object or the
character
stream of a pojo web service generated from a wsdl.
A method in my web service looks like this:
public DefaultResponse registerCustomer(@WebParam(partName =
"parameters",
name = "registerCustomerRequest", targetNamespace = "http://bla.com/")
RegisterCustomerRequest parameters) {
// access the xml nodes through character stream of dom object
}
Inside this method I would like to access the xml that was sent to
the web
service. Anybody have any idea how to do this?
I tried with stuff like this: Message currentMessage =
PhaseInterceptorChain.getCurrentMessage();
But I haven't been able to extract the information I want from the
message.
Help would be appreciated.
Regards,
Podiki
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org