You are here: Discussion Register  |  Login
 
Discussion Forums
 
ForumForumGateway Web Ser...Gateway Web Ser...ProfilesProfilesHow do I make sure an entered social security number is valid?How do I make sure an entered social security number is valid?
Previous Previous
 
Next Next
New Post
 6/25/2009 10:23 PM
 
 Modified By Kevin Lenahan  on 6/27/2009 12:07:51 AM

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.

Previous Previous
 
Next Next
ForumForumGateway Web Ser...Gateway Web Ser...ProfilesProfilesHow do I make sure an entered social security number is valid?How do I make sure an entered social security number is valid?

 

Privacy Statement  |  Terms Of Use
Copyright 2011 by ClearStar, Inc.