IWsEndUserSetAssistanceQuotationAcceptance Method |
Note: This API is now obsolete.
Namespace: Aruba.Cloud.WsEndUser
[ObsoleteAttribute("No more supported, check knowledge base for more information.")] [OperationContractAttribute] WsResult SetAssistanceQuotationAcceptance( int quotationID, AssistanceRequestQuotationAcceptanceStatus status )
Exception | Condition |
---|---|
NotSupportedException | No more supported, check knowledge base for more information |
/// IWsEndUser.SetAssistanceQuotationAcceptance Method (c# .NET) public static string SetAssistanceQuotationAcceptance(WsEndUserClient client, int quotationId, AssistanceRequestQuotationAcceptanceStatus status) { //specify the account login details client.ClientCredentials.UserName.UserName = "ARU-0000"; client.ClientCredentials.UserName.Password = "0123456789"; StringBuilder stringBuilder = new StringBuilder(); try { //call method SetAssistanceQuotationAcceptance, //obtaining a WsResult item WsResult result = client.SetAssistanceQuotationAcceptance(quotationId, status); //if the call is not successful, re-run the error indicating the message if (result.Success) { // print the result code and message stringBuilder.Append("code: "); stringBuilder.Append(result.ResultCode); stringBuilder.Append(" - message: "); stringBuilder.Append(result.ResultMessage); } else { throw new ApplicationException(result.ResultMessage); } } catch (Exception ex) { // re-run the error throw new ApplicationException(ex.Message); } return stringBuilder.ToString(); }