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
ank9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.