id="info"

General discussion

Locked

Web Service Enhancement 2.0 Attachment Problem

By gopikrishnan.in ·
I am doing a application which transfers Voice file through Web Service.

Using WSE 2.0 in .Net Framework 1.1

I can attach and send voice file from my application up to 4MB size if the size is large exception throws.

Error :
"System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. --> Maximum request length exceeded.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WSETesting.localhost1.Service1Wse.UploadFile(String sFilePath, String sFileName) in E:\My Project\Visual Studio 2005\Projects\WSETesting\Web References\localhost1\Reference.vb:line 58
at WSETesting.Form1.btnGetImage_Click(Object sender, EventArgs e) in E:\My Project\Visual Studio 2005\Projects\WSETesting\Form1.vb:line 87"

After that i increased the size to 8MB by modifying Web.Config. like this

<httpRuntime maxRequestLength="8000" useFullyQualifiedRedirectUrl="true" executionTimeout="45" />

After increasing also there throws an Exception

Error:
"System.Net.WebException: The request failed with HTTP status 400: Bad Request.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WSETesting.localhost1.Service1Wse.UploadFile(String sFilePath, String sFileName) in E:\My Project\Visual Studio 2005\Projects\WSETesting\Web References\localhost1\Reference.vb:line 58
at WSETesting.Form1.btnGetImage_Click(Object sender, EventArgs e) in E:\My Project\Visual Studio 2005\Projects\WSETesting\Form1.vb:line 87"

Please i need a solution for this I can attach and semd small file but cant able to attach and send larger files. Is there any other way to increase the attachment size in WSE 2.0 Web Service.

Thank in advance.....

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Windows Forum
0 total posts (Page 1 of 1)  

Operating Systems Forums