ABContactAPI and typelists

The ABContactAPI web service exposes the typecodes in contact-related typelists as strings, which simplifies the code needed to access these typecodes from external or Guidewire core applications. For example, states are defined in the typelist State. The following annotation in ABContactAPI exposes this typelist as a string:

@WsiExposeEnumAsString(typekey.State)

Exposing this typelist as a string makes it possible for a Guidewire core application to do a simple assignment like the following in the ClaimCenter ContactSearchMapper class:

searchCriteriaInfo.ServiceState = searchCriteria.ServiceState.Code