Hi All,
I have two axis2 services - one is MTOM based (for file transfer) and other is without MTOM processing text/xml data. Client app is written in .net which first call the MTOM service and upload a file on the server successfully and based upon the returned response invoke other service to do other operations. When I use the second service with hardcoded response with a test java client it works but fails in the .net client case where MTOM service is also called before its invocation. Summary: If both services called independently executes well but if called in one client app the second service fails. The error trace log is: {System.InvalidOperationException: Client found response content type of 'multipart/related; boundary=MIMEBoundaryurn_uuid_5EE71B3F2E4D475A341247778833563; type="application/xop+xml"; start="<0.urn:uuid:5ee71b3f2e4d475a341247778833...@apache.org>"; start-info="text/xml"', but expected 'text/xml'. The request failed with the error message: -- --MIMEBoundaryurn_uuid_5EE71B3F2E4D475A341247778833563 Content-Type: application/xop+xml; charset=utf-8; type="text/xml" Content-Transfer-Encoding: binary Content-ID: <0.urn:uuid:5ee71b3f2e4d475a341247778833...@apache.org> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns: zoeIndexResponse xmlns:ns="http://ws.v1a.com"><ns:return></ns:return></ns:zoeIndexResponse></ soapenv:Body></soapenv:Envelope> --MIMEBoundaryurn_uuid_5EE71B3F2E4D475A341247778833563-- --. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient Message message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at WindowsApplication1.Zoeindex.V1AWebService.zoeIndex(String name, String password, String fileName) in D:\V1AService\WindowsApplication1\Web References\Zoeindex\Reference.cs:line 270 at WindowsApplication1.V1A.Upload(String strFile) in D:\V1AService\WindowsApplication1\V1A.cs:line 85} Response is much awaited. Thanks in advance, -Rajneesh =================================================================================================== Private, Confidential and Privileged. This e-mail and any files and attachments transmitted with it are confidential and/or privileged. They are intended solely for the use of the intended recipient. The content of this e-mail and any file or attachment transmitted with it may have been changed or altered without the consent of the author. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, circulation or Transmission of this e-mail and/or any file or attachment transmitted with it, is prohibited and may be unlawful. If you have received this e-mail or any file or attachment transmitted with it in error please notify OTS Solutions at i...@otssolutions.com ===================================================================================================