• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Webservice using JAX-WS

 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't know what "the other files" are, why do you think you need them? What are they supposed to contain?
 
Will Myers
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I'm pretty sure I need to generate some endpoints for a start
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
don't I need to add a web.xml file or something
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 https://coderanch.com/t/223670/Web-Services/java/Deploy-JAXWS-Mustang-WS-Tomcat
 
reply
    Bookmark Topic Watch Topic
  • New Topic