Cedric, Sorry I cannot provide any additional insights on attachments. I have never used them personally.
Good luck! Rick -----Original Message----- From: Carbone Cedric [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 4:10 AM To: [EMAIL PROTECTED] Subject: RE: Problem with the sample Attachment (Axis Java) Thank you Rick for your answer. So, I don't spend time about WSDL generation, this is no a big problem for my project. But, I want to run the Axis Attachment sample !!! 1) Do you know how use the example? For example, is the following call is correct ? (proper argument?) java samples.attachments.EchoAttachment C:/web.jpg 2) If yes, why axis returns to me a NullPointerException at samples.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:523) ??? 3) In this same file, at line 239 [call.setScopedProperty(HTTPConstants.REQUEST_HEADERS, myhttp);] is the method setScopedProperty() exist really ? (no present in the JavaDoc??) Thanks again, Cedric -----Message d'origine----- De : Rick Kellogg [mailto:[EMAIL PROTECTED] Envoye : lundi 29 decembre 2003 18:06 A : [EMAIL PROTECTED] Objet : RE: Problem with the sample Attachment (Axis Java) Cedric, According to the following article, WSDL does not support the use of attachments. That feature will be adding in the WS-I Basic Profile 1.1 which is still under development. http://webservices.xml.com/pub/a/ws/2003/09/16/wsbp.html I am not sure as to the current status of attachments as it relates to WSDL in Axis 1.1. Just some info to help prevent lost time. Take care, Rick -----Original Message----- From: Carbone Cedric [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: Problem with the sample Attachment (Axis Java) Hi all, I have problems with Attachment sample in Axis 1.1 (Java). For 3 days I have spent with the Attachment sample, I don't arrive to run it :(( I need your help. I saw on the mailling list the problem about namespace. According to an message of november on your mailinglist, I have deleted the namespace (in the WSSD file) and thanks this, Axis autogenerates the WSDL without SOAPException (good). However, the sample don't run I have now java.lang.NullPointerException ! So, I run the sample using C:\>java samples.attachments.EchoAttachment C:/web.jpg (The binary file C:/web.jpg exists) Now this is the response java.lang.NullPointerException java.lang.NullPointerException at org.apache.axis.Message.createAttachmentPart(Message.java:638) at javax.xml.soap.SOAPMessage.createAttachmentPart(SOAPMessage.java:243) at samples.attachments.EchoAttachment.echoUsingSAAJ(EchoAttachment.java:523) at samples.attachments.EchoAttachment.main(EchoAttachment.java:362) So I bug at line 523 of EchoAttachment.java when I create an AttachmentPart ! javax.xml.soap.AttachmentPart attachment = soapMessage.createAttachmentPart(dataHandler); Finally, I want to debug this file but I can't because I don't arrive to compil the source EchoAttachment.java. javac EchoAttachment.java EchoAttachment.java:239: cannot resolve symbol symbol : method setScopedProperty (java.lang.String,java.util.Hashtable) location: class org.apache.axis.client.Call call.setScopedProperty(HTTPConstants.REQUEST_HEADERS, myhttp); org.apache.axis.client.Call API [http://ws.apache.org/axis/java/apiDocs/org/apache/axis/client/Call.html] Call don't support a method called setScopedProperty(String, Hashmap) Futhermore, org.apache.axis.client.Call implements the interface javax.xml.rpc.Call http://ws.apache.org/axis/java/apiDocs/javax/xml/rpc/Call.html This interface don't support a method called setScopedProperty(String, Hashmap) ... I don't understand this (pechaps a depreciated method in AXIS 1.1 ??) Thank you in advance for your help... I'm completlty lost. Cedric NeoPost