File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Webservice using JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice using JAX-WS" Watch "Webservice using JAX-WS" New topic
Author

Webservice using JAX-WS

Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 313

Hi,
I need to expose some methods of a WebLogic application as a webservice and already have the Java interface and implementing classes written with the @WebMethod tags on the interface (and @WebService on the class). Now I need to generate the other files but am unsure what these other files are and how to do it, can someone let me know what the steps are?

Thanks
Willy
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
If you don't know what "the other files" are, why do you think you need them? What are they supposed to contain?


Ping & DNS - updated with new look and Ping home screen widget
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 313

Well I'm pretty sure I need to generate some endpoints for a start
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
The endpoint is implemented by the methods having the @WebMethod annotation (or all public methods if you use the @WebService annotation); there's nothing else to be done on your end. Check the WSDL after you have deployed the classes - it should show all the endpoints.
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 313

don't I need to add a web.xml file or something
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
I see; I thought that a high-end JEE server like WebLogic would have admin capabilities to deploy WS.

The way to deploy JAX-WS services as part of standard web app is described in http://www.coderanch.com/t/223670/Web-Services/java/Deploy-JAXWS-Mustang-WS-Tomcat
 
Consider Paul's rocket mass heater.
 
subject: Webservice using JAX-WS
 
Similar Threads
Help on Webservice
HttpClient and Webservice
WebServices clarifications!!
calling methods from external web service
What is the difference between servlet and webservice.