Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Sergey Beryozkin
Hi Andrey On 17/05/16 16:52, Andrei Shakirin wrote: Interesting, IEFT spec said that quoted-string is used for file names containing spaces: https://tools.ietf.org/html/rfc6266#section-5 @Sergei: do you think it is client code or CXF responsibility to check that? I'd say it the responsibility

RE: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Andrei Shakirin
Interesting, IEFT spec said that quoted-string is used for file names containing spaces: https://tools.ietf.org/html/rfc6266#section-5 @Sergei: do you think it is client code or CXF responsibility to check that? Regards, Andrei. > -Original Message- > From: Christopher Gardner [mailto

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Christopher Gardner
Sergey, Thanks for the suggestion. I found the following: http://stackoverflow.com/questions/9154415/firefox-and-content-disposition-header Someone on that thread said he or she used double quotes around the file name. This now works for me. Thanks for your help. On Tue, May 17, 2016 at 10:5

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Sergey Beryozkin
Which confirms the headers are being reported properly. You might want to check if there are some known restrictions in the way Firefox treats Content-Disposition, etc Sergey On 17/05/16 15:36, Christopher Gardner wrote: For both FF and Chrome, I see the following in the trace utility. HTTP/

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Christopher Gardner
For both FF and Chrome, I see the following in the trace utility. HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Date: Tue, 17 May 2016 14:25:26 GMT Content-Disposition: attachment; filename=My_Report.xlsx Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Transfer-Encoding

Re: Sending a text file as an attachment using WS-Security policy

2016-05-17 Thread Colm O hEigeartaigh
You can just disable MTOM. Colm. On Tue, May 17, 2016 at 1:44 PM, Giriraj Bhojak wrote: > Thank you Colm. > How do I inline the attachment while still using WS-Security? Is there an > example I can look at? > > Thanks, > Giriraj > On May 16, 2016 8:12 PM, "Colm O hEigeartaigh" > wrote: > >> Hi

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Sergey Beryozkin
Hi On 17/05/16 13:50, Christopher Gardner wrote: Sergey, To answer your questions: * Can you try writing a very small payload, few bytes, and see if the browser prompts ? I tested this in Firefox, which prompted me to save the file with a default file name (not the one the web service added to

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Christopher Gardner
Sergey, To answer your questions: * Can you try writing a very small payload, few bytes, and see if the browser prompts ? I tested this in Firefox, which prompted me to save the file with a default file name (not the one the web service added to Content Disposition). However, today I tested in Ch

Re: Sending a text file as an attachment using WS-Security policy

2016-05-17 Thread Giriraj Bhojak
Thank you Colm. How do I inline the attachment while still using WS-Security? Is there an example I can look at? Thanks, Giriraj On May 16, 2016 8:12 PM, "Colm O hEigeartaigh" wrote: > Hi Giriraj, > > CXF does not yet fully support using MTOM with WS-Security. Your options > are either to disabl

Re: CXF 3.1.6 - Headers Added MessageBodyWriter Don't Appear to be Flushed Before OutputStream

2016-05-17 Thread Sergey Beryozkin
I have updated the existing test: http://git-wip-us.apache.org/repos/asf/cxf/commit/e2fb0483 and all works as expected: the two headers set in MBW are available to the client. I wonder why it does not work in your case. Can you try writing a very small payload, few bytes, and see if the brow

Re: URI template resolution issue for query params

2016-05-17 Thread Sergey Beryozkin
Np, I got it fixed, see https://issues.apache.org/jira/browse/CXF-6906 thanks for the tests, Cheers, Sergey On 17/05/16 08:46, Nicolas Lenoire wrote: Sergey, No, I don't know how Jersey behaves with the 2). Regards, - NL On 5/16/2016 18:39, Sergey Beryozkin wrote: On 16/05/16 13:11, Sergey

Pause/Stop/Restart consuming JMS messages [Soap over JMS]

2016-05-17 Thread Szrnka Péter
Hi all, Is there any way to stop/pause consuming JMS messages at runtime on a SOAP over JMS webservice? Can I configure my webservices to be not initialized/started on application server startup? I’m using XML(Spring) based configuration to set up the webservices. Currently I stop the webservi

Re: SSL error with new version

2016-05-17 Thread Colm O hEigeartaigh
Best bet is to turn on SSL debug logging on both sides + see what's going on: "-Djavax.net.debug=all". Colm. On Tue, May 17, 2016 at 9:16 AM, Marco Westermann wrote: > Hi all, > > I just updated my bundle from servicemix 4.5.2 to 6.1.1 (speak from cxf > 2.6.8 to cxf 3.4.1) After the update I ge

SSL error with new version

2016-05-17 Thread Marco Westermann
Hi all, I just updated my bundle from servicemix 4.5.2 to 6.1.1 (speak from cxf 2.6.8 to cxf 3.4.1) After the update I get an exception calling a Soap Service via SSL. Before everything was working. Below please find the code I use and the exception message. Code: public WsdleddySoapPor

Re: URI template resolution issue for query params

2016-05-17 Thread Nicolas Lenoire
Sergey, No, I don't know how Jersey behaves with the 2). Regards, - NL On 5/16/2016 18:39, Sergey Beryozkin wrote: On 16/05/16 13:11, Sergey Beryozkin wrote: Hi On 12/05/16 06:12, Sergey Beryozkin wrote: Hi On 10/05/16 15:21, Nicolas Lenoire wrote: Hello, Environment: CXF (JAXRS) 3.1.5 / J