This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Services and the fly likes Return value from Jax-WS webservice	Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Return value from Jax-WS webservice	" Watch "Return value from Jax-WS webservice	" New topic
Author

Return value from Jax-WS webservice

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279


We are creating a Jax-ws webservice from which we need to return a value. I have the following annotated source in which I need to embed the business logic


public void getResumeDetails(
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.IN, name = "resumeId") String resumeId,
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OUT, name = "firstName") Holder<String> holder0,
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OUT, name = "lastName") Holder<String> holder1,
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OUT, name = "address") Holder<AddressType> holder2) {
System.out.println("Resume ID passed as paramter is ---"+resumeId);



}


can someone please let me know how do I return a value from a Jax-ws service. The return type is void but it expects values to be returned from the service.

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Return value from Jax-WS webservice
 
jQuery in Action, 3rd edition