Fred Block
2009-01-12 17:04:24 UTC
Hi All,
Can anyone let me know what kind of benchmark (points/second) I can expect
when using the FindServiceSoap and the GetLocationInfo method. I am
optimizing as best I know how using the GetInfoOptions and requesting only
as shown here (if I can do better, *please* advise!):
Dim myEntityTypes(2) As String
myEntityTypes(0) = "Sovereign"
myEntityTypes(1) = "AdminDivision1"
myEntityTypes(2) = "Postcode1"
Dim myOptions As New GetInfoOptions()
myOptions.EntityTypesToReturn = myEntityTypes
myOptions.IncludeAllEntityTypes = False
myOptions.IncludeAddresses = True
Further, I'm settuing up the connection once and not in each iteration of
the GetLocationInfo calls I'm making:
Dim myCredentials = New
System.Net.NetworkCredential(mMWSCredentialsUserName,
mMWSCredentialsPassword)
Try
mFindServiceSoap = New FindServiceSoap
mFindServiceSoap.Credentials = myCredentials
mFindServiceSoap.PreAuthenticate = True
mFindServiceSoap.Url =
"http://findv3.mappoint.net/Find-30/FindService.asmx"
'mFindServiceSoap.Url =
"http://findv3.staging.mappoint.net/Find-30/FindService.asmx"
Catch ex As Exception
UserDisplay("ERR: [MWSLogin] - " & ex.Message)
End Try
Can anyone let me know what kind of benchmark (points/second) I can expect
when using the FindServiceSoap and the GetLocationInfo method. I am
optimizing as best I know how using the GetInfoOptions and requesting only
as shown here (if I can do better, *please* advise!):
Dim myEntityTypes(2) As String
myEntityTypes(0) = "Sovereign"
myEntityTypes(1) = "AdminDivision1"
myEntityTypes(2) = "Postcode1"
Dim myOptions As New GetInfoOptions()
myOptions.EntityTypesToReturn = myEntityTypes
myOptions.IncludeAllEntityTypes = False
myOptions.IncludeAddresses = True
Further, I'm settuing up the connection once and not in each iteration of
the GetLocationInfo calls I'm making:
Dim myCredentials = New
System.Net.NetworkCredential(mMWSCredentialsUserName,
mMWSCredentialsPassword)
Try
mFindServiceSoap = New FindServiceSoap
mFindServiceSoap.Credentials = myCredentials
mFindServiceSoap.PreAuthenticate = True
mFindServiceSoap.Url =
"http://findv3.mappoint.net/Find-30/FindService.asmx"
'mFindServiceSoap.Url =
"http://findv3.staging.mappoint.net/Find-30/FindService.asmx"
Catch ex As Exception
UserDisplay("ERR: [MWSLogin] - " & ex.Message)
End Try
--
Thanks in advance for your time and support!
Kind regards - Fred
Thanks in advance for your time and support!
Kind regards - Fred