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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==

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

    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:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
    xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
  • Mr. Arnold

    #2
    Re: Service Client Receives &quot;Bad Request (Invalid Header Name)&quot; Respon


    "EagleRed@HighF lyingBirds.com"
    <EagleRedHighFl yingBirdscom@di scussions.micro soft.comwrote in message
    news:EFFA12D6-C314-4209-9AE9-0570907755C5@mi crosoft.com...

    <snipped>
    >
    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>
    >


    Maybe, you need to start looking at the raw HTML/data that's being sent.


    Comment

    Working...