asp.net core consume web Service
Budget: $30 – $250 USD
currently i have a code that is working fine in asp.net and i want to shift the code to asp.net core 6
public partial class ClientAPI : SoapHttpClientProtocol
{
static readonly string BaseURL = ServicePath;
static readonly string CertificatePath = pathofcertificate;
static readonly string CertificatePass = "CertificatePass ";
public ClientAPI()
{
base.Url = BaseURL;
base.Proxy = new WebProxy(ProxyIP, false);
X509Certificate2 x509 = new X509Certificate2(CertificatePath, CertificatePass, X509KeyStorageFlags.MachineKeySet);
this.ClientCertificates.Add(x509);
}
[SoapDocumentMethod("http://www .dddd", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: XmlElement("sendOTPResponse", Namespace = "http://www. NameSpace URL")]
public sendOTPResponse sendOTPV3([XmlElement("sendOTPV3", Namespace = "http://www.URL")] sendOTPV3 sendOTPV31)
{
object[] results = this.Invoke("sendOTPV3", new object[] {
sendOTPV31});
return ((sendOTPResponse)(results[0]));
}
}
public partial class ClientAPI : SoapHttpClientProtocol
{
static readonly string BaseURL = ServicePath;
static readonly string CertificatePath = pathofcertificate;
static readonly string CertificatePass = "CertificatePass ";
public ClientAPI()
{
base.Url = BaseURL;
base.Proxy = new WebProxy(ProxyIP, false);
X509Certificate2 x509 = new X509Certificate2(CertificatePath, CertificatePass, X509KeyStorageFlags.MachineKeySet);
this.ClientCertificates.Add(x509);
}
[SoapDocumentMethod("http://www .dddd", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: XmlElement("sendOTPResponse", Namespace = "http://www. NameSpace URL")]
public sendOTPResponse sendOTPV3([XmlElement("sendOTPV3", Namespace = "http://www.URL")] sendOTPV3 sendOTPV31)
{
object[] results = this.Invoke("sendOTPV3", new object[] {
sendOTPV31});
return ((sendOTPResponse)(results[0]));
}
}