/IronPython_Main/Languages/IronPython/Samples/WinFormsMapPoint/WinForms/MapPointWebServiceHelper/Web References/net.mappoint.staging/Reference.cs
C# | 6076 lines | 4419 code | 1010 blank | 647 comment | 148 complexity | 3a10a2e02560dfe9fbbfdcad590b6832 MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
Large files files are truncated, but you can click here to view the full file
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:2.0.50727.3053
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
-
- //
- // This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.3053.
- //
- #pragma warning disable 1591
-
- namespace MapPointWebServiceProject.net.mappoint.staging {
- using System.Diagnostics;
- using System.Web.Services;
- using System.ComponentModel;
- using System.Web.Services.Protocols;
- using System;
- using System.Xml.Serialization;
-
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Web.Services.WebServiceBindingAttribute(Name="CommonServiceSoap", Namespace="http://s.mappoint.net/mappoint-30/")]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(MapPointConstants))]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(FindResult[]))]
- public partial class CommonServiceSoap : System.Web.Services.Protocols.SoapHttpClientProtocol {
-
- private CustomerInfoHeader customerInfoHeaderValueField;
-
- private UserInfoHeader userInfoHeaderValueField;
-
- private System.Threading.SendOrPostCallback GetVersionInfoOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetCountryRegionInfoOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetEntityTypesOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetDataSourceInfoOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetGreatCircleDistancesOperationCompleted;
-
- private bool useDefaultCredentialsSetExplicitly;
-
- /// <remarks/>
- public CommonServiceSoap() {
- this.Url = "http://findv3.staging.mappoint.net/Find-30/Common.asmx";
- if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
- this.UseDefaultCredentials = true;
- this.useDefaultCredentialsSetExplicitly = false;
- }
- else {
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- public CustomerInfoHeader CustomerInfoHeaderValue {
- get {
- return this.customerInfoHeaderValueField;
- }
- set {
- this.customerInfoHeaderValueField = value;
- }
- }
-
- public UserInfoHeader UserInfoHeaderValue {
- get {
- return this.userInfoHeaderValueField;
- }
- set {
- this.userInfoHeaderValueField = value;
- }
- }
-
- public new string Url {
- get {
- return base.Url;
- }
- set {
- if ((((this.IsLocalFileSystemWebService(base.Url) == true)
- && (this.useDefaultCredentialsSetExplicitly == false))
- && (this.IsLocalFileSystemWebService(value) == false))) {
- base.UseDefaultCredentials = false;
- }
- base.Url = value;
- }
- }
-
- public new bool UseDefaultCredentials {
- get {
- return base.UseDefaultCredentials;
- }
- set {
- base.UseDefaultCredentials = value;
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- /// <remarks/>
- public event GetVersionInfoCompletedEventHandler GetVersionInfoCompleted;
-
- /// <remarks/>
- public event GetCountryRegionInfoCompletedEventHandler GetCountryRegionInfoCompleted;
-
- /// <remarks/>
- public event GetEntityTypesCompletedEventHandler GetEntityTypesCompleted;
-
- /// <remarks/>
- public event GetDataSourceInfoCompletedEventHandler GetDataSourceInfoCompleted;
-
- /// <remarks/>
- public event GetGreatCircleDistancesCompletedEventHandler GetGreatCircleDistancesCompleted;
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetVersionInfo", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public VersionInfo[] GetVersionInfo() {
- object[] results = this.Invoke("GetVersionInfo", new object[0]);
- return ((VersionInfo[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetVersionInfo(System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetVersionInfo", new object[0], callback, asyncState);
- }
-
- /// <remarks/>
- public VersionInfo[] EndGetVersionInfo(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((VersionInfo[])(results[0]));
- }
-
- /// <remarks/>
- public void GetVersionInfoAsync() {
- this.GetVersionInfoAsync(null);
- }
-
- /// <remarks/>
- public void GetVersionInfoAsync(object userState) {
- if ((this.GetVersionInfoOperationCompleted == null)) {
- this.GetVersionInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetVersionInfoOperationCompleted);
- }
- this.InvokeAsync("GetVersionInfo", new object[0], this.GetVersionInfoOperationCompleted, userState);
- }
-
- private void OnGetVersionInfoOperationCompleted(object arg) {
- if ((this.GetVersionInfoCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetVersionInfoCompleted(this, new GetVersionInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetCountryRegionInfo", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public CountryRegionInfo[] GetCountryRegionInfo(int[] entityIDs) {
- object[] results = this.Invoke("GetCountryRegionInfo", new object[] {
- entityIDs});
- return ((CountryRegionInfo[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetCountryRegionInfo(int[] entityIDs, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetCountryRegionInfo", new object[] {
- entityIDs}, callback, asyncState);
- }
-
- /// <remarks/>
- public CountryRegionInfo[] EndGetCountryRegionInfo(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((CountryRegionInfo[])(results[0]));
- }
-
- /// <remarks/>
- public void GetCountryRegionInfoAsync(int[] entityIDs) {
- this.GetCountryRegionInfoAsync(entityIDs, null);
- }
-
- /// <remarks/>
- public void GetCountryRegionInfoAsync(int[] entityIDs, object userState) {
- if ((this.GetCountryRegionInfoOperationCompleted == null)) {
- this.GetCountryRegionInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCountryRegionInfoOperationCompleted);
- }
- this.InvokeAsync("GetCountryRegionInfo", new object[] {
- entityIDs}, this.GetCountryRegionInfoOperationCompleted, userState);
- }
-
- private void OnGetCountryRegionInfoOperationCompleted(object arg) {
- if ((this.GetCountryRegionInfoCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetCountryRegionInfoCompleted(this, new GetCountryRegionInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetEntityTypes", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public EntityType[] GetEntityTypes(string dataSourceName) {
- object[] results = this.Invoke("GetEntityTypes", new object[] {
- dataSourceName});
- return ((EntityType[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetEntityTypes(string dataSourceName, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetEntityTypes", new object[] {
- dataSourceName}, callback, asyncState);
- }
-
- /// <remarks/>
- public EntityType[] EndGetEntityTypes(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((EntityType[])(results[0]));
- }
-
- /// <remarks/>
- public void GetEntityTypesAsync(string dataSourceName) {
- this.GetEntityTypesAsync(dataSourceName, null);
- }
-
- /// <remarks/>
- public void GetEntityTypesAsync(string dataSourceName, object userState) {
- if ((this.GetEntityTypesOperationCompleted == null)) {
- this.GetEntityTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEntityTypesOperationCompleted);
- }
- this.InvokeAsync("GetEntityTypes", new object[] {
- dataSourceName}, this.GetEntityTypesOperationCompleted, userState);
- }
-
- private void OnGetEntityTypesOperationCompleted(object arg) {
- if ((this.GetEntityTypesCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetEntityTypesCompleted(this, new GetEntityTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetDataSourceInfo", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public DataSource[] GetDataSourceInfo(string[] dataSourceNames) {
- object[] results = this.Invoke("GetDataSourceInfo", new object[] {
- dataSourceNames});
- return ((DataSource[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetDataSourceInfo(string[] dataSourceNames, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetDataSourceInfo", new object[] {
- dataSourceNames}, callback, asyncState);
- }
-
- /// <remarks/>
- public DataSource[] EndGetDataSourceInfo(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((DataSource[])(results[0]));
- }
-
- /// <remarks/>
- public void GetDataSourceInfoAsync(string[] dataSourceNames) {
- this.GetDataSourceInfoAsync(dataSourceNames, null);
- }
-
- /// <remarks/>
- public void GetDataSourceInfoAsync(string[] dataSourceNames, object userState) {
- if ((this.GetDataSourceInfoOperationCompleted == null)) {
- this.GetDataSourceInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDataSourceInfoOperationCompleted);
- }
- this.InvokeAsync("GetDataSourceInfo", new object[] {
- dataSourceNames}, this.GetDataSourceInfoOperationCompleted, userState);
- }
-
- private void OnGetDataSourceInfoOperationCompleted(object arg) {
- if ((this.GetDataSourceInfoCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetDataSourceInfoCompleted(this, new GetDataSourceInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetGreatCircleDistances", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public double[] GetGreatCircleDistances(LatLong[] latLongs) {
- object[] results = this.Invoke("GetGreatCircleDistances", new object[] {
- latLongs});
- return ((double[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetGreatCircleDistances(LatLong[] latLongs, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetGreatCircleDistances", new object[] {
- latLongs}, callback, asyncState);
- }
-
- /// <remarks/>
- public double[] EndGetGreatCircleDistances(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((double[])(results[0]));
- }
-
- /// <remarks/>
- public void GetGreatCircleDistancesAsync(LatLong[] latLongs) {
- this.GetGreatCircleDistancesAsync(latLongs, null);
- }
-
- /// <remarks/>
- public void GetGreatCircleDistancesAsync(LatLong[] latLongs, object userState) {
- if ((this.GetGreatCircleDistancesOperationCompleted == null)) {
- this.GetGreatCircleDistancesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGreatCircleDistancesOperationCompleted);
- }
- this.InvokeAsync("GetGreatCircleDistances", new object[] {
- latLongs}, this.GetGreatCircleDistancesOperationCompleted, userState);
- }
-
- private void OnGetGreatCircleDistancesOperationCompleted(object arg) {
- if ((this.GetGreatCircleDistancesCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetGreatCircleDistancesCompleted(this, new GetGreatCircleDistancesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- public new void CancelAsync(object userState) {
- base.CancelAsync(userState);
- }
-
- private bool IsLocalFileSystemWebService(string url) {
- if (((url == null)
- || (url == string.Empty))) {
- return false;
- }
- System.Uri wsUri = new System.Uri(url);
- if (((wsUri.Port >= 1024)
- && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
- return true;
- }
- return false;
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Web.Services.WebServiceBindingAttribute(Name="FindServiceSoap", Namespace="http://s.mappoint.net/mappoint-30/")]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(MapPointConstants))]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(FindResult[]))]
- public partial class FindServiceSoap : System.Web.Services.Protocols.SoapHttpClientProtocol {
-
- private CustomerInfoFindHeader customerInfoFindHeaderValueField;
-
- private UserInfoFindHeader userInfoFindHeaderValueField;
-
- private System.Threading.SendOrPostCallback FindOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindAddressOperationCompleted;
-
- private System.Threading.SendOrPostCallback ParseAddressOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetLocationInfoOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindNearbyOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindByPropertyOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindByIDOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindNearRouteOperationCompleted;
-
- private System.Threading.SendOrPostCallback FindPolygonOperationCompleted;
-
- private bool useDefaultCredentialsSetExplicitly;
-
- /// <remarks/>
- public FindServiceSoap() {
- this.Url = "http://findv3.staging.mappoint.net/Find-30/FindService.asmx";
- if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
- this.UseDefaultCredentials = true;
- this.useDefaultCredentialsSetExplicitly = false;
- }
- else {
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- public CustomerInfoFindHeader CustomerInfoFindHeaderValue {
- get {
- return this.customerInfoFindHeaderValueField;
- }
- set {
- this.customerInfoFindHeaderValueField = value;
- }
- }
-
- public UserInfoFindHeader UserInfoFindHeaderValue {
- get {
- return this.userInfoFindHeaderValueField;
- }
- set {
- this.userInfoFindHeaderValueField = value;
- }
- }
-
- public new string Url {
- get {
- return base.Url;
- }
- set {
- if ((((this.IsLocalFileSystemWebService(base.Url) == true)
- && (this.useDefaultCredentialsSetExplicitly == false))
- && (this.IsLocalFileSystemWebService(value) == false))) {
- base.UseDefaultCredentials = false;
- }
- base.Url = value;
- }
- }
-
- public new bool UseDefaultCredentials {
- get {
- return base.UseDefaultCredentials;
- }
- set {
- base.UseDefaultCredentials = value;
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- /// <remarks/>
- public event FindCompletedEventHandler FindCompleted;
-
- /// <remarks/>
- public event FindAddressCompletedEventHandler FindAddressCompleted;
-
- /// <remarks/>
- public event ParseAddressCompletedEventHandler ParseAddressCompleted;
-
- /// <remarks/>
- public event GetLocationInfoCompletedEventHandler GetLocationInfoCompleted;
-
- /// <remarks/>
- public event FindNearbyCompletedEventHandler FindNearbyCompleted;
-
- /// <remarks/>
- public event FindByPropertyCompletedEventHandler FindByPropertyCompleted;
-
- /// <remarks/>
- public event FindByIDCompletedEventHandler FindByIDCompleted;
-
- /// <remarks/>
- public event FindNearRouteCompletedEventHandler FindNearRouteCompleted;
-
- /// <remarks/>
- public event FindPolygonCompletedEventHandler FindPolygonCompleted;
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/Find", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults Find(FindSpecification specification) {
- object[] results = this.Invoke("Find", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFind(FindSpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("Find", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFind(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindAsync(FindSpecification specification) {
- this.FindAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindAsync(FindSpecification specification, object userState) {
- if ((this.FindOperationCompleted == null)) {
- this.FindOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindOperationCompleted);
- }
- this.InvokeAsync("Find", new object[] {
- specification}, this.FindOperationCompleted, userState);
- }
-
- private void OnFindOperationCompleted(object arg) {
- if ((this.FindCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindCompleted(this, new FindCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindAddress", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindAddress(FindAddressSpecification specification) {
- object[] results = this.Invoke("FindAddress", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindAddress(FindAddressSpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindAddress", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindAddress(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindAddressAsync(FindAddressSpecification specification) {
- this.FindAddressAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindAddressAsync(FindAddressSpecification specification, object userState) {
- if ((this.FindAddressOperationCompleted == null)) {
- this.FindAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindAddressOperationCompleted);
- }
- this.InvokeAsync("FindAddress", new object[] {
- specification}, this.FindAddressOperationCompleted, userState);
- }
-
- private void OnFindAddressOperationCompleted(object arg) {
- if ((this.FindAddressCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindAddressCompleted(this, new FindAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/ParseAddress", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public Address ParseAddress(string inputAddress, string countryRegion) {
- object[] results = this.Invoke("ParseAddress", new object[] {
- inputAddress,
- countryRegion});
- return ((Address)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginParseAddress(string inputAddress, string countryRegion, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("ParseAddress", new object[] {
- inputAddress,
- countryRegion}, callback, asyncState);
- }
-
- /// <remarks/>
- public Address EndParseAddress(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((Address)(results[0]));
- }
-
- /// <remarks/>
- public void ParseAddressAsync(string inputAddress, string countryRegion) {
- this.ParseAddressAsync(inputAddress, countryRegion, null);
- }
-
- /// <remarks/>
- public void ParseAddressAsync(string inputAddress, string countryRegion, object userState) {
- if ((this.ParseAddressOperationCompleted == null)) {
- this.ParseAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnParseAddressOperationCompleted);
- }
- this.InvokeAsync("ParseAddress", new object[] {
- inputAddress,
- countryRegion}, this.ParseAddressOperationCompleted, userState);
- }
-
- private void OnParseAddressOperationCompleted(object arg) {
- if ((this.ParseAddressCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.ParseAddressCompleted(this, new ParseAddressCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/GetLocationInfo", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public Location[] GetLocationInfo(LatLong location, string dataSourceName, GetInfoOptions options) {
- object[] results = this.Invoke("GetLocationInfo", new object[] {
- location,
- dataSourceName,
- options});
- return ((Location[])(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginGetLocationInfo(LatLong location, string dataSourceName, GetInfoOptions options, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("GetLocationInfo", new object[] {
- location,
- dataSourceName,
- options}, callback, asyncState);
- }
-
- /// <remarks/>
- public Location[] EndGetLocationInfo(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((Location[])(results[0]));
- }
-
- /// <remarks/>
- public void GetLocationInfoAsync(LatLong location, string dataSourceName, GetInfoOptions options) {
- this.GetLocationInfoAsync(location, dataSourceName, options, null);
- }
-
- /// <remarks/>
- public void GetLocationInfoAsync(LatLong location, string dataSourceName, GetInfoOptions options, object userState) {
- if ((this.GetLocationInfoOperationCompleted == null)) {
- this.GetLocationInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLocationInfoOperationCompleted);
- }
- this.InvokeAsync("GetLocationInfo", new object[] {
- location,
- dataSourceName,
- options}, this.GetLocationInfoOperationCompleted, userState);
- }
-
- private void OnGetLocationInfoOperationCompleted(object arg) {
- if ((this.GetLocationInfoCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetLocationInfoCompleted(this, new GetLocationInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindNearby", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindNearby(FindNearbySpecification specification) {
- object[] results = this.Invoke("FindNearby", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindNearby(FindNearbySpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindNearby", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindNearby(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindNearbyAsync(FindNearbySpecification specification) {
- this.FindNearbyAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindNearbyAsync(FindNearbySpecification specification, object userState) {
- if ((this.FindNearbyOperationCompleted == null)) {
- this.FindNearbyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindNearbyOperationCompleted);
- }
- this.InvokeAsync("FindNearby", new object[] {
- specification}, this.FindNearbyOperationCompleted, userState);
- }
-
- private void OnFindNearbyOperationCompleted(object arg) {
- if ((this.FindNearbyCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindNearbyCompleted(this, new FindNearbyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindByProperty", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindByProperty(FindByPropertySpecification specification) {
- object[] results = this.Invoke("FindByProperty", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindByProperty(FindByPropertySpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindByProperty", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindByProperty(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindByPropertyAsync(FindByPropertySpecification specification) {
- this.FindByPropertyAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindByPropertyAsync(FindByPropertySpecification specification, object userState) {
- if ((this.FindByPropertyOperationCompleted == null)) {
- this.FindByPropertyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindByPropertyOperationCompleted);
- }
- this.InvokeAsync("FindByProperty", new object[] {
- specification}, this.FindByPropertyOperationCompleted, userState);
- }
-
- private void OnFindByPropertyOperationCompleted(object arg) {
- if ((this.FindByPropertyCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindByPropertyCompleted(this, new FindByPropertyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindByID", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindByID(FindByIDSpecification specification) {
- object[] results = this.Invoke("FindByID", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindByID(FindByIDSpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindByID", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindByID(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindByIDAsync(FindByIDSpecification specification) {
- this.FindByIDAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindByIDAsync(FindByIDSpecification specification, object userState) {
- if ((this.FindByIDOperationCompleted == null)) {
- this.FindByIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindByIDOperationCompleted);
- }
- this.InvokeAsync("FindByID", new object[] {
- specification}, this.FindByIDOperationCompleted, userState);
- }
-
- private void OnFindByIDOperationCompleted(object arg) {
- if ((this.FindByIDCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindByIDCompleted(this, new FindByIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindNearRoute", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindNearRoute(FindNearRouteSpecification specification) {
- object[] results = this.Invoke("FindNearRoute", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindNearRoute(FindNearRouteSpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindNearRoute", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindNearRoute(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindNearRouteAsync(FindNearRouteSpecification specification) {
- this.FindNearRouteAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindNearRouteAsync(FindNearRouteSpecification specification, object userState) {
- if ((this.FindNearRouteOperationCompleted == null)) {
- this.FindNearRouteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindNearRouteOperationCompleted);
- }
- this.InvokeAsync("FindNearRoute", new object[] {
- specification}, this.FindNearRouteOperationCompleted, userState);
- }
-
- private void OnFindNearRouteOperationCompleted(object arg) {
- if ((this.FindNearRouteCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindNearRouteCompleted(this, new FindNearRouteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoFindHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.mappoint.net/mappoint-30/FindPolygon", RequestNamespace="http://s.mappoint.net/mappoint-30/", ResponseNamespace="http://s.mappoint.net/mappoint-30/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public FindResults FindPolygon(FindPolygonSpecification specification) {
- object[] results = this.Invoke("FindPolygon", new object[] {
- specification});
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public System.IAsyncResult BeginFindPolygon(FindPolygonSpecification specification, System.AsyncCallback callback, object asyncState) {
- return this.BeginInvoke("FindPolygon", new object[] {
- specification}, callback, asyncState);
- }
-
- /// <remarks/>
- public FindResults EndFindPolygon(System.IAsyncResult asyncResult) {
- object[] results = this.EndInvoke(asyncResult);
- return ((FindResults)(results[0]));
- }
-
- /// <remarks/>
- public void FindPolygonAsync(FindPolygonSpecification specification) {
- this.FindPolygonAsync(specification, null);
- }
-
- /// <remarks/>
- public void FindPolygonAsync(FindPolygonSpecification specification, object userState) {
- if ((this.FindPolygonOperationCompleted == null)) {
- this.FindPolygonOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFindPolygonOperationCompleted);
- }
- this.InvokeAsync("FindPolygon", new object[] {
- specification}, this.FindPolygonOperationCompleted, userState);
- }
-
- private void OnFindPolygonOperationCompleted(object arg) {
- if ((this.FindPolygonCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.FindPolygonCompleted(this, new FindPolygonCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- public new void CancelAsync(object userState) {
- base.CancelAsync(userState);
- }
-
- private bool IsLocalFileSystemWebService(string url) {
- if (((url == null)
- || (url == string.Empty))) {
- return false;
- }
- System.Uri wsUri = new System.Uri(url);
- if (((wsUri.Port >= 1024)
- && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
- return true;
- }
- return false;
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Web.Services.WebServiceBindingAttribute(Name="RouteServiceSoap", Namespace="http://s.mappoint.net/mappoint-30/")]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(MapPointConstants))]
- [System.Xml.Serialization.XmlIncludeAttribute(typeof(FindResult[]))]
- public partial class RouteServiceSoap : System.Web.Services.Protocols.SoapHttpClientProtocol {
-
- private CustomerInfoRouteHeader customerInfoRouteHeaderValueField;
-
- private UserInfoRouteHeader userInfoRouteHeaderValueField;
-
- private System.Threading.SendOrPostCallback CalculateSimpleRouteOperationCompleted;
-
- private System.Threading.SendOrPostCallback CalculateRouteOperationCompleted;
-
- private bool useDefaultCredentialsSetExplicitly;
-
- /// <remarks/>
- public RouteServiceSoap() {
- this.Url = "http://routev3.staging.mappoint.net/Route-30/RouteService.asmx";
- if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
- this.UseDefaultCredentials = true;
- this.useDefaultCredentialsSetExplicitly = false;
- }
- else {
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- public CustomerInfoRouteHeader CustomerInfoRouteHeaderValue {
- get {
- return this.customerInfoRouteHeaderValueField;
- }
- set {
- this.customerInfoRouteHeaderValueField = value;
- }
- }
-
- public UserInfoRouteHeader UserInfoRouteHeaderValue {
- get {
- return this.userInfoRouteHeaderValueField;
- }
- set {
- this.userInfoRouteHeaderValueField = value;
- }
- }
-
- public new string Url {
- get {
- return base.Url;
- }
- set {
- if ((((this.IsLocalFileSystemWebService(base.Url) == true)
- && (this.useDefaultCredentialsSetExplicitly == false))
- && (this.IsLocalFileSystemWebService(value) == false))) {
- base.UseDefaultCredentials = false;
- }
- base.Url = value;
- }
- }
-
- public new bool UseDefaultCredentials {
- get {
- return base.UseDefaultCredentials;
- }
- set {
- base.UseDefaultCredentials = value;
- this.useDefaultCredentialsSetExplicitly = true;
- }
- }
-
- /// <remarks/>
- public event CalculateSimpleRouteCompletedEventHandler CalculateSimpleRouteCompleted;
-
- /// <remarks/>
- public event CalculateRouteCompletedEventHandler CalculateRouteCompleted;
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoRouteHeaderValue")]
- [System.Web.Services.Protocols.SoapHeaderAttribute("CustomerInfoRouteHeaderValue")]
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://s.ma…
Large files files are truncated, but you can click here to view the full file