I have 3 servers iis in production and homologation everything works ok. But in a new server I just created, installing all the necessary tools to run ASP.NET and putting the source code of a webservice in C # as a new site, returns me a Bad Request through SoapUI. I used Fiddler to capture this information. If you use the test form it works.
I put it in Debug mode on the new server and when making call before entering the method errors occur
- A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
- A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
- A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
- A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
Do you have any way to know the reason for the Bad Request?
Request:
POST http://localhost:8095/WebService/WebService.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.host.com.br/GetMotoristaValidoPeloCPF"
Content-Length: 426
Host: localhost:8095
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ang="http://www.host.com.br/">
<soapenv:Header/>
<soapenv:Body>
<ang:GetMotoristaValidoPeloCPF>
<ang:usuario>user</ang:usuario>
<ang:senha>senha</ang:senha>
<ang:cpf>62710966972</ang:cpf>
</ang:GetMotoristaValidoPeloCPF>
</soapenv:Body>
</soapenv:Envelope>
Response:
HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 04 Feb 2016 16:43:35 GMT
Content-Length: 0