コード例 #1
0
        public returntype process_wsdl(argtype args)
        {
            object[] results = this.Invoke("process_wsdl", new object[] {
                args
            });

            return((returntype)(results[0]));
        }
コード例 #2
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args, object userState)
 {
     if ((this.process_wsdlOperationCompleted == null))
     {
         this.process_wsdlOperationCompleted = new System.Threading.SendOrPostCallback(this.Onprocess_wsdlOperationCompleted);
     }
     this.InvokeAsync("process_wsdl", new object[] {
         args
     }, this.process_wsdlOperationCompleted, userState);
 }
コード例 #3
0
ファイル: Reference.cs プロジェクト: 0huah0/csharp-samples
 /// <remarks/>
 public void process_wsdlAsync(argtype args, object userState) {
     if ((this.process_wsdlOperationCompleted == null)) {
         this.process_wsdlOperationCompleted = new System.Threading.SendOrPostCallback(this.Onprocess_wsdlOperationCompleted);
     }
     this.InvokeAsync("process_wsdl", new object[] {
                 args}, this.process_wsdlOperationCompleted, userState);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: 0huah0/csharp-samples
 /// <remarks/>
 public void process_wsdlAsync(argtype args) {
     this.process_wsdlAsync(args, null);
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: 0huah0/csharp-samples
 public returntype process_wsdl(argtype args) {
     object[] results = this.Invoke("process_wsdl", new object[] {
                 args});
     return ((returntype)(results[0]));
 }
コード例 #6
0
        public static argtype TranslateToSfgRequest(SubscriptionServiceRequest ahRequest)
        {
            EventLogger.LogEvent("ENTERING -> SFGWrapper.SubOrderInsertTranslators.TranslateToSfgRequest()");
            argtype sfgRequest = new argtype();

            #region readonly properties
            sfgRequest.org = ahRequest.Org;
            sfgRequest.test_mode = ahRequest.TestMode ? "Y" : "N";
            sfgRequest.app_version = ahRequest.AppVersion;
            sfgRequest.program_type_id = ahRequest.ProgramTypeId;
            #endregion

            sfgRequest.payment_type = ahRequest.CreditCardData.PaymentType;
            sfgRequest.program_id = ahRequest.PublicationCode;
            sfgRequest.term = ahRequest.SubscriptionLength;
            sfgRequest.price = ahRequest.CreditCardData.Price.ToString("F");
            sfgRequest.postage = ahRequest.CreditCardData.ShippingHandling.ToString("F");
            sfgRequest.tax = ahRequest.CreditCardData.Tax.ToString("F");
            sfgRequest.amount_paid = ahRequest.CreditCardData.AmountPaid.ToString("F");
            sfgRequest.key_code = ahRequest.KeyCode;
            sfgRequest.cc_route_no = ahRequest.CreditCardData.VerifoneRoutingId;
            sfgRequest.refresh_customer = ahRequest.RefreshCustomer ? "Y" : "N";

            #region member data
            sfgRequest.customer_number = ahRequest.SubscribingMember.MemberId;
            sfgRequest.c_title = ahRequest.SubscribingMember.Salutation;
            sfgRequest.c_first = ahRequest.SubscribingMember.FirstName;
            sfgRequest.c_mi = ahRequest.SubscribingMember.MiddleInitial;
            sfgRequest.c_last = ahRequest.SubscribingMember.LastName;
            sfgRequest.c_suffix = ahRequest.SubscribingMember.Suffix;
            sfgRequest.c_professional_title = ahRequest.SubscribingMember.ProfessionalTitle;
            sfgRequest.c_business_name = ahRequest.SubscribingMember.Address.BusinessName;
            sfgRequest.c_add1 = ahRequest.SubscribingMember.Address.Address1;
            sfgRequest.c_add2 = ahRequest.SubscribingMember.Address.Address2;
            sfgRequest.c_add3 = ahRequest.SubscribingMember.Address.Address3;
            sfgRequest.c_city = ahRequest.SubscribingMember.Address.City;
            sfgRequest.c_st = ahRequest.SubscribingMember.Address.State;
            sfgRequest.c_zip = ahRequest.SubscribingMember.Address.PostalCode;
            sfgRequest.c_country = ahRequest.SubscribingMember.Address.Country;
            sfgRequest.c_phone = ahRequest.SubscribingMember.Address.Phone;
            sfgRequest.c_fax = ahRequest.SubscribingMember.Address.Fax;
            sfgRequest.c_altcity = ahRequest.SubscribingMember.Address.AltCity;
            sfgRequest.c_email = ahRequest.SubscribingMember.Email;
            sfgRequest.c_optin = ahRequest.SubscribingMember.OptIn ? "Y" : "N";

            #endregion

            #region gift member data
            sfgRequest.gift_flag = ahRequest.GiftFlag ? "Y" : "N";
            sfgRequest.gift_number = ahRequest.GiftRecipient.MemberId;
            sfgRequest.g_title = ahRequest.GiftRecipient.Salutation;
            sfgRequest.g_first = ahRequest.GiftRecipient.FirstName;
            sfgRequest.g_mi = ahRequest.GiftRecipient.MiddleInitial;
            sfgRequest.g_last = ahRequest.GiftRecipient.LastName;
            sfgRequest.g_suffix = ahRequest.GiftRecipient.Suffix;
            sfgRequest.g_professional_title = ahRequest.GiftRecipient.ProfessionalTitle;
            sfgRequest.g_business_name = ahRequest.GiftRecipient.Address.BusinessName;
            sfgRequest.g_add1 = ahRequest.GiftRecipient.Address.Address1;
            sfgRequest.g_add2 = ahRequest.GiftRecipient.Address.Address2;
            sfgRequest.g_add3 = ahRequest.GiftRecipient.Address.Address3;
            sfgRequest.g_city = ahRequest.GiftRecipient.Address.City;
            sfgRequest.g_st = ahRequest.GiftRecipient.Address.State;
            sfgRequest.g_zip = ahRequest.GiftRecipient.Address.PostalCode;
            sfgRequest.g_country = ahRequest.GiftRecipient.Address.Country;
            sfgRequest.g_phone = ahRequest.GiftRecipient.Address.Phone;
            sfgRequest.g_email = ahRequest.GiftRecipient.Email;
            sfgRequest.g_optin = ahRequest.GiftRecipient.OptIn ? "Y" : "N";
            #endregion

            EventLogger.LogEvent("LEAVING -> SFGWrapper.SubOrderInsertTranslators.TranslateToSfgRequest()");
            return sfgRequest;
        }
コード例 #7
0
 /// <remarks/>
 public void process_wsdlAsync(argtype args)
 {
     this.process_wsdlAsync(args, null);
 }