File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to pass an object as a parameter in web services? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to pass an object as a parameter in web services?" Watch "How to pass an object as a parameter in web services?" New topic
Author

How to pass an object as a parameter in web services?

Simon Yue
Greenhorn

Joined: Aug 11, 2009
Posts: 15
I have corrected some mistakes in my post. Please help ...
------------
I am developing a simple web service client and server (using Eclipse for auto code generation). I am able to pass String and Byte array from the client. However, there is a parameter "statusInfo" which is an object of the class "cz.unmz.namespaces.csn369791.SendCertificatesRequestStatusInfo" and I have no idea of how to do so.

Below is an extract of the wsdl file:

Below is an extract of the auto-gen SendCertificatesRequest.java file:

Below is the auto-gen SendCertificatesRequest.java file:

In the client (an auto-gen JSP file), Eclipse has generated the following two lines of code:

I have also added the following line for the parameter "certificateSequence" (I have already prepared a Bytearray of certificateSequence)

Can anyone suggest a way of passing the parameter "statusInfo"? Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass an object as a parameter in web services?
 
Similar Threads
Axis org.xml.sax.SAXException: Bad types
Significance of this tag
CONSUMING .NET DATASET IN JAVA CLIENT
Compare these classes!
Need Help regarding -- org.xml.sax.SAXException: Invalid element