yes, the attachments sample that comes with Axis work...i tried it with 1.1 beta too, but still do difference...

I have also some other questions:

1) I did not use Java2WSDL tool, and the its steps to make the service classes.. I just wrote the deploy.wsdd file by checking attachdeploy.wsdd and deployed my service...when I tried to use Java2WSDL tool, I am getting weird exceptions such as:

The class javax.activation.DataHandler is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file. and also same thing for the java.lang.Exception....

 It might be so silly question but am I doing sth wrong? Is there any hint please?

thanks,

teo

 Paul Sabadin <[EMAIL PROTECTED]> wrote:

Teo,
 
Hopefully not a silly question, but ...
 
Does the attachments sample that comes with Axis work? If not, try 1.1 beta - it works for me.
It looks as though attachments is one of the less stable areas of the API.
 
Paul 
 -----Original Message-----
From: teo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: RE: no supports for attachments exception

hi Betsy,

I have also put the activation.jar into my classpath too,but still same...

those are the lists of jar files that I have in my classpath:

activation.jar

axis-ant.jar

axis.jar

commons-discovery.jar

commons-logging.jar

jaxrpc.jar

log4j-1.2.4.jar

mail.jar

mailapi.jar

saaj.jar

tools.jar

wsdl4j.jar

xerces.jar

and I am using axis1.0 version...does anybody has any idea why? is it possible I am getting this due to version? thanks alot again...

teo

 Betsy Frey <[EMAIL PROTECTED]> wrote:

You also need activation.jar.
 
Betsy
-----Original Message-----
From: teo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 9:14 AM
To: [EMAIL PROTECTED]
Subject: no supports for attachments exception

Hi,

I am trying to send an attachment and store it, and getting "no support for attachments" exception....I have already put the mail.jar file into my classpath too, but still I am getting this exception coming from public  Document attachments(Document xml) throws org.apache.axis.AxisFault,
      java.io.IOException, org.xml.sax.SAXException,
      java.awt.datatransfer.UnsupportedFlavorException,
      javax.xml.parsers.ParserConfigurationException,
      java.lang.ClassNotFoundException, javax.xml.soap.SOAPException

   {...} 

is there any help? thanks alot... teo

exception is as:

[mytask] message is:; nested exception is:
[mytask]     java.io.IOException: No support for attachments

[mytask] AxisFault
[mytask]  faultCode: {http://xml.apache.org/axis/}Server.userException
[mytask]  faultString: java.io.IOException: No support for attachments
[mytask]  faultActor: null
[mytask]  faultDetail:
[mytask]     stackTrace: java.io.IOException: No support for attachments
[mytask]     at org.apache.axis.encoding.ser.JAFDataHandlerSerializer.serialize(JAFDataHandlerSerializer.java:120)
[mytask]     at org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1231)
[mytask]     at org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:756)
[mytask]     at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(SerializationContextImpl.java:853)
[mytask]     at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java! ! :147)
[mytask]     at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:401)
[mytask]     at org.apache.axis.message.MessageElement.output(MessageElement.java:746)
[mytask]     at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:273)
[mytask]     at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:488)
[mytask]     at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:379)
[mytask]     at org.apache.axis.Message.getContentType(Message.java:400)
[mytask]     at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:345)
[mytask]     at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127)
[mytask]     at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
[mytask]     at org.ap! ! ache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
[mytask]     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
[mytask]     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
[mytask]     at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
[mytask]     at org.apache.axis.client.Call.invoke(Call.java:2102)
[mytask]     at org.apache.axis.client.Call.invoke(Call.java:1851)
[mytask]     at org.apache.axis.client.Call.invoke(Call.java:1777)
[mytask]     at org.apache.axis.client.Call.invoke(Call.java:1315)
[mytask]     at remote_copy.RemoteCopy.echo(RemoteCopy.java:143)
[mytask]     at remote_copy.RemoteCopy.execute(RemoteCopy.java:76)
[mytask]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[my! ! task]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[mytask]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[mytask]     at java.lang.reflect.Method.invoke(Method.java:324)
[mytask]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
[mytask]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
[mytask]     at org.apache.tools.ant.Task.perform(Task.java:319)
[mytask]     at org.apache.tools.ant.Target.execute(Target.java:309)
[mytask]     at org.apache.tools.ant.Target.performTasks(Target.java:336)
[mytask]     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[mytask]     at org.apache.tools.ant.Project.executeTarg! ! ets(Project.java:1250)
[mytask]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
[mytask]     at org.apache.tools.ant.Main.start(Main.java:196)
[mytask]     at org.apache.tools.ant.Main.main(Main.java:235)



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

Reply via email to