You are here: Home Register  |  Login
 

Welcome to the ClearStar.net Developer Community!  Gateway Web Services, the open platform for building to, extending, and integrating with ClearStar.net, provides the core functionality for creating screening solutions that are specialized to meet your needs.  This site contains a full set of resources to help make the development process quick and easy by putting putting resources in your hands and helping you to connect to other developers.

ClearStar.net Developer Community Blog
Jun 9

Written by: Ken Dawson
6/9/2009 7:35 AM 

One of the things that we all need to do when integrating with other applications, is to provide a way for the user in the other application to see the print-ready, PDF version of the report for a Profile. We get questions about this all of the time when Business Owners are integrating with an ATS or HRIS. 

 
The Applicant Site project, found in the Open Source area of this site, demonstrates how this can be done. The Reports.aspx page is a container that allows the user to login to choose their Profile report and see the report in an iframe on the page or in a popup window. Most of the heavy lifting is done in the ViewReport.aspx page.
 
The code below is the Page.Load event handler where the report is run and displayed. This page assumes that the login information is stored in the Session and that the Customer ID and Profile ID are passed to the page in the querystring. 
 
The GetProfileReport method returns the PDF report as a byte array, which can then be displayed directly to the page. This page can be called from a link in an ATS or HRIS. It can be used as is to display the report in a popup or iframe, or it can be modified to download and save the report file.
 
 
        protected void Page_Load(object sender, EventArgs e)
        {
            string sUserName = Session[Global.SESSION_UserName].ToString();
            string sPassword = Session[Global.SESSION_Password].ToString();
            int iBOID = (int)Session[Global.SESSION_BOID];
 
            string sCustID = Request.QueryString["c"].ToString().Trim(); ;
            string sProfNo = Request.QueryString["p"].ToString().Trim(); ;
 
            byte[] bytes = null;
 
 
            using (net.clearstar.gateway.profile.Profile gwProfile = new net.clearstar.gateway.profile.Profile())
            {
                try
                {
                    bytes = gwProfile.GetProfileReport(sUserName, sPassword, iBOID, sCustID, sProfNo, false);
                }
                catch (System.Web.Services.Protocols.SoapException ex)
                {
                    //do something
                }
                if (bytes.Length > 0)
                {
                    Response.BufferOutput = true;
                    Response.AddHeader("Content-Disposition", "inline");
                    Response.ContentType = "application/pdf";
                    Response.BinaryWrite(bytes);
                }
            }
        }
 
 

Tags:
News & Events
Gateway Web Services 2010.01 Released - Thursday, February 04, 2010

ClearStar.net is pleased to announce the release of version 2010.01 of Gateway Web Services.  The first major release of 2010 includes the following:

  • Support for Stremline Web Services

For a full list of the updates, go to the Gateway Documentation and review the update log at the end.

 
Gateway Web Services 2009.02 Released - Friday, November 06, 2009

ClearStar.net is pleased to announce the release of version 2009.02 of Gateway Web Services.  The second major release of 2009 includes new functionality including:

  • Document Storage support for Profiles
  • Ability to transmit a Profile with Credit Card information
  • Updated Documentation

For a full list of the updates, go to the Gateway Documentation and review the update log at the end.

 
Gateway Web Services Developer Community Launched - Thursday, May 28, 2009

Yesterday, was the official launch of this site, ClearStar.net's Gateway Web Services Developer Community.  This site will be the hub for developer communications, community development, and open source efforts.  Be sure to register to get the most out the Developer Community.  Additional features are available for registered users of ClearStar.net Business Owners, including:  posting in the discussion forums, viewing the documentation, and downloading example and open source code.

Here is the full press release.

 read more ...
Gateway Web Services 2009.01 Released - Friday, March 27, 2009

ClearStar.net is pleased to announce the release of version 2009.01 of Gateway Web Services.  The first major release of 2009 includes new functionality including:

  • Notification when Profiles are completed
  • Disclaimer notice support
  • Copy a Profile
  • Driver's License format validation
  • Updated documentation
  • And more ...

For a full list of the updates, go to the Gateway Documentation and review the update log at the end.

 

 

Privacy Statement  |  Terms Of Use
Copyright 2009 by ClearStar.net