20 using the soap interface as a web service, 1 referencing and inheriting from the wsdl, Using the soap interface as a web service -1 – Echelon i.LON SmartServer 2.0 User Manual
Page 323: Referencing and inheriting from the wsdl -1

i.LON SmartServer 2.0 Programmer’s Reference
20-1
20
Using the SOAP Interface as a Web Service
This chapter assumes that you have some familiarity with Web services programming, and that you are
using the Microsoft Visual Studio .NET development environment. All sample code in this chapter is
written in Visual Basic .NET and Visual C# .NET using Microsoft Visual Studio 2008. However, you
can use any development tool that is able to call standard Web services with the SmartServer
SOAP/XML interface.
20.1
Referencing and Inheriting from the WSDL
You can use the SOAP interface as a reference with Microsoft Visual Studio .NET Framework 3.5 or
.NET Framework 2.0, and create an application to modify the configuration of your SmartServer.
Some development tools can import the i.LON SmartServer WSDL File and automatically build a class
structure for sending and receiving each message. The following sections describe how to use Visual
Studio .NET Framework 3.5 and .NET Framework 2.0 to reference the SmartServer SOAP interface
and then inherit from the reference.
20.1.1
Referencing and Inheriting from the WSDL Using .NET 3.5 Framework
The following procedure describes how to use Visual Studio 2008 .NET Framework 3.5 to reference
the SOAP interface and then inherit from the service reference.
1. Open the Microsoft Visual Studio .NET development environment.
2. Click File, point to New, and then click Project. The New Project dialog opens.
3. Enter a name, location, and project type for the project, and then click OK.