/// <remarks/> public void validatePostalAsync(ValidatePostalRequest ValidatePostalRequest, object userState) { if ((this.validatePostalOperationCompleted == null)) { this.validatePostalOperationCompleted = new System.Threading.SendOrPostCallback(this.OnvalidatePostalOperationCompleted); } this.InvokeAsync("validatePostal", new object[] { ValidatePostalRequest}, this.validatePostalOperationCompleted, userState); }
public ValidatePostalReply validatePostal([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://fedex.com/ws/cnty/v4")] ValidatePostalRequest ValidatePostalRequest) { object[] results = this.Invoke("validatePostal", new object[] { ValidatePostalRequest }); return((ValidatePostalReply)(results[0])); }
private static ValidatePostalRequest CreateValidatePostalRequest() { // Build the PostalCodeInquiryRequest ValidatePostalRequest request = new ValidatePostalRequest(); // request.WebAuthenticationDetail = new WebAuthenticationDetail(); request.WebAuthenticationDetail.UserCredential = new WebAuthenticationCredential(); request.WebAuthenticationDetail.UserCredential.Key = "V4bqDWokgOVi4qsy"; // Replace "XXX" with the Key request.WebAuthenticationDetail.UserCredential.Password = "******"; // Replace "XXX" with the Password if (usePropertyFile()) //Set values from a file for testing purposes { request.WebAuthenticationDetail.UserCredential.Key = getProperty("key"); request.WebAuthenticationDetail.UserCredential.Password = getProperty("password"); } // request.ClientDetail = new ClientDetail(); request.ClientDetail.AccountNumber = "510087500"; // Replace "XXX" with the client's account number request.ClientDetail.MeterNumber = "118687440"; // Replace "XXX" with the client's meter number if (usePropertyFile()) //Set values from a file for testing purposes { request.ClientDetail.AccountNumber = getProperty("accountnumber"); request.ClientDetail.MeterNumber = getProperty("meternumber"); } // request.TransactionDetail = new TransactionDetail(); request.TransactionDetail.CustomerTransactionId = "***Validate Postal Service Request using VC#***"; // The client will get the same value back in the response // request.Version = new VersionId(); // Creates the Version element with all child elements populated from the wsdl // request.CarrierCode = CarrierCodeType.FDXE; request.CarrierCodeSpecified = true; request.Address = new Address(); //request.Address.PostalCode = "32810"; //request.Address.CountryCode = "US"; request.Address.PostalCode = "M6K1A7"; request.Address.City = "Toronto"; request.Address.StateOrProvinceCode = "ON"; request.Address.StreetLines = new string[]{ "135 Yonge St."}; request.Address.CountryCode = "CA"; return request; }
private static ValidatePostalRequest CreateValidatePostalRequest() { // Build the PostalCodeInquiryRequest ValidatePostalRequest request = new ValidatePostalRequest(); // request.WebAuthenticationDetail = new WebAuthenticationDetail(); request.WebAuthenticationDetail.UserCredential = new WebAuthenticationCredential(); request.WebAuthenticationDetail.UserCredential.Key = "XXX"; // Replace "XXX" with the Key request.WebAuthenticationDetail.UserCredential.Password = "******"; // Replace "XXX" with the Password if (usePropertyFile()) //Set values from a file for testing purposes { request.WebAuthenticationDetail.UserCredential.Key = getProperty("key"); request.WebAuthenticationDetail.UserCredential.Password = getProperty("password"); } // request.ClientDetail = new ClientDetail(); request.ClientDetail.AccountNumber = "XXX"; // Replace "XXX" with the client's account number request.ClientDetail.MeterNumber = "XXX"; // Replace "XXX" with the client's meter number if (usePropertyFile()) //Set values from a file for testing purposes { request.ClientDetail.AccountNumber = getProperty("accountnumber"); request.ClientDetail.MeterNumber = getProperty("meternumber"); } // request.TransactionDetail = new TransactionDetail(); request.TransactionDetail.CustomerTransactionId = "***Validate Postal Service Request using VC#***"; // The client will get the same value back in the response // request.Version = new VersionId(); // Creates the Version element with all child elements populated from the wsdl // request.CarrierCode = CarrierCodeType.FDXE; request.CarrierCodeSpecified = true; request.Address = new Address(); request.Address.PostalCode = "32810"; request.Address.CountryCode = "US"; return request; }
/// <remarks/> public void validatePostalAsync(ValidatePostalRequest ValidatePostalRequest) { this.validatePostalAsync(ValidatePostalRequest, null); }
/// <remarks/> public void validatePostalAsync(ValidatePostalRequest ValidatePostalRequest) { this.validatePostalAsync(ValidatePostalRequest, null); }