I must consume a service with MTOM message but I get the error:
"Error creating a reader for the MTOM message" and the inner exception: "MIME part with Content-ID '<858d8f9f-b101-46c3-bf84-d2b934ad1271>' not found."
BasicHttpsBinding b = new BasicHttpsBinding(BasicHttpsSecurityMode.TransportWithMessageCredential)
{
MessageEncoding = WSMessageEncoding.Mtom
};
MySoapClient client = new SomeSoapClient(b, new EndpointAddress(url));
client.ClientCredentials.UserName.UserName = username;
client.ClientCredentials.UserName.Password = password;
AxisValues ax = new AxisValues()
{
Solution = "xxx",
User = "xxxx"
};
// Exception is generated in this line
SomeResultType r = client.getSomeMethod(ax, new long[] { 1234 }, out SomeType[] list);