|
Hi Krishna ,
I dont think your code deployment is
correct.
To pass an Object as an argument I think u must
specify it in the deployment descriptor . It should have a <typeMapping>
tag which gives all the details of the Object to be passed as argument. You can
refer Axis User Guide for this.
String endpoint = "http://localhost:8080/axis/services/DocumentService";
Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( new
java.net.URL(endpoint) );
call.setOperationName( "showDocument" ); call.invoke( new Object [] { document
});
System.out.println("\n\n\n******** RETURNED DOCUMENT \n"); System.out.println(document.toString()); IN your client given above ( In Red) call.
invoke should return an Object. So there should be a variable to receive that
Object. And that should be the Document Object. Also you should set the return
type using this method
call.setReturnType(
type); // Setting the return type.
Read Axis API Docs.
Regards
Dhanush
********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com |
- document through wsdl MANCHIKALAP, KRISHNA (SBCSI)
- Dhanush Gopinath
