我有一个调用外部网络服务的Web应用程序。我想向此外部方发送SOAP请求。请告诉我如何做到这一点。
我正在使用带有C#的ASP.net
UsernameToken userToken = new UsernameToken(strUserName, strPWD, PasswordOption.SendPlainText);
SoapContext requestContext = TPService.RequestSoapContext;
requestContext.Security.Tokens.Add(userToken);
TPService.Timeout = 100000000;
requestContext.Security.Timestamp.TtlInSeconds = 60;
List<employeeLeave> ObjCrewLeavesList= new List<employeeLeave>();
employeeLeavesRS ObjcrewLeaveRS = TPService.getEmployeeLeaves(ObjLeaveRQ);