I am writing a web service which basically accepts a ConsumerId , and in turn i am returning the Consumer Details in the form of an COnsumerVO with the data set on to it .
Please tel me what is the appropaite way of returning this ConsumerVO .
Please share your ideas .
You have declared ConsumerVO as a "complex type" in schema of your web service. In output operation of web service, you choose this complex type. Then the return type of your web service will be an object.
Hope this will be the solution of your problem.
subject: Need to return a ValueObject from a Service .