REST request from the service itself

2017-10-17 Thread MULLER, Anthony
Hello, I'm wondering if it's possible, from inside the RESTful service implementation, to make a RESTful call to itself? Regards, Anthony

RE: JAX-RS Interrupt StreamingOutput

2017-10-16 Thread MULLER, Anthony
ser should also be well capable of reporting the error, and thus preventing the user downloading a corrupted Zip file without having no notification something went wrong. Sergey On 16/10/17 10:41, MULLER, Anthony wrote: > Hi Sergey, > > The server throws an exception when there is

RE: JAX-RS Interrupt StreamingOutput

2017-10-16 Thread MULLER, Anthony
, How does the JAX-RS server code react when it sees some issue, does it throw some exception ? Sergey On 16/10/17 10:05, MULLER, Anthony wrote: > Hi Sergey, > > Thank you very much for your reply! > > The point here is that the client isn't a Java application, but a Web bro

RE: JAX-RS Interrupt StreamingOutput

2017-10-16 Thread MULLER, Anthony
ts 200 and then, presumably, IOException, is inconsistent, the client code reading the data directly from the input stream always has a catch for IOException, it can be thrown even if there were no errors on the server side when writing it... Sergey On 13/10/17 12:30, MULLER, Anthony wrote:

JAX-RS Interrupt StreamingOutput

2017-10-13 Thread MULLER, Anthony
Hello, I have a REST call which returns a generated ZIP output. But during generation, an issue may occurred... However, the client seems to receive a HTTP code 200 with a corrupted ZIP. Is it possible to do better? Is this case managed by HTTP protocol? By CXF? Best regards, Anthony

RE: [CXF 2.7.16] UriInfo.getAbsolutePathBuilder()

2017-09-07 Thread MULLER, Anthony
ly at customer site :-/ Best regards, Anthony -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 7 septembre 2017 13:24 To: MULLER, Anthony ; users@cxf.apache.org Subject: Re: [CXF 2.7.16] UriInfo.getAbsolutePathBuilder() Hi Anthony Good to hear from you, Th

[CXF 2.7.16] UriInfo.getAbsolutePathBuilder()

2017-09-07 Thread MULLER, Anthony
Hello, We are facing a very weird issue: in some cases (unidentified for now), getAbsolutePathBuilder() generates an URL with "null" for hostname. Like: http://null/path/... Is it a known issue? Has it been fixed into more recent releases? Thank you and best regards, Anthony

RE: CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2016-09-30 Thread MULLER, Anthony
API but the JAX-RS methods will def not be called. If you do decide to continue with the CXF WebSocket transport then please do check what Atmosphere logs when it can not handle an Upgrade request and let me know Thanks, Sergey On 29/09/16 20:40, MULLER, Anthony wrote: > Hi Sergey, Aki, >

RE: CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2016-09-29 Thread MULLER, Anthony
almost works in both Tomcat version (7 and 8), except that all websocket requests are routed to the method having @OnMessage annotation :) It seems it needs some configurations again :) Hope this will help. Best regards, Anthony -Original Message- From: MULLER, Anthony [mailto:anthony.m

RE: CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2016-09-29 Thread MULLER, Anthony
or me. Can you confirm please this demo also works for you ? Thanks, Sergey On 29/09/16 08:47, MULLER, Anthony wrote: > Hi Sergey, > > I made the recommended changes (upgrade Atmosphere and disable the async > feature of CXFServlet), I got this error when trying to connect. > &g

RE: CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2016-09-29 Thread MULLER, Anthony
r now lets try to isolate where the problem is) Sergey On 28/09/16 16:26, MULLER, Anthony wrote: > Hello CXF Experts, Sergey, Aki, > > I have some issues to implement a simple test using WebSocket with CXF 3.1.7, > in a Tomcat 8 Servlet container. > > To make troubleshooting e

CXF 3.1 + Tomcat 8 + JAR-RS + Atmosphere + WebSocket

2016-09-28 Thread MULLER, Anthony
Hello CXF Experts, Sergey, Aki, I have some issues to implement a simple test using WebSocket with CXF 3.1.7, in a Tomcat 8 Servlet container. To make troubleshooting easier, I shared my demo project (based on the official CXF samples written by Aki): https://github.com/AnthonyMullerPlayground/

RE: [JAXRS] A request GET with a body is dispatched on a @POST annotated method

2013-10-30 Thread MULLER, Anthony
You're right Sergey, thanks again :) -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: mercredi 30 octobre 2013 13:20 To: MULLER, Anthony Cc: users@cxf.apache.org Subject: Re: [JAXRS] A request GET with a body is dispatched on a @POST annotated method M

RE: [JAXRS] A request GET with a body is dispatched on a @POST annotated method

2013-10-30 Thread MULLER, Anthony
ergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: mercredi 30 octobre 2013 13:08 To: users@cxf.apache.org Cc: MULLER, Anthony Subject: Re: [JAXRS] A request GET with a body is dispatched on a @POST annotated method Hi Anthony On 30/10/13 12:00, MULLER, Anthony wrote: > Hello Sergey, > >

[JAXRS] A request GET with a body is dispatched on a @POST annotated method

2013-10-30 Thread MULLER, Anthony
Hello Sergey, When I perform a GET request with a body, CXF is invoking a method annotated with POST instead of throwing an exception (Method not allowed)... Is it a known problem? A "normal" behavior ? Thanks and regards, Anthony

RE: How to use "_ctype" in a RESTful webservice

2013-04-09 Thread Muller, Anthony
Thanks Sergey, I will try this. Regards, Anthony -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: mardi 9 avril 2013 14:39 To: users@cxf.apache.org Subject: Re: How to use "_ctype" in a RESTful webservice Hi Anthony On 09/04/13 12:29, Muller, Ant

How to use "_ctype" in a RESTful webservice

2013-04-09 Thread Muller, Anthony
Hello, I have an RESTful webservice based on CXF. Some calls have a specific content type, like application/pdf. To support some clients which cannot modify http header, I wish to use the "_ctype" query parameter to provide the requested content type... But it seems to not work... (cxf 2.3.8)

RE: [JAX-RS] StreamingOutput implementation - must I close the outputstream?

2012-10-23 Thread Muller, Anthony
Perfect, thanks Sergey :) -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: lundi 22 octobre 2012 16:35 To: users@cxf.apache.org Subject: Re: [JAX-RS] StreamingOutput implementation - must I close the outputstream? Hi On 22/10/12 14:39, Muller, Anthony wrote

[JAX-RS] StreamingOutput implementation - must I close the outputstream?

2012-10-22 Thread Muller, Anthony
Hello, When implementing a StreamingOutput, must I close the outputstream at the end of the write(OutputStream) method? Thanks and regards, Anthony

RE: JAX-RS - ZIP compression ?

2012-10-05 Thread Muller, Anthony
inal Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 20 septembre 2012 13:40 To: Muller, Anthony Cc: users@cxf.apache.org Subject: Re: JAX-RS - ZIP compression ? Hi On 20/09/12 12:23, Muller, Anthony wrote: > -> If GZIP is acceptab

RE: JAX-RS - ZIP compression ?

2012-09-20 Thread Muller, Anthony
add a "application/x-gzip" MIME type on JAX-RS methods? Regards, Anthony -Original Message----- From: Muller, Anthony [mailto:anthony.mul...@sap.com] Sent: jeudi 20 septembre 2012 13:09 To: Sergey Beryozkin; users@cxf.apache.org Subject: RE: JAX-RS - ZIP compression ? Thanks Sergey, I w

JAX-RS, JAXB and streaming

2012-09-20 Thread Muller, Anthony
Hello Sergey, When JAXB is used for data binding, is there a way to stream the output instead of waiting to build the whole object structure to return? This will be very useful when we have large object tree to build! Thanks, Anthony

RE: JAX-RS - ZIP compression ?

2012-09-20 Thread Muller, Anthony
: mardi 18 septembre 2012 22:57 To: users@cxf.apache.org Cc: Muller, Anthony Subject: Re: JAX-RS - ZIP compression ? Hi Anthony On 18/09/12 21:36, Muller, Anthony wrote: > Hello Sergey, > > Is there an (easy) way to accept/activate ZIP compression of REST responses? > If GZIP is accepta

JAX-RS - ZIP compression ?

2012-09-18 Thread Muller, Anthony
Hello Sergey, Is there an (easy) way to accept/activate ZIP compression of REST responses? Thanks, Anthony

Re: JAX-RS services - Interceptor

2012-07-09 Thread Muller, Anthony
e: >> Hi Anthony >> On 05/07/12 21:53, Muller, Anthony wrote: >>> Thanks for all these informations Sergey, your help is very appreciated! >>> >> >> No problems :-), please see some comments below >> >>> Anthony >>> >>>

Re: JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
Thanks for all these informations Sergey, your help is very appreciated! Anthony Envoyé de mon iPad Le 5 juil. 2012 à 17:37, "Sergey Beryozkin" a écrit : > Hi Anthony > > Sorry for a delay > On 05/07/12 15:50, Muller, Anthony wrote: >> Sergey, >> >&

RE: JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
Sergey, More particularly, could you confirm handleRequest ans handleResponse will still be called before and after any REST calls? I don't like to have a lock never removed! :) Anthony -Original Message- From: Muller, Anthony Sent: jeudi 5 juillet 2012 16:23 To: 'Sergey

RE: JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
ryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 5 juillet 2012 14:17 To: Muller, Anthony Cc: users@cxf.apache.org Subject: Re: JAX-RS services - Interceptor Hi Anthony On 05/07/12 12:50, Muller, Anthony wrote: > Thx Sergey, that seems fine! > > I'm trying using UriInfo injection

RE: JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
Beryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 5 juillet 2012 14:17 To: Muller, Anthony Cc: users@cxf.apache.org Subject: Re: JAX-RS services - Interceptor Hi Anthony On 05/07/12 12:50, Muller, Anthony wrote: > Thx Sergey, that seems fine! > > I'm trying using UriInfo injection

RE: JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
} return null; } -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 5 juillet 2012 12:49 To: users@cxf.apache.org Cc: Muller, Anthony Subject: Re: JAX-RS services - Interceptor Hi Anthony On 05/07/12 11:17, Muller, Anthony wrot

JAX-RS services - Interceptor

2012-07-05 Thread Muller, Anthony
Hello, I have a use case when I need to intercept some REST calls to lock a used resource (underlying code doesn't support concurrent access). I wish to use an CXF interceptor to implement the lock mechanism (something else can help ?) Example of concurrent calls: Client 1 : [POST] /books/1234/

RE: Weblogic 10.3 - Impossible to deploy

2012-05-10 Thread Muller, Anthony
The second suggestion works fine! (I didn't try the first one) Thanks, Anthony -Original Message- From: Muller, Anthony [mailto:anthony.mul...@sap.com] Sent: jeudi 10 mai 2012 22:34 To: Daniel Kulp; users@cxf.apache.org Subject: RE: Weblogic 10.3 - Impossible to deploy Thanks very

RE: Weblogic 10.3 - Impossible to deploy

2012-05-10 Thread Muller, Anthony
Thanks very much Daniel, I will look at these suggestions. Regards, Anthony -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: jeudi 10 mai 2012 22:28 To: users@cxf.apache.org Cc: Muller, Anthony Subject: Re: Weblogic 10.3 - Impossible to deploy On Thursday, May 10

Weblogic 10.3 - Impossible to deploy

2012-05-10 Thread Muller, Anthony
Hello, I'm trying to deploy a SOAP webservice into a Weblogic 10.x server and I encountered many problems :( In my WAR, I added a weblogic-application.xml file in order to ask to weblogic to use classes coming from my webapp first. The last exception I get is the one bellow, but I don't see ho

RE: [JAX-RS] CXF - Atom support - samples?

2012-04-25 Thread Muller, Anthony
/04/12 15:30, Muller, Anthony wrote: > Hello, > > I'm trying to evaluate what it can be done using CXF + Atom but it is quite > difficult to find information about this topic... > > Do you have sample somewhere? We have some documentation here: http://cxf.apache.org/docs/ja

[JAX-RS] CXF - Atom support - samples?

2012-04-24 Thread Muller, Anthony
Hello, I'm trying to evaluate what it can be done using CXF + Atom but it is quite difficult to find information about this topic... Do you have sample somewhere? I'm starting to write a atom provider... Is it the good way to proceed? Moreover, it is some documentation about OData support in C

RE: CXF and optional entity parameters

2012-04-18 Thread Muller, Anthony
user-agent=[Java/1.6.0_25],... Anthony -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: jeudi 29 mars 2012 17:23 To: users@cxf.apache.org Subject: Re: CXF and optional entity parameters Hi Anthony On 29/03/12 15:27, Muller, Anthony wrote: > Thanks Sergey

How to configure XSD validation (without spring)?

2012-04-18 Thread Muller, Anthony
Hello, Do you have an example to configure XSD validation (only incoming payloads) without Spring? Thanks! Anthony

RE: CXF and optional entity parameters

2012-03-29 Thread Muller, Anthony
(getContext().getHttpServletRequest().getContentLength() <= 0) { return null; } return super.readFrom(type, genericType, anns, mt, headers, is); } } -Original Message- From: Muller, Anthony [mailto:anthony.mul...@sap.com] S

RE: CXF and optional entity parameters

2012-03-29 Thread Muller, Anthony
com] Sent: mardi 27 mars 2012 17:11 To: users@cxf.apache.org Subject: Re: CXF and optional entity parameters Hi On 27/03/12 15:09, Muller, Anthony wrote: > Hello, > > I did not find the answer of this issue. > > Everything works perfectly when "entity" (a JAXB pojo) is not

CXF and optional entity parameters

2012-03-27 Thread Muller, Anthony
Hello, I did not find the answer of this issue. Everything works perfectly when "entity" (a JAXB pojo) is not null. @Path("/") public class myClass { @PUT @Path("/{p1}/something/{p2}/something/{p3}/something/{p4}") @Consumes(MediaType.APPLICATION_XML) Response updateStuff(

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-10-03 Thread Muller, Anthony
was blocked, now both xsi:type and xsi:nil will be blocked if that property is set to false Cheers, Sergey On 03/10/11 10:51, Muller, Anthony wrote: > Hello, > > I tried to remove: > > final Map namespaces = new HashMap(); > namespaces.put("http://www.w3.org/2001/XML

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-10-03 Thread Muller, Anthony
property, if set to false, can probably block that xsi:null... You may also want to experiment with Jackson which is probably is less dependent on the way JAXB operates, as opposed to Jettison Cheers, Sergey On 03/10/11 10:36, Muller, Anthony wrote: > Hey Sergey! > > I found a solution to

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-10-03 Thread Muller, Anthony
ck trace ? > I'll add a test on my own a bit later on, I have few tests where > customized JAXB and JSON providers are used (these are effectively > overriding default ones), > Will get back to you asap - may be Monday > Thanks, Sergey > > On 30/09/11 15:50, Muller, Anth

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-30 Thread Muller, Anthony
s identical and I have a test where exception mappers are registered from CXFNonSpringJaxrsServlet and Application. I'm wondering if it is an OSGI issue ? Do you have javax.ws.rs.ext imported ? On 30/09/11 11:23, Muller, Anthony wrote: > Thanks for your help Sergey. Sorry, it&

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-30 Thread Muller, Anthony
utput - java.lang.IllegalStateException: Invalid JSON namespace That looks OK. How do you register it ? From Application instance or via servlet init params ? Give me more info please Cheers, Sergey On 30/09/11 11:10, Muller, Anthony wrote: > Yes, it's what I did. Do you see something wrong?

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-30 Thread Muller, Anthony
nd that will do - Cheers, Sergey On 30/09/11 10:47, Muller, Anthony wrote: > Hi Sergey, > > Are you sure that "org.apache.cxf.jaxrs.provider.JSONProvider" doesn't have > the @Provider annotation? > > I found it in "cxf-2.3.3.jar" yet :-/ > > Anthony &

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-30 Thread Muller, Anthony
rclasses - that will need to be improved in CXF Let me know please if that works Cheers, Sergey. On 30/09/11 09:38, Muller, Anthony wrote: > Hey Sergey, > > I'm trying to follow your advice and I inherited from JSONProvider class and > just set "ignoreNamespace"

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-30 Thread Muller, Anthony
le properties on providers registered from web.xml... Cheers, Sergey On 27/09/11 10:41, Muller, Anthony wrote: > Hello, > > I have an issue when I try to get a JSON output, using a JAXB object, of my > REST webservice. (XML output is ok.) > > My webservice is running without

RE: CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-27 Thread Muller, Anthony
roperty as needed on the superclass. And register it with the servlet using a jaxrs.providers parameter. Another option is try registering Jackson. I should probably do some enhancement for users be able to set simple properties on providers registered from web.xml... Cheers, Sergey On 27/09/

CXF 2.3.3 - JSON output - java.lang.IllegalStateException: Invalid JSON namespace

2011-09-27 Thread Muller, Anthony
Hello, I have an issue when I try to get a JSON output, using a JAXB object, of my REST webservice. (XML output is ok.) My webservice is running without using Spring. Can you help me? I don't know how to fix it despite browsing many websites from Google. Cheers, Anthony The exception is: ja

CXF JAXRS OSGI

2011-06-17 Thread Muller, Anthony
Hello, I put CXF 2.3.3 in an osgi bundle and I'm trying to use it from other "webapp" bundles. I'm using JAXRS to expose a REST webservice. It is configured thanks to CXFNonSpringJaxrsServlet. I define "jaxrs.serviceClasses" servlet param in the web.xml. My problem: at startup, CXF tries to l

RE: CXFNonSpringJaxrsServlet and JAX-RS questions

2011-06-10 Thread Muller, Anthony
Ok, I think I understand! Thanks Sergey, Anthony -Original Message- From: Sergey Beryozkin [mailto:sberyoz...@gmail.com] Sent: vendredi 10 juin 2011 17:02 To: users@cxf.apache.org Subject: Re: CXFNonSpringJaxrsServlet and JAX-RS questions Hi On Fri, Jun 10, 2011 at 2:45 PM, Muller

CXFNonSpringJaxrsServlet and JAX-RS questions

2011-06-10 Thread Muller, Anthony
Hello, I have quite basic questions about JAX-RS support in CXF (2.3.3) : - If you look at servlet code and web.xml descriptor bellow, is it the good way to expose a REST ws (without using spring) - How to remove "sf.setAddress("http://localhost:8080/";)" ? => I don't know what will be the port

RE: CXF 2.3.x and WS-SecureConversation protocol

2011-03-11 Thread Muller, Anthony
lto:d...@sosnoski.com] Sent: vendredi 11 mars 2011 12:07 To: users@cxf.apache.org Cc: Muller, Anthony Subject: Re: CXF 2.3.x and WS-SecureConversation protocol Hi Anthony, You can try out my CXF samples from the articles http://www.ibm.com/developerworks/java/library/j-jws15/index.html and http://www.ib

CXF 2.3.x and WS-SecureConversation protocol

2011-03-11 Thread Muller, Anthony
Hello, I'm looking for a way to secure exchanges between an applet (based on Java 6 without any CXF jars) and a SOAP webservice based on CXF. I read about WS-SecureConversation on the CXF website but it's not enough in my case: http://cxf.apache.org/docs/ws-secureconversation.html Please, coul