public void DoTerminate_020110(Form1 frm) { LETSIRTE_Service_020110 ws = new LETSIRTE_Service_020110(frm.GetSessionId(), frm.Secret); frm.Log("Making Terminate Request"); TerminateRequestType terminateRequest = new TerminateRequestType(); terminateRequest.RequestID = frm.GetNextRequestId(); terminateRequest.SessionID = frm.GetSessionId(); TerminateResponseType terminateResponse = ws.Terminate(terminateRequest); string responseText = ""; responseText += "\tErrorCode=" + terminateResponse.ErrorCode + "\r\n"; responseText += "\tErrorString=" + terminateResponse.ErrorString + "\r\n"; responseText += "\tErrorDiagnostic=" + terminateResponse.ErrorDiagnostic + "\r\n"; responseText += "\tRequestID=" + terminateResponse.RequestID + "\r\n"; responseText += "\tSessionID=" + terminateResponse.SessionID + "\r\n"; responseText += "\tSuccessIndicator=" + terminateResponse.SuccessIndicator + "\r\n"; frm.Log("Server responded with:\r\n" + responseText); }
public void DoTerminate_020110(Form1 frm) { LETSIRTE_Service_020110 ws = new LETSIRTE_Service_020110(frm.GetSessionId(),frm.Secret); frm.Log("Making Terminate Request"); TerminateRequestType terminateRequest = new TerminateRequestType(); terminateRequest.RequestID = frm.GetNextRequestId(); terminateRequest.SessionID = frm.GetSessionId(); TerminateResponseType terminateResponse = ws.Terminate(terminateRequest); string responseText = ""; responseText += "\tErrorCode=" + terminateResponse.ErrorCode + "\r\n"; responseText += "\tErrorString=" + terminateResponse.ErrorString + "\r\n"; responseText += "\tErrorDiagnostic=" + terminateResponse.ErrorDiagnostic + "\r\n"; responseText += "\tRequestID=" + terminateResponse.RequestID + "\r\n"; responseText += "\tSessionID=" + terminateResponse.SessionID + "\r\n"; responseText += "\tSuccessIndicator=" + terminateResponse.SuccessIndicator + "\r\n"; frm.Log("Server responded with:\r\n" + responseText); }