コード例 #1
0
 /**
  * Get a list of available services by postcode
  **/
 public ServiceType[] GetDomesticServicesByPostcodeMethod(string postcode)
 {
     ServiceType[] availableServices = null;
     try
     {
         var Service = new ShippingService();
         Service = GetAuthoriseService(Service);
         // Call the GetDomesticServicesByPostcode soap service
         availableServices = Service.GetDomesticServicesByPostcode(postcode);
     }
     catch (Exception soapEx)
     {
         // Throw the generated exception up.
         throw soapEx;
     }
     return(availableServices);
 }