users@jax-ws.java.net

Re: Endpoint.publish() on another computer

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Wed, 17 Jan 2007 12:01:44 -0800

Daniel Kasmeroglu wrote:
> Jitendra Kotamraju schrieb:
>> What is String argument to Endpoint.publish() ? Can you access the
>> WSDL from any browser (WSDL can be accessed using address?wsdl) ? Try
>> from the hosted machine and client machine.
>>
> It works perfectly if client and service is running on the same
> machine. So I can access the WSDL, the XSD and the services on the
> host. But if the client is on another computer I neither can access
> the WSDL, nor the XSD. This is the startcode. The implementation is
> quite as simple as within the numerous examples, so I've got no idea
> what's wrong in here.
>
> public static final void main( String[] args ) {
> Endpoint endpoint = Endpoint.publish( "http://localhost:8080/",
> new ServiceImpl() );
Did you try with Endpoint.publish("http://hostname:8080/", new
ServiceImpl()) or Endpoint.publish("http://ipaddress:8080/", new
ServiceImpl()). My guess there is some networking issue on that machine.

Jitu
> System.out.println( "Started the service..." );
> }
>
> Ciao
> Kasimir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>