The following code posted by Michael
Binz could help you.
-- START--
package .util;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.ByteArrayInputStream;
import java.lang.reflect.Method;
Michael,
Create a WSDL type with the structure
you want.
Run wsdl2java on this. Use this
java class on the client side.
On the server side, use a different
class, use your serializer
and the Bean Deserializer for
this.
Now you should be able to return your
data to the client,
which will be able
To see how to register see my email
on Re: Bean Serializer/Deserializer.
For an example serializer you can even
look at the axis code. I have attached it.
Regards,
- kiru
Michael Schuerig <[EMAIL PROTECTED]>
10/18/2004 12:24 PM
Please respond to
[EMAIL PROTECTED]
To
[EMAIL PROTECT
You could probably write Serialize/Deserializer
yourself for the ResultSet object.
Actually, some database provide a way
to retrieve the ResultSet as xml.
Regards,
- kiru
Michael Schuerig <[EMAIL PROTECTED]>
10/18/2004 04:14 AM
Please respond to
[EMAIL PROTECTED]
To
[EMAIL PROTECTE
You are using Java2WSDL that has a java.io.File
member variable.
Define a class that has an array of
say, MyLogFormat.
eg
public class MyType
{
public
MyLogFormat[] log; // you probably had java.io.File
here
public int somethingelse;
}
public class MyLogFormat
{
The following code posted by Michael
Binz could help you.
-- START--
package .util;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.ByteArrayInputStream;
import java.lang.reflect.Method;
I am using Axis to do
invoke webservices, but I need to store the parameters
in a database columns.
So I am trying to use the serializer, but unsuccesful so far.
Here is the code which
I use, which produces not output (ost.size = 0).
Any help in this regard
is appreciated.
Regards,
- kiru
I am trying to persist the value in
a text column in a database.
I am using XmlSerializer to serialize
it, but I dont see any output.
I have enclosed the code which does
this. ost.size() turns out to be zero.
org.apache.axis.encoding.Serializer
s = ValueType.getSerializer