एएसपीएक्स पेज से सर्वर में होस्ट किए गए एक webservice को कॉल करते समय त्रुटि "रिक्त प्रतिक्रिया के साथ विफल विफल" हो रही है। मेरे पृष्ठ"वेब सेवा को कॉल करते समय अनुरोध एक खाली प्रतिक्रिया के साथ विफल रहा"
try {
HttpWebRequest request1 = (HttpWebRequest)WebRequest.Create("https://login.erp.com/rodeprovisioning/provisioning.asmx");
request1.Accept = "text/xml";
request1.Method = "POST";
WebProxy proxyObject = new System.Net.WebProxy("http://10.0.0.1:8080/", true);
request1.Proxy.Credentials = CredentialCache.DefaultCredentials;
string sReturnValue = null;
if (string.IsNullOrEmpty(Session["Test"])) {
sReturnValue = callservice();
if (sReturnValue == "Success") {
ErrorLabel.Text = sReturnValue;
Session["Test"] = "True";
} else {
ErrorLabel.Text = sReturnValue;
}
}
} catch (Exception ex) {
}
और web.config में
<system.net>
<authenticationModules>
<add type = "System.Net.DigestClient" />
<add type = "System.Net.NegotiateClient" />
<add type = "System.Net.KerberosClient" />
<add type = "System.Net.NtlmClient" />
<add type = "System.Net.BasicClient" />
</authenticationModules>
<connectionManagement>
<add address = "*" maxconnection = "2" />
</connectionManagement>
<defaultProxy>
<proxy usesystemdefault="True" bypassonlocal = "True" />
</defaultProxy>
<webRequestModules>
<add prefix = "http" type = "System.Net.HttpRequestCreator" />
<add prefix = "https" type = "System.Net.HttpRequestCreator" />
<add prefix = "file" type = "System.Net.FileWebRequestCreator" />
</webRequestModules>
</system.net>
उसे एक फ़ायरवॉल problem.Any सुझाव है में
कोड?
क्या आपने HTTP स्तर पर क्या हो रहा है यह जानने के लिए वायरशर्क का उपयोग करने का प्रयास किया है? –
कोई जोन मैं नहीं हूं ... – bala3569
तो मेरा सुझाव है कि आपका अगला कदम होना चाहिए। क्लाइंट को डीबग करने का प्रयास करने में कोई बात नहीं है यदि यह सर्वर-साइड इश्यू है या इसके विपरीत। –