0 Replies Latest reply on Jun 14, 2013 3:31 PM by suryak

    How to extract data from OMElement object file attachment SOAP Service


      We are having Axis2 Tomcat6 Webservice on SOAP WSDL


      The Webservice method is like this


      public String uploadGpxFile(OMElement omEle) throws AxisFault {

          // Extract file attachment from omEle

         // store in database

         return "ok";


      So, I just went through the documentation and executed


      This printed the attached data like this

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">


            <ns:uploadGpxFileResponse xmlns:ns="..........">

               <ns:return><![CDATA[ MY REQUIRED XML DATA IS HERE ]]></ns:return>




      So, I essentially want to extract this data and store in database. My simple question is how to do it!

      It sounds crazy but, I am quite new to Java. I was actually debugging client and found there is a problem in server and started fixing it!! It would be very helpful if someone helps