public static void Main(string[] args) { _endpoint = args [0]; Console.WriteLine ("Fetching the WSDL for service: " + _endpoint); HttpWebRequest req = (HttpWebRequest)WebRequest.Create (_endpoint + "?WSDL"); XmlDocument wsdlDoc = new XmlDocument (); using (StreamReader rdr = new StreamReader(req.GetResponse().GetResponseStream())) wsdlDoc.LoadXml (rdr.ReadToEnd ()); _wsdl = new WSDL (wsdlDoc); Console.WriteLine ("Fetched and loaded the web service description."); foreach (SoapService service in _wsdl.Services) { FuzzService (service); } }
public static void Main(string[] args) { _endpoint = args [0]; Console.WriteLine("Fetching the WSDL for service: " + _endpoint); HttpWebRequest req = (HttpWebRequest)WebRequest.Create(_endpoint + "?WSDL"); XmlDocument wsdlDoc = new XmlDocument(); using (StreamReader rdr = new StreamReader(req.GetResponse().GetResponseStream())) wsdlDoc.LoadXml(rdr.ReadToEnd()); _wsdl = new WSDL(wsdlDoc); Console.WriteLine("Fetched and loaded the web service description."); foreach (SoapService service in _wsdl.Services) { FuzzService(service); } }