Hello,
I am trying to create a webservice. But when I try to access it through a browser, I get:
Invalid wsdl request
http://localhost:8080/EchoService/EchoBean
and 'Invalid Method Type' on the browser tab
-H
[u]EchoBean.java[/u]
package model;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import services.Echo;
@WebService(serviceName="EchoService")
@Stateless()
public class EchoBean implements Echo {
public EchoBean(){}
@WebMethod(operationName="printEcho")
public String printEcho(){
return "WebServices Echo ";
}
@WebMethod(operationName = "printEchoStr")
public String printEcho(String str){
return ("In PrintEcho( String " + str +" )" );
}
}
[u]Echo.java[/u]
package services;
import java.rmi.Remote;
import javax.jws.WebService;
@WebService
public interface Echo extends Remote{
public String printEcho();
public String printEcho(String str);
}
[Message sent by forum member 'h_p']
http://forums.java.net/jive/thread.jspa?messageID=468898