As
someone else mentioned, you should be using attachments.
SOAP
does not emulate RMI - you can't send java objects around the network, you can
only send XML representation of data around. If the FileInputStream object
is not a JavaBean (which it isn't) then you would have to write your own custom
serializer and deserializer to convert to/from XML.
Use
attachments.
--
Tom
Jordahl
Macromedia Server Development
-----Original Message-----
From: Fatih Mustacoglu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: No deserializer defined for array type ?
From: Fatih Mustacoglu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: RE: No deserializer defined for array type ?
no I do not have...
Actually, what I am trying to is implementing a file copy service...I am sending a FileInputStream object to the webservice that expects an object, and then I am casting it FileInputStream object inside the method, then I got this previous exception.
So, should I have a Deserializer registered for the XML type then?
thanks alot...
fatih
Tom Jordahl <[EMAIL PROTECTED]> wrote:
Do you have a Deserializer registered for the XML type {http://object.myObject}MyObject?
--
Tom Jordahl
Macromedia
-----Original Message-----
From: McCaslin Orion [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 7:51 PM
To: [EMAIL PROTECTED]
Subject: No deserializer defined for array type ?
Hi,
I am not having success getting an array of complex objects deserialized in
a simple test client.
Has anybody figured out how to solve this error?
org.xml.sax.SAXException: No deserializer defined for array type
{http://object.myObject}MyObject at
org.apache.axis.encoding.ser.ArrayDeserializer.onStartElement(ArrayDeseriali
zer.java:257)
The Service function:
public MyObject[] getMyObjects() {
MyObject[] myObjArray = new MyObject[3];
myObjArray[0]= new MyObject();
myObjArray[1]= new MyObject();
myObjArray[2]= new MyObject();
return(myObjArray);
}
I've seen a few of these error postings w/o answers.
In another posting, a workaround was mentioned...
----------------------------------------------------
Define a class which holds your array, and make the
new class a bean. Something like this
class Folders {
Folder[] folders;
getter/setter functions
-----------------------------------------------------
Is this really the only way?
Many thanks,
Orion
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!