I need to send MTOM request (having file to checked in to Documentum location), to a AXIS2 Web Service.
The service has identified, two types of transfer mode, 64bit encoding and MTOM. Even when I use the MTOM mode and do the changes to Web.Config (WSE 3.0) to send only MTOM request, base 64 is passed over the wire.
How do I ensure that the request is MTOM? I need to share the file as a byte array. The method to check in document expects it to be a byte array.
protected override System.Net.WebResponse GetWebResponse(System.Net.WebRequest request)
{
System.Net.WebResponse output = base.GetWebResponse(request);
this.RequireMtom = false;
return output;
}
5. Before sending the MTOM request, change the type of request by :
dscsService.RequireMtom = true;