My webservice gives expected output when run in debugger in visual studio. I hosted my service in IIS 6.0. When I browse to
http://mywebserver/Service1/Service1.svc,
it shows the test page with link to t needs to ewsdl. But when I send a
SOAP Request to the service I get error. As suggested I am copying
headers from Fiddler.
Please suggest what needs to be corrected, or if you need more
information for troubleshooting. Thanks.
POST /Service1 HTTP/1.1
Content-Type: text/xml; Charset=UTF-8
User-Agent: XML Spy
SOAPAction: "http://tempuri.org/IService1/GetOrderMsgInfo"
Host: MyWebServer
Content-Length: 414
Connection: Keep-Alive
Pragma: no-cache
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<m:GetOrderMsgInfo xmlns:m="http://tempuri.org/">
<m:caseNum>HIS10-001946</m:caseNum>
</m:GetOrderMsgInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 405 Method Not Allowed
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 1564
Content-Type: text/html
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Date: Sun, 03 Oct 2010 18:17:15 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page cannot be displayed</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
BODY { font: 8pt/12pt verdana }
H1 { font: 13pt/15pt verdana }
H2 { font: 8pt/12pt verdana }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>The page cannot be displayed</h1>
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe that this request should be allowed.</li>
<li>Make sure that the Web site address displayed in the address
bar of your browser is spelled and formatted correctly. </li>
</ul>
<h2>HTTP Error 405 - The HTTP verb used to access this page is not
allowed.<br>Internet Information Services (IIS)</h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and
<b>405</b>.</li>
<li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
and search for topics titled <b>Setting Application
Mappings</b>, <b>Securing Your Site with Web Site
Permissions</b>, and <b>About Custom Error
Messages</b>.</li>
</ul>
</TD></TR></TABLE></BODY></HTML>
------------------------------------------------------------------