ank9
asked on
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.OU T, name = "firstName") Holder<String> holder0,
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OU T, name = "lastName") Holder<String> holder1,
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OU T, 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
public void getResumeDetails(
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.IN
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OU
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OU
@javax.jws.WebParam(mode = javax.jws.WebParam.Mode.OU
System.out.println("Resume
}
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
Is there any tutorial on Jax-WS which gives information on this?