Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- const string Url = "***";
- static void Main(string[] args)
- {
- using (var service = new ChesterRuService.mi_out_chester_customer_list_correctClient())
- {
- service.ClientCredentials.UserName.UserName = "***";
- service.ClientCredentials.UserName.Password = "***";
- service.Endpoint.Binding.SendTimeout = new TimeSpan(1, 0, 0);
- var servicePoint = System.Net.ServicePointManager.FindServicePoint(new Uri(Url));
- servicePoint.SetTcpKeepAlive(true, 5000, 5000);
- var response = service.mi_out_chester_customer_list_correct(new ChesterRuService.Y_BAPI_CUSTOMER_LIST()
- {
- CONTRACTS = "X",
- EQUIPMENT = "X",
- COUNTRY = "RU",
- ADDR_LIST = new ChesterRuService.YBAPI_ADDRESS[0],
- CONTRACT_EQUIPMENT = new ChesterRuService.YCONTREQUIPMENT[0],
- CONTRACT_LIST = new ChesterRuService.YCUSTCONTRACTS[0],
- COUNTER_DESCRIPTIONS = new ChesterRuService.YCOUNTERDESCRIPTION[0],
- CUSTOMER_CONTACTS = new ChesterRuService.YCUSTOMERCONTACTS[0],
- CUSTOMER_LIST = new ChesterRuService.YCUSTLIST[0],
- EQUIPMENT_COUNTERS = new ChesterRuService.YEQUICOUNTERS[0],
- EQUIPMENT_STAPLES = new ChesterRuService.YEQUISTAPLES[0],
- RETURN = new ChesterRuService.BAPIRET2[0]
- });
- Console.WriteLine(response.CONTRACT_LIST.Length);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement