The client application makes calls to the Employee Web
Services. You can build it from scratch or add new code to an existing
application. This application can use any language or technology (Java, .NET, etc.). The
application can be Windows-based or Web-based.
-
Add the service reference that
you obtained in the Generate the Web Service WSDL and Place in Client
Application topic into a new or existing client application.
For example:
- Visual Studio: right-click in the Solution
Explorer, click Add Service Reference, and type the URL provided by
PureSafety.
- IntelliJ IDEA: Add a new Web service
client in your Java package. For the Apache Axis client type, provide the URL
provided by
PureSafety.
- If your client application is
Windows-based, you can generate a proxy for the Web service by using the
Wsdl.exe tool (WSDL) and then use that proxy to access the API Web service
-
Reference the System.Web.Service.dll
and System.Xml.dll libraries in your application. The following classes are
created automatically in your application: Client, UserLoginWebServiceEntity,
and EmployeeWebServiceEntity.
-
When calling your actions in the web
service, specify the appropriate values in the class parameters.
For example, employees'
first and last names might come from manual data entry, another database, or a
flat file such as an .xml file.