Re: WSE352 Size of the record exceed its limit
- From: "Steve" <Dagwood@xxxxxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 08:55:00 -0700
Thanks for the reply.
The webservice is a WSE service component soap client. It is a windows form
project. Images are received as DIME attachments when requested. In this
case I am not requesting an image so I think the records are sent in the
soap envelope without the dime attachment (not 100% sure). I think I need
to set the maxRequestLength in my app.config file like you suggest. I am
just not sure where the tags go. In my Web References I reference the web
service and have set the URL Behavior to Dynamic. This generated an
app.config file for me. I have tried to add the maxRequestLength in this
file but get a .Net exception "Unrecognized configuration section
microsoft.web.services2"
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="V3updateP8Guidv1.CEWSI.FNCEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>
I know this is wrong because of the exception. When I move the whole
<microsoft.web.services2> group into the appSettings node I do not get an
exception but it still gets the size of the record exceeds its limit.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="V3updateP8Guidv1.CEWSI.FNCEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</appSettings>
</configuration>
To answer your other question it is used for downloading.
Thank you for helping! This will be cool if I get it to work.
"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:3M8aYHmpGHA.4188@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Steve,downloading
Welcome to the MSDN newsgroup.
From your description, you're developing an .net webservice which uses WSE
2.0. And the webservice exposes some webmethod for transfering data
records. However, you're encountering some "record size exceed limit..."
error when transfering large amount of data, correct?
As for the webservice, is it an ASP.NET webservice or just a simple WSE
service component(soapservice, soap client)? Also, as for the data
transfering, are you using DIME? In addition, as for data transfering
method , is it used for uploading data from client to server or
data from server to client?webservice's
Based on my research, the <maxRequestLength> setting is described as below
in WSE 2.0 document:
===========
<maxRequestLength> Element is used to specifies the maximum size for
incoming SOAP messages.
===========
Therefore, according to the following cases, we should take the
corresponding care in the application configuration(WSE):
1. If the method is uploading data from client to server, the
"maxRequestLength" setting should be configured in server-side
config filerights.
2. If the method is downloading data frmo server to client, this should be
configured in the client application's configuration file
You can verify this in your application. Also, if the webservice is hosted
in ASP.NET environment, asp.net appliation has also a <httpRuntime
maxRequestLength= > setting in web.config. You'll also take care of this
setting if this is the case.
#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx
Hope this helps. If there is anything I missed or any other paricular
finding, please feel free to post here.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- Re: WSE352 Size of the record exceed its limit
- From: Steven Cheng[MSFT]
- Re: WSE352 Size of the record exceed its limit
- References:
- WSE352 Size of the record exceed its limit
- From: Steve
- RE: WSE352 Size of the record exceed its limit
- From: Steven Cheng[MSFT]
- WSE352 Size of the record exceed its limit
- Prev by Date: Re: Proxy server with HttpListener
- Next by Date: Re: SOAPException Advice
- Previous by thread: RE: WSE352 Size of the record exceed its limit
- Next by thread: Re: WSE352 Size of the record exceed its limit
- Index(es):
Relevant Pages
|
Loading