On Saturday 26 June 2010 5:45:25 am am am wrote:
> Hi,
>
> I need something similar. Is it possible to publish multiple services under
> the same url? I tried as you say
> Endpoint.publish("http://localhost/service", new Service1());
> Endpoint.publish("http://localhost/service2", new Service2());
>
> But i get an address is already bind exception (which makes sense I guess).
> But I do not want to use different tcp port in the url. Must be same port.
> How can I do that? The web service must be implemented as standalone(not in
> a container)
That should work perfectly fine, at least with CXF. Can you post the full
stack trace?
Dan
>
> Thank you.
>
>
>
>
>
>
>
> ________________________________
> From: Daniel Kulp <[email protected]>
> To: [email protected]
> Cc: William <[email protected]>
> Sent: Fri, June 25, 2010 8:04:15 PM
> Subject: Re: How to publish multiple webservice?
>
> On Thursday 24 June 2010 8:48:55 am William wrote:
> > Hello guys,
> >
> > I just want to know how to publish multiple web services? Is it
> > correct to just repeat the following codes? Any better implementation?
> >
> > JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
> > ......
> > factory.create;
>
> Generally yes. Either that or just do
>
> Endpoint.publish(....)
>
> a bunch of times.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog