• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 691
  • Last Modified:

Return value from Jax-WS webservice

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
0
ank9
Asked:
ank9
  • 2
1 Solution
 
mukundha_expertCommented:
in this case, you need to assign the value to holder object.

for firstname assign it to holder0,
lastname assign it to holder1 etc.
0
 
ank9Author Commented:
Thank you.
Is there any tutorial on Jax-WS which gives information on this?
 
 
0
 
mukundha_expertCommented:
refer to,
https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#2.4%20javax.jws.WebParam%7Coutline

the conformance is available in the jaxws spec which you can find in the downloads section
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now