users@jax-ws.java.net

Re: Endpoint.publish() on another computer

From: Daniel Kasmeroglu <Daniel.Kasmeroglu_at_Kasisoft.net>
Date: Wed, 17 Jan 2007 17:06:41 +0100

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() );
     System.out.println( "Started the service..." );
   }

Ciao
Kasimir