You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chris Haddad <ch...@cobia.net> on 2002/05/01 21:42:39 UTC

transferring a file?

Patricia - 

SOAP does not create remote references to objects.  A java.io.File is
actually an object used to access a file, not the actual file itself.
That is what is causing the serialization issues.

Are you attempting to just pass file contents, or attempting to pass
file attributes (name, file system properties, .... etc)? 

If passing file contents, you probably should be using the Axis SOAP
Attachment support. See xml-axis.java.samples.attachments

/Chris

-----Original Message-----
From: Patricia Doyle [mailto:pdoyle001@hotmail.com] 
Sent: Wednesday, May 01, 2002 3:19 PM
To: axis-user@xml.apache.org
Subject: Re: Char!!!!

I want to return java.io.File object from method in webservice. But when
I 
create a WSDL file from JavaToWSDL tool it creates a complex type named 
java.io.File and in it two of element which are separatorChar and 
pathSeparatorChar are of char type. When I generate Java files using 
WSDLToJava tool it tries to create a class DefaultNamespace._char. Is
their 
any way to around it???





>From: "Russell Butek" <bu...@us.ibm.com>
>Reply-To: axis-user@xml.apache.org
>To: axis-user@xml.apache.org
>Subject: Re: Char!!!!
>Date: Wed, 1 May 2002 13:53:09 -0500
>
>Sorry.  Right now you can't.  There is no mapping from Java's primitive
>char type to an XML type.
>
>Russell Butek
>butek@us.ibm.com
>
>
>"Patricia Doyle" <pd...@hotmail.com> on 05/01/2002 01:23:19 PM
>
>Please respond to axis-user@xml.apache.org
>
>To:    axis-user@xml.apache.org
>cc:
>Subject:    Char!!!!
>
>
>
>How can I use char as datatype of one of fields in bean as in WSDL file
>xsd:char is not defined as valid type?
>
>
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com