On 07/09/2012 03:22 AM, Andrei Shakirin wrote:
Hi,

Just two short questions regarding CXf streaming & spring/blueprint 
configuration on client side:


1)      Is using Dispatch<Source> only the way to achieve streaming on the 
client side? I would like to avoid DOM model on the client side.

No, search for doubleItWorksForPrimeNumbers() on this page: http://www.jroller.com/gmazza/entry/junit_web_service_testing, you can use DOM/SAX/StreamSource.


2)      Is it possible somehow to configure Dispatch using spring/blueprint?  I 
have found this Jira entry https://issues.apache.org/jira/browse/CXF-980, but 
it seems to be postponed for the future.

Using standard Spring dependency injection, you can of course convert just about any Java code to XML configuration. Apparently nobody wanted to put in the effort to create something OOTB (CXF-980 has been ignored since 2007); that might be because the amount of customizations necessary would make a generic object impractical, or Apache Camel already provides those bells and whistles, you might wish to look at Camel's CXF component for more ideas, this blog entry is rather out of date: http://www.jroller.com/gmazza/entry/camel_jms_and_soap but can also give you a general idea of functionality available with Camel.

HTH,
Glen


In my use case, clients send a large untyped XML messages, so I would like to 
use stream-oriented clients. From other side, clients use a lot of features and 
interceptors easily configured via spring/blueprint (sure, it is also possible 
to do it programmatically, but not so easy and obvious).
Could anybody suggest an elegant solution for this situation?

Regards,
Andrei.



--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to