the response is like this:
==== Response ====
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; action="urn:loadData2";charset=utf-8
Date: Wed, 09 Sep 2009 10:20:36 GMT
Connection: close

<?xml version='1.0' encoding='utf-8'?>
   <soapenv:Envelope 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Body>
         <ns:loadData2Response xmlns:ns="http://mtWebService/xsd";>
            
<ns:return>UEsDBBQAAAAIAElaujoQ1+lcBwEAAEsDAAAOAAAAbmFnZW50X2xvZy50eHTFk7FOwzAQhnck3sEvAIqHipLNbZLKUmJHsZmR1Vxdi+RSuQbE22PaDhWqC0ysvu+z/ruz2Tq4Cck+GB8IpTl9yDNKJC7AOry/vWEX6ysIy2kcDfa1QyB3BDCAT+JCdg2rSSOLknChNKtrprkUSaHindJE8+Znfp5nM6IgPO2sNz1U09CD3yfIR7KccOOsAv/m1pDGuFpuDVo4gQuHxn+0JmyFGSFa6gt3aMnmFY8XnKlyB3gSG4PGHibzWyOd/DzQsQ32D0loRjjGg2EoTDCtnwIcoCQdd6PUtaqA8D75F2bjI1LqWZVac7FKKfSC0nay4KKSV5qjs7+O47uRyDOPn6XEPlY/AVBLAQIUABQAAAAIAElaujoQ1+lcBwEAAEsDAAAOAAAAAAAAAAEAIAAAAAAAAABuYWdlbnRfbG9nLnR4dFBLBQYAAAAAAQABADwAAAAzAQAAAAA=</ns:return>
         </ns:loadData2Response>
      </soapenv:Body>
   </soapenv:Envelope>
==============

is it an mtom attachement message?


-----Original Message-----

From: Amila Suriarachchi <amilasuriarach...@gmail.com>

To: axis-user@ws.apache.org

Date: Wed, 9 Sep 2009 15:13:55 +0530

Subject: Re: sending binary file by a web service using mtom



send the message through tcp mon. and see the request/response messages.

thanks,
Amila.


On Wed, Sep 9, 2009 at 12:23 PM, ghader <gha...@douran.com 
[mailto:gha...@douran.com]> wrote:


I 
have created a test web service using Axis2/java. I created it to test 
sending binary file using mtom. I also created a C++ client using gsoap to 
test the web service(this is of no relevance to my problem). The client is 
able to successfully receive the sent file from the server side, but I 
really don't know whether the file is sent using mtom or not. I just know 
that the file is sent in base64binary format by the server. The code of the 
method on the server which sends file is as the following: 
 
public DataHandler loadData2()   
    
{   
        FileDataSource dataSrc = new 
FileDataSource("C:\\Tools.zip");   
    
    DataHandler dataHandler = new DataHandler(dataSrc);   
        return dataHandler;   

    } 
I also don't know what item in a wsdl file 
tells about existance of a mtom attachment in the response message.


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/ 
[http://amilachinthaka.blogspot.com/]

Reply via email to