Community

Trying a very simple WebService

created by Breako Beats in Beginner's Corner - View the full discussion

Hi,

I am using Jax-ws to make a stateless session bean a web service!

Before I connect my client, I'd like to open my browser and have a look at the wsdl.

 

I am deploying this way.

1. IDE builds jars file:  TitanEJBProject

2. IDE puts this jar file in jboss\server\default\deploy

3. My WebService is:

 

@Stateless
@WebService
public class TravelAgentWSBean implements TravelAgentRemote {
    @WebMethod
    public String makeReservation(int cruiseId, int cabinId, int customerId, double price) {
        System.out.println(">> makeReservation()");
        return "reserved";
    }

}

 

 

I open up  a browser and go to:

 

http://localhost:8080/TitanEJBProject?TravelAgentWSBean and get a 404

then I see if anything is at:

http://localhost:8080/TitanEJBProject/

 

Also a 404 :-(

 

Any ideas of help appreciated.

 

Thanks

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community