The code provided in this section is a sample only, and not production ready code. You must add the code qualities needed to make it production ready, such as better error handling.
The following instructions are specific to .NET. For Java instructions on creating the proxy, see the readme.txt
file included in the Java sample code.
Create a Project
To create a project in Visual Studio:
- In Visual Studio, go to File > New > Project.
- Click Console Application.
- Name the console application DayforceServiceSampleClient.
Add a Service Reference
To add a service reference:
- In the Solution Explorer, right-click the
DayforceServiceSampleClient
project and select Add > Service Reference. - In the Add Service Reference dialog box:
- Set the Address to
https://www.dayforcehcm.com/DataSvc/DayforceService.svc?wsdl
and the Namespace toDayforceService
:
- Set the Address to
To complete the sample client application, insert the logic shown in the following sections into the Main method in the Program.cs
source file, then compile and execute.
Increase the maxReceivedMessageSize
property binding information generated in your app.config
or web.config
to the largest possible value to accommodate the large amount of data that can be received from the Dayforce web services.