If possible can you post your service impl class... Does the retriveDocument has a return type of DataHandler or a class with a data handler variable with getter/setter...
Wonder how SwA got in to the picture... <swa:graph xmlns:swa="http://connector.centera.firstdata.de/xsd" swa:href="cid:urn:uuid:A55EF593CFE18862FB1209709362025" /> thanks, Thilina On Fri, May 2, 2008 at 1:56 AM, Roeder, Andreas <[EMAIL PROTECTED]> wrote: > Dear Thilina, > > Another thing I recognized is, that I don't have this line in my wsdl: > > <xs:element minoccurs="0" name="return" nillable="true" > type="xs:base64Binary"> > > Instead of this I got: > > <xs:element name="return" nillable="true" type="xs:anyType" /> > > So, there might be something wrong I guess. > > Best Regards, > > Andreas > > -----Ursprüngliche Nachricht----- > Von: Roeder, Andreas > Gesendet: Freitag, 2. Mai 2008 08:28 > An: 'axis-user@ws.apache.org' > Betreff: AW: Axis2 webservice using MTOM/.NET client > > > Dear Thilina, > > I was able to fix the SoapException. I just changed the services.xml file > to: > > <service name="CenteraWS"> > <parameter > name="ServiceClass">de.firstdata.centera.connector.Connector</parameter> > <operation name="storeDocument"> > <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > <actionMapping>urn:"storeDocument"</actionMapping> > </operation> > <operation name="retrieveDocument"> > <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > <actionMapping>urn:"retrieveDocument"</actionMapping> > </operation> > <parameter name="enableMTOM">true</parameter> > </service> > > But now the only thing I receive on the .NET client side is the following > XML string: > > <swa:graph xmlns:swa="http://connector.centera.firstdata.de/xsd" > swa:href="cid:urn:uuid:A55EF593CFE18862FB1209709362025" /> > > How am I able to receive the File or byte stream? > > Best Regards, > > Andreas > > -----Ursprüngliche Nachricht----- > Von: Roeder, Andreas > Gesendet: Freitag, 2. Mai 2008 07:56 > An: 'axis-user@ws.apache.org' > Betreff: AW: Axis2 webservice using MTOM/.NET client > > > Dear Thilina, > > Thank you very much for your response. I just tried the quick & dirty way > (my method name is retrieveDocument) and I got a SoapException on the .NET > client side: > > "Message Receiver not found for AxisOperation: retrieveDocument" > > Do I need a axis2 library on the client side? > > Best Regards, > > Andreas > > > > > -----Ursprüngliche Nachricht----- > Von: Thilina Gunarathne [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 1. Mai 2008 02:22 > An: axis-user@ws.apache.org > Betreff: Re: Axis2 webservice using MTOM/.NET client > > > Hi, > Axis2 release contains a MTOM sample web service and a client which sends > files to the service. Download the binary distribution and you can find it > in the samples folder.. You can try creating a client for that using the > given wsdl.. > > Let us know if you need anything more.. > > thanks, > Thilina > > PS: If you need to do it in quick & dirty way, check > http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html > > > > On Wed, Apr 30, 2008 at 4:26 AM, Roeder, Andreas < > [EMAIL PROTECTED]> wrote: > > Hi everybody, > I'm just started to use Axis2 for developing a webservice. So I'm just a > bloody beginner ;-) > I want to send and receive files via an Axis2 webservice to/from a .NET > client written in C#. > Now I red serveral times that the Web Service Enhancements (WSE) 3.0 of > .NET and Axis2 both support MTOM. > Unfortunately I cannot find samples how get it implemented. Could someone > provide me some code for doing that? > Thank you in advance. > Best Regards, > Andreas > > > > -- > Thilina Gunarathne - http://thilinag.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thilina Gunarathne - http://thilinag.blogspot.com