Attached is a simple MTOM service - eclipse project. Import this as a java project and run the build script each step at a time so that you can follow whats happening. Change the hardcoded axis2 library folder name in the build.xml file before running the steps. Eclipse may still show compile errors unless you define AXIS2 Home and lib variables. Once you have the .aar file, deploy and play around. Currently it looks for any files you ask for in C:\Temp\TrailingDocs. Also you need to pass the file name with extension in the request. Use SOAPUI to send requests and you should see the response with attachments....if the file you requested exists...else it may thro an exception...I did not test that portion for this POC..... enjoy... Madhav
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: SOAP Attachment QuestionsDate: Fri, 23 May 2008 20:40:14 -0500 I have a sample eclipse POC project that I put together on Axis2 1.3 that will send a binary file from server to client using MTOM. Let me know if you want it.....at that time, i did not find a sample but the new documentation for 1.4 also seems to cover both client and server....Madhav Subject: RE: SOAP Attachment QuestionsDate: Thu, 22 May 2008 14:33:51 -1000From: [EMAIL PROTECTED]: axis-user@ws.apache.org Thank you! What about #2, regarding receiving attachments from server to client? Any examples of that around to view? __Marc Lefebvre, Principle Software EngineerAkimeka, 1305 N. Holopono Street, Kihei, HI 96753 Phone: (808)442-7168, Email: [EMAIL PROTECTED] '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]: Thu 5/22/2008 2:26 PMTo: [EMAIL PROTECTED]: Re: SOAP Attachment Questions You may want to look at the latest http://ws.apache.org/axis2/1_4/mtom-guide.html~Thilina On Thu, May 22, 2008 at 3:43 PM, Virtual Light <[EMAIL PROTECTED]> wrote: Take a look at this: http://ws.apache.org/axis2/1_1/mtom-guide.htmlRegards,Bill Subject: SOAP Attachment QuestionsDate: Thu, 22 May 2008 10:13:33 -1000From: [EMAIL PROTECTED]: axis-user@ws.apache.org 1) Is there an example on how to send a soap message with a binary attachment using MOTM in java for client and server side using Axis2? I found the one in the samples directory using SoapwithAttachments, but Im looking for same example but using MOTM. 2) Are there any examples using SwA and MOTM that "gets" a file from a web service, instead of "sending" a file to a webservice. (something similar to #1) The file must pass through contained within the soap response message. Sending a weblink is not appropriate for this application because of security constraints. Thanks! __Marc Lefebvre, Principle Software EngineerAkimeka, 1305 N. Holopono Street, Kihei, HI 96753 Phone: (808)442-7168, Email: [EMAIL PROTECTED] '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc -- Thilina Gunarathne - http://thilinag.blogspot.com Change the world with e-mail. Join the i’m Initiative from Microsoft. _________________________________________________________________ Change the world with e-mail. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld
MTOMSampleService.jar
Description: Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]