This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to create Web service using JAX-WS in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create Web service using JAX-WS in Jboss " Watch "How to create Web service using JAX-WS in Jboss " New topic
Author

How to create Web service using JAX-WS in Jboss

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
Our req is to create a web service using JAX-WS and deploy to Jboss 4.2. we use Neither Ant nor Maven. just a simple service and deploy into the server, and write a client to call that service.

I googled for samples and I created simple service as follows.


When I deployed to AS, it created one WSDL file in server side with end point. I tested this endpoint URL on IE, and its showing the WSDL code no browser(I think its working).
Now the problem has started with the client, i didn't find proper example for client to call this. I tried many examples, but they are linked with either ANT or Maven or some Tools provided by different vendors, there are creating web services in different way and consuming. I tried but failing.
Ex:-
Or

In the second example, what is SumiService? I checked the WSDL file, the SumiService is the name of the service that I mentioned in the Webservice declaration, but here its a java object, I don't understand how its generate. I don't see anywhere in server side, so how would I call this. I get compilation errors, obviously. Any help on this how to generate these services?

Thanks,
Kumar
 
jQuery in Action, 2nd edition
 
subject: How to create Web service using JAX-WS in Jboss