Re: WSE352 Size of the record exceed its limit



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,

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
downloading
data from server to client?

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
webservice's
config file

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
rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)





.



Relevant Pages

  • Passing tokens down multiple layers of web services
    ... I'm facing a challenge in designing a Service Oriented Architecture based on ... WSE 2.0 SP1. ... Is there a way to pass on the token from the inputfilter of a webservice to ... My idea was that as you are in the context of a call from a client, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: No WSE Proxies
    ... you have an ASP.NET webservice which use WSE 3.0 and another client application which call this webservice. ... Based on my understanding, this is possibly occured for autogenerated web service proxy, so is your client applicationan ASP.NET web application also? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Sending a WSE 2.0 security SOAP request from HTML client VBScr
    ... > Welcome to webservice newsgroup. ... > generate it just through string operations, however the WSE message will ... > server page code to call the webservice, this will make the client script's ... Sending a WSE 2.0 security SOAP request from HTML client VBScript ...
    (microsoft.public.dotnet.framework.webservices)
  • 130Mb dime attachment
    ... I've created a small application to transfer files between a client and a ... webservice using DIME WSE 1.0SP1. ... The strange thing is, that when transferring the 70Mb file, my CPU works ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Error on SOAP Call on only one machine: Could not find default endpoint element that references
    ... "Service Reference" is a proxy class used for consuming WCF service. ... Though WCF client can also consume standard XML webservice, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.vb)

Loading