Echelon i.LON SmartServer 2.0 Manuel d'utilisateur Page 335

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 443
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 334
i.LON SmartServer 2.0 Programmer’s Reference
20-13
20.2.2
Instantiating the Web Service Client in Visual C# .NET 2.0
using System;
using System.Collections.Generic;
using System.Text;
namespace CodeExample
{
class iLON_SoapCalls
{
// your SmartServer's Web service reference
static public iLON_WebService _iLON = null;
/// <summary>
/// Instantiates the SmartServer Web service for .NET 2.0
/// </summary>
static public void BindClientToSmartServer(string _iLonEndpointIpAddress)
{
_iLON = new iLON_WebService();
String strOrigUrl = _iLON.Url;
_iLON.Url = strOrigUrl.Replace("localhost", _iLonEndpointIpAddress);
_iLON.messagePropertiesValue = new iLON_SmartServer.messageProperties();
// uncomment the 2 lines below to enable authentication
// _iLON.Credentials = new System.Net.NetworkCredential("ilon", "ilon");
// _iLON.PreAuthenticate = true;
}
}
}
Vue de la page 334
1 2 ... 330 331 332 333 334 335 336 337 338 339 340 ... 442 443

Commentaires sur ces manuels

Pas de commentaire