beautypg.com

Echelon i.LON SmartServer 2.0 User Manual

Page 347

background image

i.LON SmartServer 2.0 Programmer’s Reference

20-25

<

section

name

="microsoft.web.services2"

type

="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2,

Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

<

sectionGroup

name

="system.web.extensions"

type

="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<

sectionGroup

name

="scripting"

type

="System.Web.Configuration.ScriptingSectionGroup,

System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<

section

name

="scriptResourceHandler"

type

="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

requirePermission

="false"

allowDefinition

="MachineToApplication"/>


<

sectionGroup

name

="webServices"

type

="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

<

section

name

="jsonSerialization"

type

="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

requirePermission

="false"

allowDefinition

="Everywhere"/>


<

section

name

="profileService"

type

="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

requirePermission

="false"

allowDefinition

="MachineToApplication"/>


<

section

name

="authenticationService"

type

="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

requirePermission

="false"

allowDefinition

="MachineToApplication"/>


<

section

name

="roleService"

type

="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions,

Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"

requirePermission

="false"

allowDefinition

="MachineToApplication"/>


sectionGroup

>

sectionGroup

>

sectionGroup

>

configSections

>


<

microsoft.web.services2

>

<

diagnostics

>

<

detailedErrors

enabled

="false" />

diagnostics

>

microsoft.web.services2

>

9. Add the following code under the <system.web> tag:

<

appSettings

/>

<

connectionStrings

/>

<

system.web

>

<

webServices

>

<

soapExtensionTypes

>

<

add

type

="Microsoft.Web.Services2.WebServicesExtension, Microsoft.Web.Services2,

Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

priority

="1"

group

="0"

/>

soapExtensionTypes

>

webServices

>

10. Your server side code is now ready to accept WebBinder calls from the SmartServer, and you can

now add your server as a host device to the SmartServer’s LAN connection. To do this, follow
these steps: