You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Shaffin Bhanji <sh...@gmail.com> on 2011/10/12 21:29:13 UTC

Unmarshalling a webservice to full SOAP Message

Hello,

I have a webservice configured (using JBI) that takes a request and
marshalls it into java objects, what I would also like to be able to
also get the complete SOAPMessage (header and payload). Can someone
please share some thoughts/code on how to get the complete SoapMessage
in as a string()

Thanks,
Shaffin.

Re: Unmarshalling a webservice to full SOAP Message

Posted by Shaffin Bhanji <sh...@gmail.com>.
Thank you Freeman, exactly what I wanted!

On Wed, Oct 12, 2011 at 9:34 PM, Freeman Fang <fr...@gmail.com> wrote:
> Hi,
>
> As you're taking about JBI, you can use cxf bc consumer endpoint to handle
> the soap request. If you enable LoggingInInterceptor for cxf bc consumer
> endpoint, you can see the soap message payload, take a look at [1] as an
> example.
>
> [1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBCSESystemTest.java
> Freeman
> On 2011-10-13, at 上午3:29, Shaffin Bhanji wrote:
>
>> Hello,
>>
>> I have a webservice configured (using JBI) that takes a request and
>> marshalls it into java objects, what I would also like to be able to
>> also get the complete SOAPMessage (header and payload). Can someone
>> please share some thoughts/code on how to get the complete SoapMessage
>> in as a string()
>>
>> Thanks,
>> Shaffin.
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
>

Re: Unmarshalling a webservice to full SOAP Message

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

As you're taking about JBI, you can use cxf bc consumer endpoint to  
handle the soap request. If you enable LoggingInInterceptor for cxf bc  
consumer endpoint, you can see the soap message payload, take a look  
at [1] as an example.

[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/CxfBCSESystemTest.java
Freeman
On 2011-10-13, at 上午3:29, Shaffin Bhanji wrote:

> Hello,
>
> I have a webservice configured (using JBI) that takes a request and
> marshalls it into java objects, what I would also like to be able to
> also get the complete SOAPMessage (header and payload). Can someone
> please share some thoughts/code on how to get the complete SoapMessage
> in as a string()
>
> Thanks,
> Shaffin.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com