0

This method will take in as parameter an XML document, URL, and the SOAP action and make a request to a web service. HttpClient classes to make the request to the web service.

please help.

using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml;

namespace HttpClientStatus
{
class Program
{
    static async Task Main(string[] args)
    {
        using var client = new HttpClient();

        XmlDocument SOAPReqBody = new XmlDocument();

        SOAPReqBody.Load("C://Users//gmzmdz//Desktop//course.xml");
        var result = await client.GetAsync("http://webcode.me");
        Console.WriteLine(result.StatusCode);
    }
}

}

0 Answers0