This is kinda on the same vein i am using a web service that I created that recieves a zip Code as String, ErrorCheck as Boolean and ErrorMessage as String i set it up like this
Public Function ZipValidate(ByVal Zip As String, ByVal ErrorCheck As Boolean, ByVal ErrorMessage As String) As String
Dim City As String
Dim State As String
Select Case Zip
Case "20193"
City = "Reston"
State = "VA"
Case "22219"
City = "Arlington"
State = "VA"
Case "21201"
City = "Baltimore"
State = "MD"
Case "21401"
City = "Annapolis"
State = "MD"
Case "20810"
City = "Bethesda"
State = "MD"
Case "20001"
City = " Washington"
State = "DC"
Case "15235"
City = "Pittsburg"
State = "PA"
Case "191192"
City = "Philadelphia"
State = "PA"
Case "10165"
City = "New York"
State = "NY"
Case "14201"
City = "Buffalo"
State = "NY"
Case Else
City = ""
State = ""
ErrorCheck = False
ErrorMessage = "Zip Code has not been found"
End Select
Return City
Return State
End Function
I need to return City and State, ErrorCheck and ErrorMessage to the wcf service that calls it but I am unsure how to do this please help me figure out how to fix my problem