Пример #1
0
		public ProductServiceClient()
		{
			stub = new ProductService();
			stub.Credentials = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD);
			stub.PreAuthenticate = true;
			stub.Url = WEBSERVICE_URL;
		}
Пример #2
0
		public void Init()
		{
			// set up the ProductImageService
			productImageService = new ProductImageService();
			productImageService.Credentials = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD);
			productImageService.PreAuthenticate = true;
			productImageService.Url = WEBSERVICE_URL;

			// set up the ProductService in order to create a test product
			productService = new ProductService();
			productService.Credentials = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD);
			productService.PreAuthenticate = true;
			productService.Url = WEBSERVICE_URL;

			// create the test product
			TCreate_Input productInfo = new TCreate_Input();
			productInfo.Alias = alias;
			TCreate_Input[] createInput = new TCreate_Input[]{productInfo};
			productService.create( createInput );
		}