1 year ago

#265867

test-img

Dovannys

Error. The requested URL was rejected. Please consult with your administrator. When calling wsdl service

I am trying to connect to a wsdl service trought my network to the internet, and getting The requested URL was rejected. Please consult with your administrator. Your support ID is: 13403249542993459449. This is inside .NET Application. That was worked fine until now.

When testing the service in SOAPUI is OK, but not in the calling service on IIS.

Code used to call service:

HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(urlconfig);
                byte[] bytes = new ASCIIEncoding().GetBytes(s);
                httpWebRequest.AllowWriteStreamBuffering = false;
                httpWebRequest.Method = "POST";
                httpWebRequest.ContentType = "text/xml; charset=UTF-8";
                httpWebRequest.ContentLength = (long)bytes.Length;
                httpWebRequest.Headers.Add("SOAPAction", "");
                ServicePointManager.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback)((sender1, certificate, chain, sslPolicyErrors) => true);
                using (Stream requestStream = httpWebRequest.GetRequestStream())
                    requestStream.Write(bytes, 0, bytes.Length);
                string end = new StreamReader(httpWebRequest.GetResponse().GetResponseStream()).ReadToEnd();

Any suggestion?

iis

windows-firewall

0 Answers

Your Answer

Accepted video resources