Upgrade to 2.3.1 causes webapp startup problems

2010-12-15 Thread Ronald Pieterse
Hi, I had my webapp running using Spring 3 with CXF 2.2.8 and decided to upgrade to CXF 2.3.1. Now the webapp doesn't startup correct anymore. It gives the following exception: Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'campaignM

Disabling default CDATA wrapping behaviour

2010-11-01 Thread Ronald Pieterse
In the xml response, when sending data that would make an invalid xml, that data is wrapped in CDATA. Is it possible to disable this default wrapping? I would like to handle that with some custom adapters. The problem I have now is that I would like to wrap some data always in CDATA, even though i

JAXB handling of empty values

2010-07-06 Thread Ronald Pieterse
In my SOAP request I have a Calendar value that is not required: Are these 2 cases differently handled? Is it correct that the first one is an empty string "" and the second one is null? Can this be configured in some way? -- View this message in context: http://cxf.547215.n5.nabble.com/JAX

Re: Response object is null

2010-06-18 Thread Ronald Pieterse
Ah yes, simple but effective. Thanks for all your help the past week. Greetz, Ronald dkulp wrote: > > On Friday 18 June 2010 5:24:01 am Ronald Pieterse wrote: >> Hi Dan, >> >> I got it working! It turned out to be as simple as giving all the >> webresults the

Re: Response object is null

2010-06-18 Thread Ronald Pieterse
Hi Dan, I got it working! It turned out to be as simple as giving all the webresults the same name ('response') and in case of an exception I wrap the response with an extra wrapper class also called 'response'. Now all the messages arrive in the same format at the client - whether they originat

Re: Response object is null

2010-06-13 Thread Ronald Pieterse
Hi Dan, That helped me a lot, thanks! I have a custom response object so the path from fault chain to normal chain is working like a charm. There is only one issue left that showed up with the fix ;-) The call I do is getByContactDatabaseId which, if correct should return the following xml: htt

Re: Response object is null

2010-06-12 Thread Ronald Pieterse
Hi Dan, The first part of your reply was pretty straightforward. I created my own version of OutgoingChainInterceptor and at the end of handleMessage I did: message.getInterceptorChain().pause(); This stops the current chain, right? Now I still created my new response, put that inside t

Re: Replace Fault with custom response

2010-06-11 Thread Ronald Pieterse
nabble.com/Response-object-is-null-td28859579.html Thanx so far. Ronald Ronald Pieterse wrote: > > In the mean time I've been playing with an interceptor trying to do the > thing I want and I succeeded in removing the Exception from the response. > Now I also tried to put some ne

Response object is null

2010-06-11 Thread Ronald Pieterse
Hi people. I have a problem I need to tackle pretty soon so I hope someone can give some pointers here. My client would like to see normal responses, even when exceptions have occurred. I'm trying to change the thrown exceptions into custom response objects which are not extending Fault. So actu

Re: Replace Fault with custom response

2010-06-08 Thread Ronald Pieterse
In the mean time I've been playing with an interceptor trying to do the thing I want and I succeeded in removing the Exception from the response. Now I also tried to put some new content (a string) in the message but that does not go well. When I debug I see that the Exception resided in the 'defa

Re: Replace Fault with custom response

2010-06-06 Thread Ronald Pieterse
ker child element that would be an instance of your invoker. > Something like: > > > > > > > Dan > > > On Wednesday 02 June 2010 3:30:03 am Ronald Pieterse wrote: >> Hi, >> >> I would like to replace all Faults with my own resp

Re: Replace Fault with custom response

2010-06-06 Thread Ronald Pieterse
like: > > > > > > > Dan > > > On Wednesday 02 June 2010 3:30:03 am Ronald Pieterse wrote: >> Hi, >> >> I would like to replace all Faults with my own response object to keep >> the >> Faults from my clients. So I mean not wrap them

Replace Fault with custom response

2010-06-02 Thread Ronald Pieterse
Hi, I would like to replace all Faults with my own response object to keep the Faults from my clients. So I mean not wrap them into another object but really replace the Fault object with my own Response. What would be the best way to do this? I read something about extending the JAXWSMethodInvok

Replacing Fault with a custom response object possible?

2010-05-27 Thread Ronald Pieterse
Hello. I am wondering the following: I know that it is possible to use a custom class extending JAXWSMethodInvoker to manipulate the returned Fault object, by overriding the createFault() method. Is it also possible to completely change the response object? I would like to replace the Fault wit

Re: Really Streaming objects to the service client

2009-10-29 Thread Ronald Pieterse
Hi Daniel, well, if that is the case than that's useless for me. It's a really big response so we probably need to work with an attachment. The idea of using an attachment and getting the objects through the inputstream lazily would be better in this case. I didn't get it working though. Btw, I s

Re: Really Streaming objects to the service client

2009-10-26 Thread Ronald Pieterse
InputStream that pulled objects > from your ResultSetExtractor and put that into the DataHandler, so the > data > would never be sitting all in one place. > > On Sun, Oct 25, 2009 at 7:33 PM, Ronald Pieterse > wrote: > >> >> I'm all SOAPy and of course you'

Re: Really Streaming objects to the service client

2009-10-25 Thread Ronald Pieterse
; > This all assumes that you are responsible for data format management; none > of the data bindings that I am familiar with can handle any concept of > incrementally unmarshalling objects and handing them to you. > > People have whole object caching systems for this sort of thing

Streaming list of objects to the client

2009-10-25 Thread Ronald Pieterse
Hi, I have a question about streaming with CXF. I'm already using Attachments which works fine but now I need something even more powerful. I have a huge amount of objects that i retrieve from the database in a 'streaming' fashion (using Spring's ResultSetExtractor) and now I want to stream them

Re: How to make paramters on WebMethod required

2009-01-12 Thread Ronald Pieterse
I have been thinking about this for some time now as well until I came across this issue :-) Is there already a solution like you described in CXF or is a wrapper class still necessary at this moment? Thnx. Ronald dkulp wrote: > > > In all honesty, the ONLY way to do this with JAX-WS is to wr

Re: Different object types in list

2008-12-03 Thread Ronald Pieterse
:20 am Ronald Pieterse wrote: >> In my webservice I would like to be able to accept a list of different >> types of objects. So the client would send a list of different objects >> and >> the server would then be able to see which object is which. >> I understand that JAXB

Re: Different object types in list

2008-12-02 Thread Ronald Pieterse
, ObjectTwo.class })) If I use List<Object> I also get an exception: java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl Ronald dkulp wrote: > > On Monday 01 December 2008 4:26:20 am Ronald Pieterse wrote: >> In my webservice I would like to be able to accept a list of dif

Re: Different object types in list

2008-12-01 Thread Ronald Pieterse
It's a JAX-WS (SOAP) service. Sergey Beryozkin-3 wrote: > > Is it a JAXWS or JAXRS service you're referring to ? > > Cheers, Sergey > >> >> Hello. >> >> In my webservice I would like to be able to accept a list of different >> types >> of objects. So the client would send a list of differen

Different object types in list

2008-12-01 Thread Ronald Pieterse
Hello. In my webservice I would like to be able to accept a list of different types of objects. So the client would send a list of different objects and the server would then be able to see which object is which. I understand that JAXB does not handle interfaces. Is there maybe another way to ge

Re: How to handle a large response object or attachment with CXF?

2008-10-11 Thread Ronald Pieterse
reference with the request, then waits. > Quite a bit more work and essentially does what the case 1 above does. > > Dan > > > On Thursday 09 October 2008 10:27:42 am Ronald Pieterse wrote: >> Hello. >> >> In my service doing some time consuming stuff (rea

How to handle a large response object or attachment with CXF?

2008-10-09 Thread Ronald Pieterse
Hello. In my service doing some time consuming stuff (reading email and handling them) thus the connection is timing-out before I can start sending the response. What way would I need to walk to keep the connection open? Is there any way CXF can help in this? Thnx, Ronald -- View this message i

Re: Problem client code MTOM enabled service (CXF 2.1.1)

2008-08-13 Thread Ronald Pieterse
Glen Mazza wrote: > > > Ronald Pieterse wrote: >> >> However this uses classes from the server since I have no client code >> generated here. You don't want to have your clients do this, right? >> > > You can split out the JAX-WS artifacts into

Problem client code MTOM enabled service (CXF 2.1.1)

2008-08-13 Thread Ronald Pieterse
I have a couple of questions and hope that someone will be able to answer them fairly quickly. I'm in a bit of a rush here... I have an MTOM enabled service (CXF 2.1.1) and want to use my client code to receive attachments. The service is implemented correctly I think, since the following code wo

Re: upgrade from 2.0.5 to 2.0.8 :: throws exception

2008-08-08 Thread Ronald Pieterse
> > Dan > > > > On Sunday 03 August 2008 9:58:26 am Ronald Pieterse wrote: >> Thanx for the response, Dan. >> > ... > -- View this message in context: http://www.nabble.com/upgrade-from-2.0.5-to-2.0.8-%3A%3A-%3Cjaxws%3AoutInterceptors%3E-throws-exception-tp18769193p18890677.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: upgrade from 2.0.5 to 2.0.8 :: throws exception

2008-08-04 Thread Ronald Pieterse
Glen Mazza wrote: > > > Ronald Pieterse wrote: >> >> UnsupportedOperationException from the I am >> using. >> If I take the outInterceptors and outFaultInterceptors stuff out it works >> fine. >> Is there something I should have done or changed?

Re: upgrade from 2.0.5 to 2.0.8 :: throws exception

2008-08-03 Thread Ronald Pieterse
n > > > On Aug 1, 2008, at 2:59 AM, Ronald Pieterse wrote: > >> >> Hello. >> >> Until this morning I was using CXF version 2.0.5-incubator for my >> services >> (yes I know, I should check for upgrades more often ;-) and decided >> I wante

upgrade from 2.0.5 to 2.0.8 :: throws exception

2008-07-31 Thread Ronald Pieterse
Hello. Until this morning I was using CXF version 2.0.5-incubator for my services (yes I know, I should check for upgrades more often ;-) and decided I wanted to upgrade to 2.0.8. btw, I'm using it with spring 2.5.5. It all went smooth - no changes needed at all - until I made a service call. The