EPLAN_PROD_Plugin/Sinvo.EplanHpD.Plugin.DynaC.../DynaServerClient.cs

35 lines
1.0 KiB
C#

using Sinvo.EplanHpD.Plugin.DynaClient.CADIService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace Sinvo.EplanHpD.Plugin.DynaClient
{
public class DynaServerClient
{
private CADIServicePortTypeClient _client;
public DynaServerClient( )
{
InitClient();
}
private void InitClient()
{
var binding = new BasicHttpBinding();
var endpoint = new EndpointAddress("http://192.168.1.206:38080/axis2/services/CADIService?wsdl");
_client = new CADIServicePortTypeClient(binding, endpoint);
//_client = new CADIServicePortTypeClient();
}
public object Login(string userName,string password,string role,string group,string clientType)
{
var hostName = Environment.MachineName;
return _client.login(userName, group, role, password, hostName, clientType);
}
}
}