clsCleanAddress¶
clsCleanAddress is the library's public service facade. It hides the generated CorrectAddress SOAP proxy behind a small .NET API and performs local result-mapping logic after each vendor call.
Purpose¶
- Provide the single public entry point for address-related service operations.
Context¶
- Namespace:
SAIF.Services.CleanAddress - Assembly/package:
SAIF.Services.CleanAddress
Public members¶
| Member | Signature | Purpose |
|---|---|---|
HelloWorld |
Public Function HelloWorld() As String |
Calls the vendor service health-check method and returns its response string. |
RunCleanAddressBatch |
Public Function RunCleanAddressBatch(ByVal inPath As String) As clsBatchReturnInfo |
Executes a batch cleanse request and returns both the raw and normalized batch outcome. |
ConvertToProperCase |
Public Function ConvertToProperCase(ByVal inString As String) As String |
Sends a string to the vendor proper-case operation and returns the trimmed result. |
FindCityStateInfoByZip |
Public Function FindCityStateInfoByZip(ByVal inZIP As String) As List(Of clsCityStateCountyInfo) |
Retrieves ZIP lookup results and parses them into a list of typed rows. |
CleanAddress |
Public Function CleanAddress(ByVal inLine1 As String, ByVal inLine2 As String, ByVal inCity As String, ByVal inState As String, ByVal inZip As String, ByVal inZip4 As String, ByVal inMixedCase As Boolean) As clsCleanAddressInfo |
Calls the vendor address-cleanse operation, classifies the result, and returns a populated clsCleanAddressInfo. |
Behavioral notes¶
- Every public method creates a new
CleanAddressSvc.clsCAServicesinstance and setsAllowAutoRedirect = TrueandUseDefaultCredentials = Truebefore calling the service. RunCleanAddressBatchapplies the mapping defined by BR-004.CleanAddressapplies the classification logic defined by BR-001, BR-002, and BR-005.CleanAddressconverts service-call exceptions into return code-999as defined by BR-003.
Constraints and usage notes¶
- The wrapper depends on the generated proxy and endpoint settings configured for the library.
FindCityStateInfoByZipexpects the vendor service to return fixed-width 55-character rows.CleanAddressreturns classification flags rather than throwing vendor exceptions for the handled failure path.
Sources¶
Services\SAIF.Services.CleanAddress\clsCleanAddress.vbServices\SAIF.Services.CleanAddress\app.configServices\SAIF.Services.CleanAddress\Web References\CleanAddressSvc\Reference.vb