protected void Page_Load(object sender, EventArgs e) { ProductServiceSoapClient ps = new ProductServiceSoapClient(); Repeater1.DataSource = ps.getCatalogProducts(); Repeater1.DataBind(); }
private void button1_Click(object sender, EventArgs e) { ProductServiceSoapClient client = new ProductServiceSoapClient(); string message = client.HelloWorld(); MessageBox.Show(message); }
public ProductClient(string sessionId) { _productService = new ProductServiceSoapClient(ProductServiceSoapClient.EndpointConfiguration.ProductServiceSoap); var cookies = new CookieContainer(); cookies.Add(_productService.Endpoint.Address.Uri, new Cookie(SessionCookieName, sessionId)); _productService.Endpoint.EndpointBehaviors.Add(new CookieBehavior(cookies)); }
private void button2_Click(object sender, EventArgs e) { ProductServiceSoapClient client = new ProductServiceSoapClient(); Pasaport pasaport = new Pasaport(); pasaport.UserName = "******"; pasaport.Password = "******"; dataGridView1.DataSource = client.ProductList(pasaport); }
private void btn_Product_Click(object sender, EventArgs e) { ProductServiceSoapClient client = new ProductServiceSoapClient(); Identification kml = new Identification(); kml.userName = "******"; kml.Password = "******"; dataGridView1.DataSource = client.ProductList(kml); }
public ShopVisibleProductsService(ShopVisibleCredentials credentials) { this._credentials = credentials; this._client = new ProductServiceSoapClient(credentials.ProductsEndpointName); }
public ProductServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(ProductServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ProductServiceSoapClient(EndpointConfiguration endpointConfiguration) : base(ProductServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), ProductServiceSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }