Kasimir,
127.0.0.1 and 'localhost' are only used to reference the local machine;
they cannot be used to reference another machine. To reference
another machine, you MUST use either the ip address or the hostname of
the target machine as you have discovered. There is really nothing to
explain here except that 127.0.0.1 and 'localhost' always reference the
local machine.
Daniel Kasmeroglu wrote:
> I've managed the problem by myself but I still don't understand why it's
> a problem. If I'm using the IP of the hosting machine in the local
> network it works fine (127.0.0.1 and 'localhost' aren't working). Would
> be nice if someone could give me an explanation for this behaviour.
>
> Ciao
> Kasimir
>
> Daniel Kasmeroglu schrieb:
>> 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
>>
>
> ---------------------------------------------------------------------
> 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
>
--
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806