473,320 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

The request failed with HTTP status 400: Bad Request

Hi,
I have developed a NT Service that calls upon a web service outside the corporate firewall and passes data to it, and receives data in return. Now the data that is sent to the web service can be quite large and so can the return data. I am calling the web method asynchronously.

When I call the method with more than 3500 records (converted to the custom class that the web method requires), the beginInvoke method seems to go through fine, but when I get a response back from the server, my code fails at the point where I call the endInvoke of the method with a 400: Bad Request error. If I call the method with less than 3500 records, it seems to work fine. I have set the proxy settings in the app.config.

Can anyone help, please ? I need help urgently and any help would be greatly appreciated.

The error trace shows me the below :

at System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\r\n at System.Web.Services.Protocols.SoapHttpClientProtoc ol.EndInvoke(IAsyncResult asyncResult)\r\n at XDSDataExchangeAgent.XDSWebServices.VantiveService .EndSetClearances(IAsyncResult asyncResult) in c:\\work related\\xdigital systems\\fe\\source\\xdsdataexchangeagent\\web references\\xdswebservices\\reference.cs:line 89\r\n at XDSDataExchangeAgent.XDSDataExngService.SendCleara nceSetCallBack(IAsyncResult ar) in c:\\work related\\xdigital systems\\fe\\source\\xdsdataexchangeagent\\xdsdata exngservice.cs:line 774
Feb 14 '07 #1
2 4619
Also, I sent my data over to the team that maintains the web service, and they tried calling the web service internally with my data, and they said it works just fine. They suggested chunking up my data into blocks of data, and I am not sure I would want to go that route without knowing what the problem is.

The weird part is... it was working just fine until about a week and a half back.
Feb 14 '07 #2
kenobewan
4,871 Expert 4TB
The primary problem for you, I believe, is that it is their web service. You have no control over changes that they make. I wouldn't place too much emphasis on their internal test. Do you have anything in your web.config - I think that it is httpruntime re request length and timeout?
Feb 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
1
by: Elias | last post by:
Hi, I have a project that calls a web service that is in another project, but on the same server. I make the reference to the web service using localhost (for example,...
1
by: Rachel | last post by:
I have created a simple web service in VC# that adds two numbers. It returns an integer value to the client once invoked. I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1. I created a...
4
by: Sean Feldman | last post by:
Hi, I'm expiriencing something interesting with my web service & desktop client application. When running desktop client on Windows XP or Windows 2003 everything works just fine. But when doinf...
1
by: jctwguy | last post by:
G'day all My pc is on a domain and I have a test server in a work group. all the web application and the web service are working fine locally, but when I copy the project using service extension...
0
by: Nicato | last post by:
I have a WebService build on a Java Environment which I tried to use. When I add a reference in VisualStudio 2003 I get the error "The request failed with HTTP status 400: Bad Request." Even when...
8
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no...
2
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.