It looks like I am reaching a 4 meg filesize limitation transferring a soap attachment. Everything I read says that there is no limit.
The error I am getting looks like this:
An unhandled exception of type 'Microsoft.Web.Services2.Dime.DimeFormatException' occurred in microsoft.web.services2.dll
Additional information: WSE352: The size of the record uri:c8873491-29f1-4a06-82c6-c7fbf8605619 exceed its limit.
my code looks like this:
[WebMethod(BufferResponse=false)]
[SoapHeader("Token", Direction=SoapHeaderDirection.In)]
public string getLatest(int pTreeId)
{
string filePath = @"c:\bigfile.txt";
SoapContext context = ResponseSoapContext.Current; string retUri = "";
DimeAttachment da = new DimeAttachment("image/jpeg", TypeFormat.MediaType, filePath);
da.Id = "uri:" + Guid.NewGuid().ToString();
context.Attachments.Add(da);
return retUri; // retUri;
}
Everything seemed to work ok in WSE 1.0, but I had problems with my Custom SoapHeader. In some other forums I saw that I could change my machine.config. I tried this, restarted IIS, but still seem to have a 4 meg limit.
I would appreciate any help!
Thanks
c