You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Maciej Bednarz <be...@googlemail.com> on 2010/10/09 09:18:02 UTC
How to use CXF without HTTP but String ?
Dear user group,
I would like to read soap messages serialized in a file and process them by CXF. The execution schema should be like this:
STREAM / STRING -> CXF -> STREAM / STRING
or more general
INPUTSTREAM -> CXF -> INPUTSTREAM
Is this already supported? How can I export a service to a stream reader / writer without using any HTTP server. All SOAP requests are coming from single XML files and results should be written back to files I just need to process the pure SOAP message without any SOAP headers or attachments.
Is such a solution already existing or could someone give me a hint or reference how to achieve this?
Thank you very much,
Maciej
Re: How to use CXF without HTTP but String ?
Posted by Benson Margulies <bi...@gmail.com>.
See
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(ServletContext,
HttpServletRequest, HttpServletResponse) to see how to do this. You can do
everything it does.
--
View this message in context: http://cxf.547215.n5.nabble.com/How-to-use-CXF-without-HTTP-but-String-tp3205639p3213561.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: How to use CXF without HTTP but String ?
Posted by Peter Mihalik <pe...@gmail.com>.
wrong url, fix:
http://cxf.apache.org/docs/cxf-architecture.html#CXFArchitecture-Transports
i'ts always better to use the original up-to-date source ;)
On Wed, Oct 13, 2010 at 1:44 PM, Peter Mihalik <pe...@gmail.com> wrote:
> i think you need to implement a custom transport, take a look at:
>
>
> http://docs.huihoo.com/apache/cxf/2.0/cxf-architecture.html#CXFArchitecture-Transports
>
> and of course check the existing cxf transports...
>
> On Sat, Oct 9, 2010 at 9:18 AM, Maciej Bednarz <
> bednarz.hannover@googlemail.com> wrote:
>
>> Dear user group,
>>
>> I would like to read soap messages serialized in a file and process them
>> by CXF. The execution schema should be like this:
>>
>> STREAM / STRING -> CXF -> STREAM / STRING
>>
>> or more general
>>
>> INPUTSTREAM -> CXF -> INPUTSTREAM
>>
>> Is this already supported? How can I export a service to a stream reader /
>> writer without using any HTTP server. All SOAP requests are coming from
>> single XML files and results should be written back to files I just need to
>> process the pure SOAP message without any SOAP headers or attachments.
>>
>> Is such a solution already existing or could someone give me a hint or
>> reference how to achieve this?
>>
>> Thank you very much,
>>
>> Maciej
>>
>
>
Re: How to use CXF without HTTP but String ?
Posted by Peter Mihalik <pe...@gmail.com>.
i think you need to implement a custom transport, take a look at:
http://docs.huihoo.com/apache/cxf/2.0/cxf-architecture.html#CXFArchitecture-Transports
and of course check the existing cxf transports...
On Sat, Oct 9, 2010 at 9:18 AM, Maciej Bednarz <
bednarz.hannover@googlemail.com> wrote:
> Dear user group,
>
> I would like to read soap messages serialized in a file and process them by
> CXF. The execution schema should be like this:
>
> STREAM / STRING -> CXF -> STREAM / STRING
>
> or more general
>
> INPUTSTREAM -> CXF -> INPUTSTREAM
>
> Is this already supported? How can I export a service to a stream reader /
> writer without using any HTTP server. All SOAP requests are coming from
> single XML files and results should be written back to files I just need to
> process the pure SOAP message without any SOAP headers or attachments.
>
> Is such a solution already existing or could someone give me a hint or
> reference how to achieve this?
>
> Thank you very much,
>
> Maciej
>
Re: How to use CXF without HTTP but String ?
Posted by Benson Margulies <bi...@gmail.com>.
I'm not finding a good example for you. There are many cases of
testing databindings that work from a file of XML, but no complete
invocations of a service. For one thing, what would happen to the
reply?
It is probably possible to set up a service on the local transport and
then figure out how to invoke the business given an arbitrary StaX
reader, but I haven't had time to work out how. Maybe someone else
cares to chime in.
On Sun, Oct 10, 2010 at 3:41 PM, Maciej Bednarz
<be...@gmail.com> wrote:
>
> Yes please,
>
> this would be great. I just need an example test which uses some kind of
> messag processing without any http transport. A concrete test as example
> would help.
>
> Thank you,
>
> Maciej
> --
> View this message in context: http://cxf.547215.n5.nabble.com/How-to-use-CXF-without-HTTP-but-String-tp3205639p3206748.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
Re: How to use CXF without HTTP but String ?
Posted by Maciej Bednarz <be...@gmail.com>.
Yes please,
this would be great. I just need an example test which uses some kind of
messag processing without any http transport. A concrete test as example
would help.
Thank you,
Maciej
--
View this message in context: http://cxf.547215.n5.nabble.com/How-to-use-CXF-without-HTTP-but-String-tp3205639p3206748.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: How to use CXF without HTTP but String ?
Posted by Benson Margulies <bi...@gmail.com>.
There are many CXF test cases that do this. Have you looked around at
the test cases? I can try to find you a good individual example if you
are stumped.
On Sat, Oct 9, 2010 at 3:18 AM, Maciej Bednarz
<be...@googlemail.com> wrote:
> Dear user group,
>
> I would like to read soap messages serialized in a file and process them by CXF. The execution schema should be like this:
>
> STREAM / STRING -> CXF -> STREAM / STRING
>
> or more general
>
> INPUTSTREAM -> CXF -> INPUTSTREAM
>
> Is this already supported? How can I export a service to a stream reader / writer without using any HTTP server. All SOAP requests are coming from single XML files and results should be written back to files I just need to process the pure SOAP message without any SOAP headers or attachments.
>
> Is such a solution already existing or could someone give me a hint or reference how to achieve this?
>
> Thank you very much,
>
> Maciej
>