You may want to build a list of available services for the customer in order for the user to choose which services can be added to a profile.
Here is an example of how you would get a customer’s available services:
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.service.Service gwService = new GatewaySample.net.clearstar.gateway.service.Service())
{
/* Get the list of available services for a customer. */
XmlNode nodeService = gwService.GetServices("myUserName", "myPassword", myBOID, "myCustID");
}
Successful XML response would be:
<GetServices xmlns="">
<ErrorStatus>
<Code>0</Code><Type></Type><Message></Message>
</ErrorStatus>
<Service>
<sServiceNo> myCustID_00001</sServiceNo>
<sServiceName>1000: myCustID Criminal</sServiceName>
<sCustomServiceName> myCustID Federal Criminal</sCustomServiceName>
<sCharge>10.00</sCharge>
<bIsPackage>false</bIsPackage>
<bIsSelected>false</bIsSelected>
<sType>S</sType>
<bIsSuspended>false</bIsSuspended>
<bVisible>true</bVisible>
<sHelpNote>Federal criminal search includes every court house in the country of ABC. No Records are obtained in 48 hour turnaround, Searchs that are flagged can be up to 72 hours.</sHelpNote>
<bIsMultiLoc>false</bIsMultiLoc>
<sPageName />
</Service>
<Service>
<sServiceNo> myCustID_00002</sServiceNo>
<sServiceName>1000: myCustID Trace</sServiceName>
<sCustomServiceName> myCustID Trace</sCustomServiceName>
<sCharge>10.00</sCharge>
<bIsPackage>false</bIsPackage>
<bIsSelected>true</bIsSelected>
<sType>S</sType>
<bIsSuspended>false</bIsSuspended>
<bVisible>true</bVisible>
<sHelpNote />
<bIsMultiLoc>false</bIsMultiLoc>
<sPageName />
</Service>
</GetServices>
Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.