Posted By:
shay_te
Posted On:
Monday, July 10, 2006 06:03 AM
am trying to create my first web service.. i created a interface class import java.rmi.Remote; import java.rmi.RemoteException; public interface TreeContent extends Remote { public String getProject(int id) throws RemoteException; } and an implamantation class import java.rmi.RemoteException; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class TreeContentImpl implements TreeContent{ public TreeContentImpl(){} @WebMethod public String getProject(int id) thr
More>>
am trying to create my first web service..
i created a interface class
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface TreeContent extends Remote {
public String getProject(int id) throws RemoteException;
}
and an implamantation class
import java.rmi.RemoteException;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class TreeContentImpl implements TreeContent{
public TreeContentImpl(){}
@WebMethod
public String getProject(int id) throws RemoteException{
return "111";
}
}
i am using DeployTool to create new web service...
i am Setting a new "EJB Ref's" (this is the only way i can deploy the app)
after deploying i am trying to acces my web service
(http://localhost:8080/TreeContent/TreeContentImpl?wsdl)
and what i am seeing is :
HTTP Status 404
type Status report
message
description The requested resource () is not available.
i check and see that the application server port is 8080
i try's port 8080 in the web browser and nothing
try's port 8181 and he let me download the TreeContentImpl .class
the server imformation:
Host Name:
localhost
HTTP Port(s):
8080, 8181, 4848
IIOP Port(s):
3700, 3820, 3920
JVM:
JVM Report
Configuration Directory:
D:/Sun/AppServer/domains/domain1config
Installed Version:
Sun Java System Application Server Platform Edition 9.0 (build )
Debug:
Not Enabled
please help.....................
<<Less