RE: Service Client Receives "Bad Request (Invalid Header Name)" Respon



i just created a webservice as a test.I know the other side will not be using
microsoft based solution...so i tested the webservice with stylus studio
which uses java and i get the same error you do.
So i'm pretty sure something has to be changed on the asp.net webservice to
enable other environments to use SOAP correctly....

did you have any luck in fixing this problem?

"EagleRed@xxxxxxxxxxxxxxxxxxx" wrote:

I have written a Web Service that works with my test harness written using
VS2005. However, a client to the service consistently receives a "Bad
Request (Invalid Header Name)" response for each request. He is using
another development environment that requires that he create the actual
request via multiple calls to a library to construct the request. I have
sniffed the traffic from my harness program and the requests look like the
following:

POST /TotalService/POSService.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 2.0.50727.1433)
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.coltpos.com/TotalService/ExecuteBasic";
Host: www.coltpos.com
Content-Length: 1126
Expect: 100-continue
Connection: Keep-Alive

HTTP/1.1 100 Continue
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
.
.
.
</soap:Envelope>

The client requests look like:

POST /TotalService/POSService.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
Host: www.coltpos.com
Content-Length: 1221
SOAPAction: "http://www.coltpos.com/TotalService/ExecuteBasic";
Expect: 100-continue
Connection: Keep-Alive
HTTP/1.1 100 Continue

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
.
.
.
</soap:Envelope>

His responses are:

HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Mon, 18 Aug 2008 11:21:45 GMT
Connection: close
Content-Length: 42

<h1>Bad Request (Invalid Header Name)</h1>

Does anyone have any idea of what is going wrong with his requests?

As always any input is greatly appreciated.

Thank you,
Eagle

.



Relevant Pages

  • Re: Application quit when i set ProgressBar.Minimum and ProgressBar.Maximum with the same value
    ... There could be a problem if the pseudocode below is invoked on a secondary ... "Request" means a package of data need to ... > by webservice then insert into SQL CE ... In my case, my SQL ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: upload 50M file to web service got 500 internal server error
    ... Try looking at the response in the trace. ... if the trace never shows a request, ... Right now maxRequestLength property of Web App and Webservcie are all set to ... But in trace.axd of the Webservice, ...
    (microsoft.public.dotnet.framework.webservices)
  • Request format is unrecognized for URL unexpectedly ending in /Login
    ... I'm beginner on WebServices, I have developed an WebService with some ... Request format is unrecognized for URL unexpectedly ending in '/Login'. ... An unhandled exception occurred during the execution of the ... context, String verb, String url, String filePath) +104 ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How do you get ECONNRESET on recv?
    ... UX 11 Pa RISC that sends a SOAP request via sendto a webservice ... network issue between the client and server. ... Solaris and Windows and have never experienced this issue. ...
    (comp.unix.programmer)
  • Adding a parameter to the SOAP Header?
    ... that gets request from both a Windows UI and a WebUI. ... in my web service that says "WIN" or "WEB" depending on where it came ... I would like to somehow add a parameter to the webservice context (or ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading