[jboss-user] [Beginner's Corner] - Trying a very simple WebService

Breako Beats do-not-reply at jboss.com
Wed Jun 9 18:08:00 EDT 2010


Breako Beats [http://community.jboss.org/people/breako] created the discussion

"Trying a very simple WebService"

To view the discussion, visit: http://community.jboss.org/message/547236#547236

--------------------------------------------------------------
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 http://localhost:8080/TitanEJBProject?TravelAgentWSBean and get a 404
then I see if anything is at:
 http://localhost:8080/TitanEJBProject/ http://localhost:8080/TitanEJBProject/

Also a 404 :-(

Any ideas of help appreciated.

Thanks

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/547236#547236]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100609/adc06b28/attachment.html 


More information about the jboss-user mailing list