Axis2 does not support SwA using pojo deployment or java2wsdl.. You can use javax.activation.DataHandler data type to generate a base64Binary(MTOM compatible) WSDL...
thanks, ~Thilina On Mon, Jun 9, 2008 at 1:50 PM, Marc Lefebvre <[EMAIL PROTECTED]> wrote: > So, in a JAVA class, which JAVA data type in a method call generates this > xmime:base64Binary WSDL data type when using JAVA2WSDL? I could ascertain > that from the examples I have seen. Most of these seems to start from a > WSDL and generate the Java. I'm starting with JAVA and need to generate the > WSDL for this. > > __ > Marc Lefebvre, Principle Software Engineer > Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 > Phone: (808)442-7168, Email: [EMAIL PROTECTED] > echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc > > > ________________________________ > > From: Enaganti M Naidu [mailto:[EMAIL PROTECTED] > Sent: Fri 6/6/2008 5:58 PM > To: [email protected] > Subject: RE: [Axis2:v1.4] WSDL / SOAP Attachment question > > > There should be no difference between SWA and MTOM. MTOM is backward > compatiable with SWA, at least in Axis2. > > The dataType for binary in Axis2 is DataHandler. So you may have to use > <element name="documentBinaryData" type="xmime:base64Binary" > xmlns:xmime="http://www.w3.org/2005/05/xmlmime> > in the XML schema. I might have shared a sample MTOM eclipse Project > recently which you can refer to. > > > > > > > ________________________________ > > Subject: [Axis2:v1.4] WSDL / SOAP Attachment question > Date: Fri, 6 Jun 2008 14:05:52 -1000 > From: [EMAIL PROTECTED] > To: [email protected] > > > If I use POJO for my WebService class and I use Java2WSDL for > auto-generation of the WSDL, what data type should I use to indicate in the > WSDL that the operation expects a soap with attachment? Any difference > between SwA and MTOM for this? > __ > Marc Lefebvre, Principle Software Engineer > Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 > Phone: (808)442-7168, Email: [EMAIL PROTECTED] > echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc > > > ________________________________ > > Instantly invite friends from Facebook and other social networks to join > you on Windows Live(tm) Messenger. Invite friends now! < > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Thilina Gunarathne - http://thilinag.blogspot.com
