Exception: System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'. The request failed with the error message: -- Content-Type : text/xml #I have added this line in the perl web service like print "\nContent-type : text/xml\n\n" to check what exactly it returns. #################################################################### HTTP/1.1 200 OK Content-Length: 1468 Content-Type: text/xml; charset=utf-8 SOAPServer: SOAP::Lite/Perl/1.17 1 Test ticket for edit issue. 2 Test ticket for edit issue2. 3 Test ticket for edit issue3. 4 Test ticket for edit issue4. 5 Test ticket for edit issue5. --. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolea n asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Search.MRWebServices__search(String usr, String pw, String extraInfo, String query) at main.Main()