I am trying to create a WebService. I can not access the url. If I try to connect to
http:
I get an error message:
Firefox can't establish a connection to the server at 192.168.10.203:8080
However, if I can connect to using localhost in the url:
http:
Echo.java
package services;
public interface Echo {
public String printEcho();
public String printEchoParam(String str);
}
EchoBean.java batch 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
source
share