Re: CXF loses whitespace text nodes on the client side?

2010-02-03 Thread Adam Funk
On 2010-01-25, Daniel Kulp wrote: Well, if anything, it's an issue either with the StAX parser or with JAXB, not really CXF. Would you be in a position to create a small test case using just JAXB? Basically, do something like: (pseudo code, probably not correct) JAXBContext ctx =

Re: CXF loses whitespace text nodes on the client side?

2010-02-03 Thread Sergey Beryozkin
Hi On 2010-01-26, Sergey Beryozkin wrote: As Dan said, it could be that an Element representing TextWithNodes can have the whitespaces significant for your specific case lost (not reported) by the reader. Perhaps the reader has to be instructed to report these whitespace nodes, which are

Re: CXF loses whitespace text nodes on the client side?

2010-02-03 Thread Daniel Kulp
You'll probably need to put a breakpoint in the XMLStreamReader's getCharacters or next() methods and get the stack trace at where the whitespace blocks are returned. I don't think this is in CXF at all. I think it's down in JAXB which there isn't much we can do about other than create a

Re: CXF loses whitespace text nodes on the client side?

2010-01-25 Thread Adam Funk
On 2010-01-24, Benson Margulies wrote: Is this a JAX-RS service returning XML? No, it's a SOAP service (not REST).

Re: CXF loses whitespace text nodes on the client side?

2010-01-25 Thread Benson Margulies
On Mon, Jan 25, 2010 at 5:28 AM, Adam Funk a24...@ducksburg.com wrote: On 2010-01-24, Benson Margulies wrote: Is this a JAX-RS service returning XML? No, it's a SOAP service (not REST). There's no such thing, so far as I know, as xml:preserve-whitespace, in a SOAP service. Where do you try

Re: CXF loses whitespace text nodes on the client side?

2010-01-25 Thread Daniel Kulp
Well, if anything, it's an issue either with the StAX parser or with JAXB, not really CXF. Would you be in a position to create a small test case using just JAXB? Basically, do something like: (pseudo code, probably not correct) JAXBContext ctx =

Re: CXF loses whitespace text nodes on the client side?

2010-01-24 Thread Adam Funk
On 2010-01-22, Adam Funk wrote: I'm working on a web-service client using a set of CXF-based tools developed by a colleague who knows a lot more about WSs than I do (although he couldn't explain the following problem). FWIW, we use CXF 2.1.5, although I just tried it with 2.2.5 and got the

Re: CXF loses whitespace text nodes on the client side?

2010-01-24 Thread Benson Margulies
Is this a JAX-RS service returning XML? On Sun, Jan 24, 2010 at 10:39 AM, Adam Funk a24...@ducksburg.com wrote: On 2010-01-22, Adam Funk wrote: I'm working on a web-service client using a set of CXF-based tools developed by a colleague who knows a lot more about WSs than I do (although he

CXF loses whitespace text nodes on the client side?

2010-01-22 Thread Adam Funk
I'm working on a web-service client using a set of CXF-based tools developed by a colleague who knows a lot more about WSs than I do (although he couldn't explain the following problem). The client passes a byte[] and a parameter list to a WS method, which returns a response containing an XML