개정판 150747cb
issue #0001: ServiceStation db 접속 불가시 종료현상 수정
Change-Id: I2eb4839e429fdbb65c3491ff40cdbe39f7d1bce1
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs | ||
---|---|---|
11 | 11 |
using System.Diagnostics; |
12 | 12 |
using System.IO; |
13 | 13 |
using System.Linq; |
14 |
using System.Net; |
|
14 | 15 |
using System.Net.Http; |
15 | 16 |
using System.ServiceModel; |
16 | 17 |
using System.Text; |
... | ... | |
460 | 461 |
|
461 | 462 |
//Console.WriteLine(responseText); |
462 | 463 |
|
463 |
|
|
464 |
//using (var client = new System.Net.Http.HttpClient()) |
|
465 |
//{ |
|
466 |
// var uri2 = new Uri("http://localhost:9101/StationService/Rest/GetConvertItem"); |
|
467 |
|
|
468 |
// var data2 = new SEND |
|
469 |
// { |
|
470 |
// ProjectNo = "111111", |
|
471 |
// DocumentID = "453" |
|
472 |
// }; |
|
473 |
|
|
474 |
// var jsonRequest2 = JsonConvert.SerializeObject(data2); |
|
475 |
// var stringContent = new System.Net.Http.StringContent(jsonRequest2, Encoding.UTF8, "application/json"); |
|
476 |
// var response = await client.PostAsync(uri2, stringContent); |
|
477 |
|
|
478 |
// if (response.IsSuccessStatusCode) |
|
479 |
// { |
|
480 |
// System.Diagnostics.Debug.WriteLine(response.Content.Headers.First()); |
|
481 |
// System.Diagnostics.Debug.WriteLine(await response.Content.ReadAsStringAsync()); |
|
482 |
// } |
|
483 |
//} |
|
484 |
|
|
485 | 464 |
using (var client = new System.Net.Http.HttpClient()) |
486 | 465 |
{ |
487 |
var uri2 = new Uri("http://localhost:13009/MarkusService.svc/Rest/GetCommantList"); |
|
488 | 466 |
|
467 |
var uri2 = new Uri("http://localhost:9101/StationService/Rest/GetConvertItem"); |
|
489 | 468 |
var data2 = new SEND |
490 | 469 |
{ |
491 | 470 |
ProjectNo = "111111", |
... | ... | |
503 | 482 |
} |
504 | 483 |
} |
505 | 484 |
|
485 |
//using (var client = new System.Net.Http.HttpClient()) |
|
486 |
//{ |
|
487 |
// var uri2 = new Uri("http://localhost:13009/MarkusService.svc/Rest/GetCommantList"); |
|
488 |
|
|
489 |
// var data2 = new SEND |
|
490 |
// { |
|
491 |
// ProjectNo = "111111", |
|
492 |
// DocumentID = "453" |
|
493 |
// }; |
|
494 |
|
|
495 |
// var jsonRequest2 = JsonConvert.SerializeObject(data2); |
|
496 |
// var stringContent = new System.Net.Http.StringContent(jsonRequest2, Encoding.UTF8, "application/json"); |
|
497 |
// var response = await client.PostAsync(uri2, stringContent); |
|
498 |
|
|
499 |
// if (response.IsSuccessStatusCode) |
|
500 |
// { |
|
501 |
// System.Diagnostics.Debug.WriteLine(response.Content.Headers.First()); |
|
502 |
// System.Diagnostics.Debug.WriteLine(await response.Content.ReadAsStringAsync()); |
|
503 |
// } |
|
504 |
//} |
|
505 |
|
|
506 | 506 |
//var client2 = new System.Net.WebClient(); |
507 | 507 |
//client2.Proxy = new System.Net.WebProxy("127.0.0.1", 8888); |
508 | 508 |
//var result = await client2.DownloadStringTaskAsync("http://localhost:9101/StationService/Rest/GetConvertItem?ProjectNo=111111&DocumentID=453"); |
내보내기 Unified diff