Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I setup a .NET 4.0 web service to be available to other machines on my local network?
    primarykey
    data
    text
    <p>I have coded a web service using the .Net 4.0 framework and I can successfully invoke it using a test client (SoapUI) on the local machine after publishing the application to my website in IIS. The generated stubs and WSDL are accessible from the local machine and from other machines on the network, however I can not make posts to the WS endpoint from another machine; I can post to the WS endpoint from the local machine and get the expected response. When I try to post to my WS endpoint, I get a HTTP 400 error - "HTTP Error 400. The request is badly formed " in HTML. Is this a problem with my IIS configuration or access permissions on my application files?</p> <p>Note: Java developer here, in the process of learning .Net.</p> <p>Edit: I have disabled Windows Firewall and I have the website bindings IP Address set to "All Unassigned" in the IIS Manager. </p> <p>Edit: Request/Response</p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:add="http://mymachinenamewashere/SeflAddressService/AddressService.asmx"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;add:CheckAddress&gt; &lt;add:chkAddress&gt; &lt;add:chkCompanyName&gt;XXX&lt;/add:chkCompanyName&gt; &lt;add:chkStreet1&gt;420 Davega Rd.&lt;/add:chkStreet1&gt; &lt;add:chkStreet2/&gt; &lt;add:chkCity&gt;Lexington&lt;/add:chkCity&gt; &lt;add:chkState&gt;SC&lt;/add:chkState&gt; &lt;add:chkZipcode5&gt;29169&lt;/add:chkZipcode5&gt; &lt;add:chkZipcode4/&gt; &lt;add:chkSuite/&gt; &lt;/add:chkAddress&gt; &lt;/add:CheckAddress&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Bad Request&lt;/TITLE&gt; &lt;META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"&gt;&lt;/HEAD&gt; &lt;BODY&gt;&lt;h2&gt;Bad Request&lt;/h2&gt; &lt;hr&gt;&lt;p&gt;HTTP Error 400. The request is badly formed.&lt;/p&gt; &lt;/BODY&gt;&lt;/HTML&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload