Example #1
0
        public object[] GetByOperationId(GetByOperationData gbo)
        {
            try
            {
                using (client = new OperationService.OperationPortTypeClient(this.OperationsBinding, this.OperationsEndpoint))
                {
                    HeaderHttpExtension.AddCustomHeaderUserInformation(new OperationContextScope(client.InnerChannel), this.Headers);

                    object[] ret = client.Get(gbo.getIDSITE(), gbo.getIDTRANSACTIONSIT());

                    return ret;
                }
            }
            catch (Exception ex)
            {
                //ExecuteResponse response = new ExecuteResponse(0, ex.Message, "", "", null);
                object[] ret = new object[1];
                ret[0] = ex;
                return ret;
            }
        }
Example #2
0
 public static GetByOperationData initGetData()
 {
     GetByOperationData data = new GetByOperationData(MERCHANT, "hd_soap_09");
     return data;
 }
Example #3
0
 public object[] get(GetByOperationData data)
 {
     return op.GetByOperationId(data);
 }