Re: Parsing errors in large XML documents

2016-09-19 Thread Sergey Beryozkin
Hi It looks like you are getting some error message in HTML, unless your XML can contain tags like and ? Also note CXF 3.0.x is the oldest active CXF line, 3.0.10 is the last release Cheers, Sergey On 19/09/16 14:35, brunobat wrote: Hi, I'm using the webclient to access a rest endpoint

Re: Include signed XML into a single CDATA

2016-09-19 Thread Sergey Beryozkin
Hi What may be happening is that you have a sequence of writeCharacters events - you may need to buffer them and flush as a single CData block upon receiving the endofelement event, something like that Cheers, Sergey On 19/09/16 15:27, xavi.dive.kite wrote: I'm consuming a web service using

Include signed XML into a single CDATA

2016-09-19 Thread xavi.dive.kite
I'm consuming a web service using CXF, the thing is that I need to send and XML inside a CDATA tag. To do it I created an interceptor public class CDATAInterceptor extends AbstractPhaseInterceptor { public CDATAInterceptor() { super(Phase.MARSHAL);

Parsing errors in large XML documents

2016-09-19 Thread brunobat
Hi, I'm using the webclient to access a rest endpoint behind a gateway that requires authentication and HTTPS. The REST endpoint uses XML content type and returns a list of entities (>1000 lines of XML). Just 1 thread is used. Everything works great if the number of entities is low, let's say 50.

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-19 Thread MRneedHelp
Hi, thanks for the answers. I think your solution would be the best, mbeards. These policies are really upsetiing me... I have solved it now with a HttpURLConnection, with which i send the request as a xml and get the response as a xml (as it is in SOAP UI). Here the policies are no problem...

Re: How to get stream from CachedStream ?

2016-09-19 Thread Vjacheslav V. Borisov
During message.getInterceptorChain().doIntercept(message); I see call to maybeDeleteTempFile() which resets inmem = true; and later csnew.getInputStream() execution leads to if (inmem) { } 2016-09-19 13:05 GMT+04:00 Vjacheslav V. Borisov : > Hi! > > I have following code (this

Re: Mime type parameter matching - or lack

2016-09-19 Thread Sergey Beryozkin
Hi As far as I know the custom parameters do not affect the selection algorithm - and the order in which they are listed is not taken into account. Indeed, the client can try to affect the selection by including a 'q' property but if it is not possible then you can add a 'qs' parameter to

Re: None of the alternatives error while invoking service having policy with empty ExactlyOne

2016-09-19 Thread Akanksha Agrawal
On Fri, Sep 16, 2016 at 7:21 AM, Daniel Kulp wrote: > > > Just because other clients can work with invalid policies does not mean CXF > should.The ExactlyOne should be removed from that policy (or an All > added as a child). > Yes I agree that CXF should not work with

How to get stream from CachedStream ?

2016-09-19 Thread Vjacheslav V. Borisov
Hi! I have following code (this is interceptror which does regular expression replacements) https://github.com/ilb/common/blob/master/common-jaxrs/src/main/java/ru/ilb/common/jaxrs/interceptors/ReplaceOutInterceptor.java private void replaceContents(Message message) { OutputStream