Yes that is correct, but the problem is what if I have some variables defined in the Gift object, they need to be shown in the WSDL when it is generated. It is not serializing the Gift object. Is there anyway I can specify what kind of object it should return.
The webMethods IS WSDL generator uses the input and output signature of the services to generate the types section of the WSDL for soap-rpc style and uses the document types that you specify for soap-message style.
In neither case, does it understand how to serialize a custom object such that a consumer of the web service could regenerate the object to make the call successfully.
The best way to handle this is to create a document type representation of your Gift object and have your either your java service or a wrapper around that service populate this. If you generate your WSDL from a service that accepts a Gift document type, your WSDL should work.
PS: Good article, Yemi. Thanks.