Visual Studio .NET

The most popular development environment for working with Attendance on Demand Web Services is likely to be Microsoft’s Visual Studio .NET. When using this tool, it is quite easy to quickly import the contract and begin invoking methods.

  1. Within your solution, at the Project level, do one of the following
  • If using .NET Framework 2.0 or earlier, select Add Web Reference, then proceed to Step 2
  • If using .NET Framework 3.0 or above, select Add Service Reference
    • Within the Add Service Reference window, click the Advanced button on the bottom left of the screen
    • Within the Service Reference Settings window, click the Add Web Reference button on the bottom left of the screen (even thought it mentions Framework 2.0)
  1. Enter the URL to extract the WSDL definition. For these examples, the name applied to the Web Services is “AttendanceSvc”

    https://aodws.attendanceondemand.com:8192/cc1.aew/wsdl/IAeXMLBridge

  2. Establish the connection so .NET will apply Basic Authentication to invoked calls

    1
    2
    3
    4
    5
    6
    7
    Dim ws As New AttendanceSvc.IAeXMLBridgeservice()

    Dim creds = New System.Net.NetworkCredential("MyAccount123", "password", "")

    ws.Credentials = creds

    ws.PreAuthenticate = True
  3. Adjust the endpoint if required

    1
    ws.URL = “https://” & companyuri & “.attendanceondemand.com:8192/cc1exec.aew/soap/IAeXMLBridge“
  4. Adjust timeouts if required

    1
    ws.timeout = seconds * 1000
  5. Begin calling CC1 methods

    1
    TextBox1.Text = ws.getCompanyName() & " has " & ws.getTotalEmployeeCount() & " employees."

Example Libraries