Hi, I am currently moving from axis 1.x to axis 2. I now have my existing web services working but I am slightly confused about a couple of things in the xml configuration and hope that someone can explain it to me.
Firstly I wrote a very simple service to test the MTOM attachments, and I just send a csv file which works only if I have the following in my services.xml file: <serviceGroup> <service name="FileService"> <description>Transfer CSV Service</description> <messagereceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messagereceivers> <parameter name="ServiceClass" locked="false">webservices2.BtfService</parameter> <operation name="getFile"> <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> </operation> <parameter name="enableMTOM">true</parameter> </service> </serviceGroup> It only seems to work if I have a 'messagereceivers' element which a' MessageReceiver' inside denoting the RPCMessageReceiver AND the messageReceiver element inside the 'operation' element. I also noticed that on some examples online people don't even include the 'operation' element but my existing services don't work unless I specify this for each method I want to expose, what exactly are the rules surrounding the 'operation' element and the 'messageReceiver' elements. And when can I get away without including an 'operation' for each method I expose? Any help is appreciated! Paul ******************************************************************************************************************** This message may contain confidential information. If you are not the intended recipient please inform the sender that you have received the message in error before deleting it. Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Thank you for your co-operation. NHSmail is the secure email and directory service available for all NHS staff in England and Scotland NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients NHSmail provides an email address for your career in the NHS and can be accessed anywhere ********************************************************************************************************************