WebService: Firefox can't establish a connection to the server at 192.168.10.203:8080

Posted by hp1 on Stack Overflow See other posts from Stack Overflow or by hp1
Published on 2010-05-26T21:18:41Z Indexed on 2010/05/26 21:21 UTC
Read the original article Hit count: 298

Filed under:
|

Hi,

I am trying to create a WebService. I am not able to access the URL. If I try to connect to

http://192.168.10.203:8080/EchoBeanService/EchoBean?wsdl

I get an error:

Firefox can't establish a connection to the server at 192.168.10.203:8080

However, if I am able to connect to the using localhost in the URL:

http://localhost:8080/EchoBeanService/EchoBean?wsdl 

Echo.java

package services;

public interface Echo {
    public String printEcho();
    public String printEchoParam(String str);

}

EchoBean.java package model;

import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import services.Echo;

@Stateless
@WebService
public class EchoBean implements Echo {
public EchoBean(){}
@WebMethod
    public String printEcho(){
        return "WebServices Echo ";
    }
@WebMethod
    public String printEchoParam(String str){
        return ("In PrintEcho( String " + str +" )" );
    }
}

-H

© Stack Overflow or respective owner

Related posts about java

Related posts about web-services