You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by jpv <jp...@gmail.com> on 2011/03/03 11:54:20 UTC

Re: How to publish multiple webservice?

Hi Daniel 

But what about url, ip and so on  ?
.....
Endpoint.publish("http://localhost:8080/service", new Service()); 

OK, http://localhost:8080/service works fine (CXF works fine anyway !).

But suppose localhost -> 172.99.123.45 and  (via DNS)
http://myservice.mycorp/service -> http://172.99.123.45:8080

well, i can't reach http://172.99.123.45:8080/service nor
http://myservice.mycompagny/service
How do i have to deal with that ?  Maybe my question is stupid ! 




--
View this message in context: http://cxf.547215.n5.nabble.com/How-to-publish-multiple-webservice-tp566254p3407757.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: How to publish multiple webservice?

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 03 March 2011 5:54:20 AM jpv wrote:
> Hi Daniel
> 
> But what about url, ip and so on  ?
> .....
> Endpoint.publish("http://localhost:8080/service", new Service());
> 
> OK, http://localhost:8080/service works fine (CXF works fine anyway !).
> 
> But suppose localhost -> 172.99.123.45 and  (via DNS)
> http://myservice.mycorp/service -> http://172.99.123.45:8080
> 
> well, i can't reach http://172.99.123.45:8080/service nor
> http://myservice.mycompagny/service
> How do i have to deal with that ?  Maybe my question is stupid !

I think the jetty stuff by default only exposes the service on the exact host 
you specify.  Thus, if you do:

 Endpoint.publish("http://myservice.mycompagny:8080/service", new Service());

it would be only on the public port.  You can TRY:
"http://0.0.0.0:8080/service"
(I'm not sure on that)



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com