You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "陳照東) <alex@erp.ncu.edu.tw>" <Alex> on 2001/05/21 08:42:02 UTC

File object Serializer

hi all :
            i just curious about object from soap.
            so, i f  i want to deliver a File object, do i have to create a File object serializer???? 
            i just edit some of Soap example in "AddressBook". 
           i add one method  into the Address file, that will send back the File object like this:

public File getfile(){
        
   File file = new File(serverpath);
    
   File files[] = file.listFiles(); 
                 return files[0]; 
}

but when i try to run AddressBook sample again, then i got the errors...

Fault= SOAP-ENV:Server, java.lang.IllegalArgumentException: No Serializer
 found to serialize a 'java.io.File' using encoding style 'http://schemas.xmlsoa
p.org/soap/encoding/'.

so, IMHO, i should have a File object Serializer to encoding the result File object , right???
 if so, what should i do???

Please do me a favor!!!


                          
IT DEP. Special Team-XML 
       System Engineer
       Alex     陳照東 
Tel:+886-3-422-7151  Ext: 6024
Mobile:+886-0939-011-336

alex@ERP.NCU.EDU.TW
=Business to Business=