Chào mọi người, em không rành về c#. Nay e có task về C# mong mọi người giúp đỡ em.
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://dummyurl.com/", RequestNamespace = "http://dummyurl.com/", ResponseNamespace = "http://dummyurl.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string GetStatus(string Username, string Password, string EndSystemUser) {
object[] results = this.Invoke("GetStatus", new object[] {
Username,
Password,
EndSystemUser});
return ((string)(results[0]));
}
Đây là 1 đoạn code trên StackOverFlow (https://stackoverflow.com/questions/54405357/can-anyone-tell-me-what-soapdocumentmethodattribute-does)
Em không biết cách thức gọi hàm của nó ngay chỗ “this.Invoke” rồi gọi 1 String GetStatus thì hàm này sẽ làm những gì? Luồng xử lý sẽ như thế nào
Em có thể chuyển code này thành js để viết dễ nhìn hơn được không? Nếu có cho em xin cách viết đó. Em xin cảm ơn