You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Isuranga Perera <is...@gmail.com> on 2017/07/27 05:46:27 UTC
Source to SoapMessage Conversion
Hi,
I'm using DefaultSecurityTokenServiceProvider as a independent component
to generate security token. Since it returns a Source type object I'm using
[1] to convert Source into a SOAPMessage. Appreciate if you can suggest a
better method.
** I don't use cxf Transport so I have to manually create the SoapMessage
[1] https://gist.github.com/IsurangaPerera/373652c3693e1cca688863d030736dbc
Best Regards
Re: Source to SoapMessage Conversion
Posted by Isuranga Perera <is...@gmail.com>.
Thanks, I'll try that
On Thu, Jul 27, 2017 at 4:46 PM, Colm O hEigeartaigh <co...@apache.org>
wrote:
> You could use one of the CXF StaxUtils methods instead, e.g.:
>
> copy(Source source, OutputStream os)
>
> Colm.
>
> On Thu, Jul 27, 2017 at 6:46 AM, Isuranga Perera <
> isurangamperera@gmail.com> wrote:
>
>> Hi,
>>
>> I'm using DefaultSecurityTokenServiceProvider as a independent
>> component to generate security token. Since it returns a Source type object
>> I'm using [1] to convert Source into a SOAPMessage. Appreciate if you can
>> suggest a better method.
>>
>> ** I don't use cxf Transport so I have to manually create the SoapMessage
>>
>> [1] https://gist.github.com/IsurangaPerera/373652c3693e1cca68886
>> 3d030736dbc
>>
>> Best Regards
>>
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>
Re: Source to SoapMessage Conversion
Posted by Colm O hEigeartaigh <co...@apache.org>.
You could use one of the CXF StaxUtils methods instead, e.g.:
copy(Source source, OutputStream os)
Colm.
On Thu, Jul 27, 2017 at 6:46 AM, Isuranga Perera <is...@gmail.com>
wrote:
> Hi,
>
> I'm using DefaultSecurityTokenServiceProvider as a independent component
> to generate security token. Since it returns a Source type object I'm using
> [1] to convert Source into a SOAPMessage. Appreciate if you can suggest a
> better method.
>
> ** I don't use cxf Transport so I have to manually create the SoapMessage
>
> [1] https://gist.github.com/IsurangaPerera/373652c3693e1cca688863d030736d
> bc
>
> Best Regards
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com