Personal Information
Overview
A simple form demonstrating how to set and update a customer's main account information, such as their name, address and contact information, using the web service.
Namespaces
The following sample requires these namespaces:
using ExigoWebService;
Exigo API Authentication
The following sample accesses the web service using the ExigoApi object:
return new ExigoApi { ApiAuthenticationValue = new ApiAuthentication { LoginName = exigoAPILoginName, Password = exigoAPIPassword, Company = exigoAPICompany } };
jQuery
We use jQuery UI Themes for styling.
<link href="<%=this.ResolveUrl("../../Themes/start/jquery-ui.custom.css") %>" rel="stylesheet" type="text/css" /> <script src="<%=this.ResolveUrl("../../Scripts/jquery.min.js") %>" type="text/javascript"></script> <script src="<%=this.ResolveUrl("../../Scripts/jquery-ui.min.js") %>" type="text/javascript"></script>
Populate The Country/Region Dropdown Menus
We use the webservice GetCountryRegions method to request a list of countries.
// Get the data var response = Exigo.GetCountryRegions(new GetCountryRegionsRequest() { CountryCode = countryCode });
The webservice RegionResponse method returns the requested regions.
// Populate the new regions into the dropdown foreach (RegionResponse r in response.Regions) { regionList.Items.Add(new ListItem() { Value = r.RegionCode, Text = r.RegionName }); } }