Hi All,
I use WSE 2.0 / DIME to send a zip file of size 9.2 MB. I send file of size
less than this success fully but with this the client basically get the
exception "dime format exception".
Message : WSE352: The size of the record
uuid:d999e283-b0a8-4134-ad24-1b1c0e7dd7b4 exceed its limit.
I have win XP Sp 2 at the web service base, The code is follows..
Web service Web Config has
<microsoft.web.services2>
<messaging><maxRequestLength>20000</maxRequestLength></messaging>
<diagnostics />
</microsoft.web.services2>
client web config has
<httpRuntime maxRequestLength="20000" useFullyQualifiedRedirectUrl="true"
executionTimeout="100" />
what am I doing wrong here..?
Nirosh.
[WebMethod]
public bool PreviewMasterBookBackMatterHtml(string tstrUserId, string
tstrContentId)
{
if ((tstrUserId != string.Empty)
&& (tstrContentId != string.Empty))
{
string lstrFilePath =
this.lobjManagerPreviewContent.tcRequestPreviewMasterBookBackMatterHtml(tstr
UserId
, tstrContentId);
if (lstrFilePath != null)
{
SoapContext respContext = ResponseSoapContext.Current;
DimeAttachment dimeAttach = new DimeAttachment(
".zip"
, TypeFormat.Unknown
, lstrFilePath);
respContext.Attachments.Add(dimeAttach);
return true;
}
else
{
throw new
System.Web.Services.Protocols.SoapException(Convert.ToString((int)this.lobjM
anagerPreviewContent.LastServiceError)
, System.Web.Services.Protocols.SoapException.ServerFaultCode);
}
}
else
{
throw new
System.Web.Services.Protocols.SoapException(Convert.ToString((int)TCErrors.E
RROR_SERVICE_INSUFFICIENT_PARAMETER)
, System.Web.Services.Protocols.SoapException.ClientFaultCode);
}
}
Søren M. Olesen - 19 Apr 2005 14:24 GMT
Hi
You neet to set the size in machine.config too:
<httpRuntime executionTimeout="500" maxRequestLength="1000000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />
Regards,
Søren
> Hi All,
>
[quoted text clipped - 58 lines]
> }
> }