You could send the file as an attachment to the SOAP message. ----- Original Message ----- From: "Jeffrey J Gaynor/jqhome" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 12:03 PM Subject: Re: I am new to axis, and got exception...little help please !!!
> > You are trying, basically, to use this service to write your own ftp-like > service, right? > > I'm no expert -- I'm just a beginner myself -- but it seems to me from your > description that this cannot be done. If you are sending an Object then all > that exists on the other end is an Object, with no other functionality. > What AXIS will do is send over whatever attributes it has specified in a > serializer/deserializer pair and reconstitute the object at the receiving > end. Unless you have written some custom code to do this, you get nothing. > If you have used the WSDL utilities and it makes noises about defaulting to > "anyType" it is telling you it will cheerfully send nothing. :o> > > Of course, I might be wrong. If anyone on the list could suggest a way of > remotely sending/receiving files, that would be extremely interesting. > > Cheers, > > -- J > > On 01/09/2003 10:52:35 am Fatih Mustacoglu wrote: > >Hi all, > > > >I am trying to implement a file copy service using axis...I am sending a > >FileInputStream object to the webservice which is expecting an type > object, and > >then I am casting the object type to my original type FileInputStream > object > >inside the method webservice filecopy method, then I got this exception.: > > > >WSDLException: faultCode=OTHER_ERROR: Can't find prefix for > >'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the > >Definition object using the addNamespace(...) method.: > > at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source) > > at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown > Source) > > at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown > >Source) > > at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(Unknown Source) > > at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(Unknown Source) > > at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source) > > at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) > > at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source) > > at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:236) > > at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:289) > > at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:458) > > at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:497) > >Can any body have any idea? am I doing sth wrong? thanks for the helps.. > > > >fatih > > > > > > > >--------------------------------- > >Do you Yahoo!? > >New DSL Internet Access from SBC & Yahoo! > > >