Before saving a Profile, you may want to validate the social security number that was entered.
Here is an example of how you would validate a social security number:
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.profile.Profile gwProfile = new GatewaySample.net.clearstar.gateway.profile.Profile())
{
/* Validate the social security number. */
XmlNode nodeProfile = gwProfile.ValidateSSN("myUserName", "myPassword", myBOID, "myCustID", "123456789");
}
XML Response:
<ValidateSSN>
<ErrorStatus>
<Code></Code>
<Type></Type>
<Message></Message>
</ErrorStatus>
<SSN>
<bValid></bValid>
<sReason></sReason>
</SSN>
</ValidateSSN>
Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.