You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by moviephile <mo...@wanadoo.fr> on 2009/12/17 18:15:26 UTC

DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi,




After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
 
Question : (I know about SOAP but I'm not familiar with REST...)

How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
=> I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
 
Any help will be very appreciated,

With thanks,
 
Best regards.



Re: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Posted by Sergey Beryozkin <sb...@progress.com>.
Hi, no problems and hope it all works for you now :-)

Sergey

----- Original Message ----- 
From: "moviephile" <mo...@wanadoo.fr>
To: <us...@cxf.apache.org>
Sent: Friday, December 18, 2009 1:56 PM
Subject: RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example


Hi,

Many thanks for your quite clear and prompt response Sergey,

Best regards,

Chrsitophe.


> Message du 17/12/09 18:50
> De : "Sergey Beryozkin"
> A : users@cxf.apache.org
> Copie à :
> Objet : RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
>
>
> Sorry for the noise, it should be
>
> GET http://localhost:9090/greeter/greeter/greeting/Fred
> GET http://localhost:9091/greeter2/greeter/greeting/Fred
>
> I'll probably update for 1.2 for more readable URIs be supported
>
> Sergey
>
> -----Original Message-----
> From: Sergey Beryozkin [mailto:sberyozk@progress.com]
> Sent: 17 December 2009 17:40
> To: users@cxf.apache.org; moviephile
> Subject: RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
>
> Hi
>
> According to 
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java,
>
> one endpoint is published at http://localhost:9090/greeter and the other one (which does not depend on JAX-RS annotations) is at 
> http://localhost:9091/greeter2
>
>
> Also, the actual interface
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java
>
> is somewhat primitive in that it expects the name be embedded in the URI path component (not in the query), so if you do
>
> GET http://localhost:9090/greeter/greeting/Fred
> GET http://localhost:9091/greeter2/greeting/Fred
>
>
> Then you should get the result back.
> Additionally, you can run the greeter_rest client the same way you can do it for a greeter demo, the only diff is that the 
> greeter_rest client opens two panels, one for each endpoint
>
> Hope it helps, Sergey
>
>
>
> -----Original Message-----
> From: moviephile [mailto:moviephile@wanadoo.fr]
> Sent: 17 December 2009 17:15
> To: users@cxf.apache.org
> Subject: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
>
> Hi,
>
>
>
>
> After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
> [ACTIVE] CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
> [ACTIVE] Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
> [ACTIVE] CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
>
> Question : (I know about SOAP but I'm not familiar with REST...)
>
> How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
> => I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
>
> Any help will be very appreciated,
>
> With thanks,
>
> Best regards.
>
>
>
>


RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Posted by moviephile <mo...@wanadoo.fr>.
Hi,

Many thanks for your quite clear and prompt response Sergey,

Best regards,

Chrsitophe.


> Message du 17/12/09 18:50
> De : "Sergey Beryozkin" 
> A : users@cxf.apache.org
> Copie à : 
> Objet : RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
> 
> 
> Sorry for the noise, it should be
> 
> GET http://localhost:9090/greeter/greeter/greeting/Fred
> GET http://localhost:9091/greeter2/greeter/greeting/Fred
> 
> I'll probably update for 1.2 for more readable URIs be supported
> 
> Sergey
> 
> -----Original Message-----
> From: Sergey Beryozkin [mailto:sberyozk@progress.com] 
> Sent: 17 December 2009 17:40
> To: users@cxf.apache.org; moviephile
> Subject: RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
> 
> Hi
> 
> According to http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java,
> 
> one endpoint is published at http://localhost:9090/greeter and the other one (which does not depend on JAX-RS annotations) is at http://localhost:9091/greeter2
> 
> 
> Also, the actual interface 
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java
> 
> is somewhat primitive in that it expects the name be embedded in the URI path component (not in the query), so if you do
> 
> GET http://localhost:9090/greeter/greeting/Fred
> GET http://localhost:9091/greeter2/greeting/Fred
> 
> 
> Then you should get the result back.
> Additionally, you can run the greeter_rest client the same way you can do it for a greeter demo, the only diff is that the greeter_rest client opens two panels, one for each endpoint
> 
> Hope it helps, Sergey 
> 
> 
> 
> -----Original Message-----
> From: moviephile [mailto:moviephile@wanadoo.fr] 
> Sent: 17 December 2009 17:15
> To: users@cxf.apache.org
> Subject: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example
> 
> Hi,
> 
> 
> 
> 
> After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
> [ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
> [ACTIVE]  Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
> [ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
>  
> Question : (I know about SOAP but I'm not familiar with REST...)
> 
> How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
> => I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
>  
> Any help will be very appreciated,
> 
> With thanks,
>  
> Best regards.
> 
> 
> 
> 

RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Posted by Sergey Beryozkin <sb...@progress.com>.
Actually, you'd be better off using a released DOSGI RI 1.1, as 1.2-SNAPSHOT can be a bit unstable at the moment.
Also, as far as greeter_rest/client is concerned, it only works with a single bundle distribution at the moment

Cheers, Sergey

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozk@progress.com] 
Sent: 17 December 2009 17:40
To: users@cxf.apache.org; moviephile
Subject: RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi

According to http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java,

one endpoint is published at http://localhost:9090/greeter and the other one (which does not depend on JAX-RS annotations) is at http://localhost:9091/greeter2


Also, the actual interface 
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java

is somewhat primitive in that it expects the name be embedded in the URI path component (not in the query), so if you do

GET http://localhost:9090/greeter/greeting/Fred
GET http://localhost:9091/greeter2/greeting/Fred


Then you should get the result back.
Additionally, you can run the greeter_rest client the same way you can do it for a greeter demo, the only diff is that the greeter_rest client opens two panels, one for each endpoint

Hope it helps, Sergey   



-----Original Message-----
From: moviephile [mailto:moviephile@wanadoo.fr] 
Sent: 17 December 2009 17:15
To: users@cxf.apache.org
Subject: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi,




After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
 
Question : (I know about SOAP but I'm not familiar with REST...)

How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
=> I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
 
Any help will be very appreciated,

With thanks,
 
Best regards.



RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Posted by Sergey Beryozkin <sb...@progress.com>.
Sorry for the noise, it should be

GET http://localhost:9090/greeter/greeter/greeting/Fred
GET http://localhost:9091/greeter2/greeter/greeting/Fred

I'll probably update for 1.2 for more readable URIs be supported

Sergey

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozk@progress.com] 
Sent: 17 December 2009 17:40
To: users@cxf.apache.org; moviephile
Subject: RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi

According to http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java,

one endpoint is published at http://localhost:9090/greeter and the other one (which does not depend on JAX-RS annotations) is at http://localhost:9091/greeter2


Also, the actual interface 
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java

is somewhat primitive in that it expects the name be embedded in the URI path component (not in the query), so if you do

GET http://localhost:9090/greeter/greeting/Fred
GET http://localhost:9091/greeter2/greeting/Fred


Then you should get the result back.
Additionally, you can run the greeter_rest client the same way you can do it for a greeter demo, the only diff is that the greeter_rest client opens two panels, one for each endpoint

Hope it helps, Sergey   



-----Original Message-----
From: moviephile [mailto:moviephile@wanadoo.fr] 
Sent: 17 December 2009 17:15
To: users@cxf.apache.org
Subject: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi,




After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
 
Question : (I know about SOAP but I'm not familiar with REST...)

How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
=> I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
 
Any help will be very appreciated,

With thanks,
 
Best regards.



RE: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Posted by Sergey Beryozkin <sb...@progress.com>.
Hi

According to http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java,

one endpoint is published at http://localhost:9090/greeter and the other one (which does not depend on JAX-RS annotations) is at http://localhost:9091/greeter2


Also, the actual interface 
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java

is somewhat primitive in that it expects the name be embedded in the URI path component (not in the query), so if you do

GET http://localhost:9090/greeter/greeting/Fred
GET http://localhost:9091/greeter2/greeting/Fred


Then you should get the result back.
Additionally, you can run the greeter_rest client the same way you can do it for a greeter demo, the only diff is that the greeter_rest client opens two panels, one for each endpoint

Hope it helps, Sergey   



-----Original Message-----
From: moviephile [mailto:moviephile@wanadoo.fr] 
Sent: 17 December 2009 17:15
To: users@cxf.apache.org
Subject: DISTRIBUTED OGSi / REST : HTTP 404 on greetMe example

Hi,




After having sucessfully installed these bundles from this CXF home page : http://cxf.apache.org/distributed-osgi-reference.html
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Interface Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  Distributed OSGi Greeter Demo Service Rest Implementation Bundle (1.2.0.SNAPSHOT)
[ACTIVE]  CXF Distributed OSGi Greeter Rest Demo Client Bundle (1.2.0.SNAPSHOT)
 
Question : (I know about SOAP but I'm not familiar with REST...)

How should I invoke HTTP GET requests in order to TEST this greeter_rest service ??
=> I have tried with no success (HTTP 404) URIs like this : http://localhost:9090/greeter/greeting?name=test
 
Any help will be very appreciated,

With thanks,
 
Best regards.