개정판 c433ebde
gitignore 변경
Change-Id: Ia4787800e7d538cfdb63e92ce44a3f2001025da0
.gitignore | ||
---|---|---|
7 | 7 |
*.suo |
8 | 8 |
*.ide |
9 | 9 |
/KCOM/bin |
10 |
## Ignore Visual Studio temporary files, build results, and |
|
11 |
## files generated by popular Visual Studio add-ons. |
|
12 |
|
|
13 |
# User-specific files |
|
14 |
*.suo |
|
15 |
*.user |
|
16 |
*.userosscache |
|
17 |
*.sln.docstates |
|
18 |
|
|
19 |
# User-specific files (MonoDevelop/Xamarin Studio) |
|
20 |
*.userprefs |
|
21 |
|
|
22 |
# Build results |
|
23 |
[Dd]ebug/ |
|
24 |
[Dd]ebugPublic/ |
|
25 |
[Rr]elease/ |
|
26 |
[Rr]eleases/ |
|
27 |
x64/ |
|
28 |
x86/ |
|
29 |
bld/ |
|
30 |
[Bb]in/ |
|
31 |
[Oo]bj/ |
|
32 |
[Ll]og/ |
|
33 |
|
|
34 |
# Visual Studio 2015 cache/options directory |
|
35 |
.vs/ |
|
36 |
# Uncomment if you have tasks that create the project's static files in wwwroot |
|
37 |
#wwwroot/ |
|
38 |
|
|
39 |
# MSTest test Results |
|
40 |
[Tt]est[Rr]esult*/ |
|
41 |
[Bb]uild[Ll]og.* |
|
42 |
|
|
43 |
# NUNIT |
|
44 |
*.VisualState.xml |
|
45 |
TestResult.xml |
|
46 |
|
|
47 |
# Build Results of an ATL Project |
|
48 |
[Dd]ebugPS/ |
|
49 |
[Rr]eleasePS/ |
|
50 |
dlldata.c |
|
51 |
|
|
52 |
# DNX |
|
53 |
project.lock.json |
|
54 |
project.fragment.lock.json |
|
55 |
artifacts/ |
|
56 |
|
|
57 |
*_i.c |
|
58 |
*_p.c |
|
59 |
*_i.h |
|
60 |
*.ilk |
|
61 |
*.meta |
|
62 |
*.obj |
|
63 |
*.pch |
|
64 |
*.pdb |
|
65 |
*.pgc |
|
66 |
*.pgd |
|
67 |
*.rsp |
|
68 |
*.sbr |
|
69 |
*.tlb |
|
70 |
*.tli |
|
71 |
*.tlh |
|
72 |
*.tmp |
|
73 |
*.tmp_proj |
|
74 |
*.log |
|
75 |
*.vspscc |
|
76 |
*.vssscc |
|
77 |
.builds |
|
78 |
*.pidb |
|
79 |
*.svclog |
|
80 |
*.scc |
|
81 |
|
|
82 |
# Chutzpah Test files |
|
83 |
_Chutzpah* |
|
84 |
|
|
85 |
# Visual C++ cache files |
|
86 |
ipch/ |
|
87 |
*.aps |
|
88 |
*.ncb |
|
89 |
*.opendb |
|
90 |
*.opensdf |
|
91 |
*.sdf |
|
92 |
*.cachefile |
|
93 |
*.VC.db |
|
94 |
*.VC.VC.opendb |
|
95 |
|
|
96 |
# Visual Studio profiler |
|
97 |
*.psess |
|
98 |
*.vsp |
|
99 |
*.vspx |
|
100 |
*.sap |
|
101 |
|
|
102 |
# TFS 2012 Local Workspace |
|
103 |
$tf/ |
|
104 |
|
|
105 |
# Guidance Automation Toolkit |
|
106 |
*.gpState |
|
107 |
|
|
108 |
# ReSharper is a .NET coding add-in |
|
109 |
_ReSharper*/ |
|
110 |
*.[Rr]e[Ss]harper |
|
111 |
*.DotSettings.user |
|
112 |
|
|
113 |
# JustCode is a .NET coding add-in |
|
114 |
.JustCode |
|
115 |
|
|
116 |
# TeamCity is a build add-in |
|
117 |
_TeamCity* |
|
118 |
|
|
119 |
# DotCover is a Code Coverage Tool |
|
120 |
*.dotCover |
|
121 |
|
|
122 |
# NCrunch |
|
123 |
_NCrunch_* |
|
124 |
.*crunch*.local.xml |
|
125 |
nCrunchTemp_* |
|
126 |
|
|
127 |
# MightyMoose |
|
128 |
*.mm.* |
|
129 |
AutoTest.Net/ |
|
130 |
|
|
131 |
# Web workbench (sass) |
|
132 |
.sass-cache/ |
|
133 |
|
|
134 |
# Installshield output folder |
|
135 |
[Ee]xpress/ |
|
136 |
|
|
137 |
# DocProject is a documentation generator add-in |
|
138 |
DocProject/buildhelp/ |
|
139 |
DocProject/Help/*.HxT |
|
140 |
DocProject/Help/*.HxC |
|
141 |
DocProject/Help/*.hhc |
|
142 |
DocProject/Help/*.hhk |
|
143 |
DocProject/Help/*.hhp |
|
144 |
DocProject/Help/Html2 |
|
145 |
DocProject/Help/html |
|
146 |
|
|
147 |
# Click-Once directory |
|
148 |
publish/ |
|
149 |
|
|
150 |
# Publish Web Output |
|
151 |
*.[Pp]ublish.xml |
|
152 |
*.azurePubxml |
|
153 |
# TODO: Comment the next line if you want to checkin your web deploy settings |
|
154 |
# but database connection strings (with potential passwords) will be unencrypted |
|
155 |
#*.pubxml |
|
156 |
*.publishproj |
|
157 |
|
|
158 |
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
|
159 |
# checkin your Azure Web App publish settings, but sensitive information contained |
|
160 |
# in these scripts will be unencrypted |
|
161 |
PublishScripts/ |
|
162 |
|
|
163 |
# NuGet Packages |
|
164 |
*.nupkg |
|
165 |
# The packages folder can be ignored because of Package Restore |
|
166 |
**/packages/* |
|
167 |
# except build/, which is used as an MSBuild target. |
|
168 |
!**/packages/build/ |
|
169 |
# Uncomment if necessary however generally it will be regenerated when needed |
|
170 |
#!**/packages/repositories.config |
|
171 |
# NuGet v3's project.json files produces more ignoreable files |
|
172 |
*.nuget.props |
|
173 |
*.nuget.targets |
|
174 |
|
|
175 |
# Microsoft Azure Build Output |
|
176 |
csx/ |
|
177 |
*.build.csdef |
|
178 |
|
|
179 |
# Microsoft Azure Emulator |
|
180 |
ecf/ |
|
181 |
rcf/ |
|
182 |
|
|
183 |
# Windows Store app package directories and files |
|
184 |
AppPackages/ |
|
185 |
BundleArtifacts/ |
|
186 |
Package.StoreAssociation.xml |
|
187 |
_pkginfo.txt |
|
188 |
|
|
189 |
# Visual Studio cache files |
|
190 |
# files ending in .cache can be ignored |
|
191 |
*.[Cc]ache |
|
192 |
# but keep track of directories ending in .cache |
|
193 |
!*.[Cc]ache/ |
|
194 |
|
|
195 |
# Others |
|
196 |
ClientBin/ |
|
197 |
~$* |
|
198 |
*~ |
|
199 |
*.dbmdl |
|
200 |
*.dbproj.schemaview |
|
201 |
*.jfm |
|
202 |
*.pfx |
|
203 |
*.publishsettings |
|
204 |
node_modules/ |
|
205 |
orleans.codegen.cs |
|
206 |
|
|
207 |
# Since there are multiple workflows, uncomment next line to ignore bower_components |
|
208 |
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
|
209 |
#bower_components/ |
|
210 |
|
|
211 |
# RIA/Silverlight projects |
|
212 |
Generated_Code/ |
|
213 |
|
|
214 |
# Backup & report files from converting an old project file |
|
215 |
# to a newer Visual Studio version. Backup files are not needed, |
|
216 |
# because we have git ;-) |
|
217 |
_UpgradeReport_Files/ |
|
218 |
Backup*/ |
|
219 |
UpgradeLog*.XML |
|
220 |
UpgradeLog*.htm |
|
221 |
|
|
222 |
# SQL Server files |
|
223 |
*.mdf |
|
224 |
*.ldf |
|
225 |
|
|
226 |
# Business Intelligence projects |
|
227 |
*.rdl.data |
|
228 |
*.bim.layout |
|
229 |
*.bim_*.settings |
|
230 |
|
|
231 |
# Microsoft Fakes |
|
232 |
FakesAssemblies/ |
|
233 |
|
|
234 |
# GhostDoc plugin setting file |
|
235 |
*.GhostDoc.xml |
|
236 |
|
|
237 |
# Node.js Tools for Visual Studio |
|
238 |
.ntvs_analysis.dat |
|
239 |
|
|
240 |
# Visual Studio 6 build log |
|
241 |
*.plg |
|
242 |
|
|
243 |
# Visual Studio 6 workspace options file |
|
244 |
*.opt |
|
245 |
|
|
246 |
# Visual Studio LightSwitch build output |
|
247 |
**/*.HTMLClient/GeneratedArtifacts |
|
248 |
**/*.DesktopClient/GeneratedArtifacts |
|
249 |
**/*.DesktopClient/ModelManifest.xml |
|
250 |
**/*.Server/GeneratedArtifacts |
|
251 |
**/*.Server/ModelManifest.xml |
|
252 |
_Pvt_Extensions |
|
253 |
|
|
254 |
# Paket dependency manager |
|
255 |
.paket/paket.exe |
|
256 |
paket-files/ |
|
257 |
|
|
258 |
# FAKE - F# Make |
|
259 |
.fake/ |
|
260 |
|
|
261 |
# JetBrains Rider |
|
262 |
.idea/ |
|
263 |
*.sln.iml |
|
264 |
|
|
265 |
# CodeRush |
|
266 |
.cr/ |
|
267 |
|
|
268 |
# Python Tools for Visual Studio (PTVS) |
|
269 |
__pycache__/ |
|
270 |
*.pyc |
|
271 |
/MarkusPDF Library/LibraryTest/MarkusPDFUnitTest/TestOutput |
|
272 |
/MarkusPDF Library.egg |
ConvertService/ServiceBase/Markus.Service.Station/ServiceStation.ini | ||
---|---|---|
5 | 5 |
#MarkusDataBaseConnectionString = data source=DESKTOP-MARKUS;initial catalog=Markus_V3;persist security info=True;user id=doftech;Password=dof1073#;MultipleActiveResultSets=True; |
6 | 6 |
|
7 | 7 |
# local test |
8 |
MarkusDataBaseConnectionString = AkxeK6rlR/pvDogtyJST7sHEFe9zDPwVf8W7ulsvVrFnqBcpEKFhacEE4OpBvuJYrkkubP91v40LyQ6mReCd3pXhTAPs5gL4W6eRhG6GszFyxlv0fncEZ+aacRQNNIzTlQCenZdTJdt2ylaRyCRYXb9HZCIeZKcuDef2pn1ny3dp90lB2vv15bn5UIaqIZA8bLSbBTXt8Ft4Xttl4In5Ow== |
|
8 |
#MarkusDataBaseConnectionString = AkxeK6rlR/pvDogtyJST7sHEFe9zDPwVf8W7ulsvVrFnqBcpEKFhacEE4OpBvuJYrkkubP91v40LyQ6mReCd3pXhTAPs5gL4W6eRhG6GszFyxlv0fncEZ+aacRQNNIzTlQCenZdTJdt2ylaRyCRYXb9HZCIeZKcuDef2pn1ny3dp90lB2vv15bn5UIaqIZA8bLSbBTXt8Ft4Xttl4In5Ow==
|
|
9 | 9 |
|
10 | 10 |
# remote test |
11 |
#MarkusDataBaseConnectionString = YNP/egPgsKY5wO/j9T7VgkiSClJH7p9hANqnTbQFNYaOnS1f9eeZS5UzPwsGuI3syNfjUnBbiLk37BjsNNWzZevN8Jbd9EzwE9l5g8upXhNqX9eF2brizRZ4ud+GK/35HvqSjvIaz5ggszA3dHT2b+r9279mJXo42QzRBNbUcBgnl2njNNSB7EfckQ5Hwd7eatvWuf3ESIUv4KTqGU5V6A==
|
|
11 |
MarkusDataBaseConnectionString = YNP/egPgsKY5wO/j9T7VgkiSClJH7p9hANqnTbQFNYaOnS1f9eeZS5UzPwsGuI3syNfjUnBbiLk37BjsNNWzZevN8Jbd9EzwE9l5g8upXhNqX9eF2brizRZ4ud+GK/35HvqSjvIaz5ggszA3dHT2b+r9279mJXo42QzRBNbUcBgnl2njNNSB7EfckQ5Hwd7eatvWuf3ESIUv4KTqGU5V6A== |
|
12 | 12 |
|
13 | 13 |
DownloadTempFolder = D:\CONVERT_SERVICE_TEMP |
14 | 14 |
MULTI_TRHEAD_MAX_PAGE = 10000 |
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs | ||
---|---|---|
26 | 26 |
using Markus.Service.Helper; |
27 | 27 |
using Markus.Service.DataBase; |
28 | 28 |
using Newtonsoft.Json; |
29 |
using System.Web.Script.Serialization; |
|
30 |
using System.Net.Http; |
|
29 | 31 |
|
30 | 32 |
namespace ServiceTestApp |
31 | 33 |
{ |
... | ... | |
434 | 436 |
station.GetApplicationConfig(); |
435 | 437 |
station.StartWcfService(); |
436 | 438 |
} |
439 |
private static readonly HttpClient _Client = new HttpClient(); |
|
440 |
private static JavaScriptSerializer _Serializer = new JavaScriptSerializer(); |
|
437 | 441 |
|
438 | 442 |
private async void WebServiceTest_click(object sender, RoutedEventArgs e) |
439 | 443 |
{ |
... | ... | |
441 | 445 |
|
442 | 446 |
var uri = new Uri("http://localhost:9101/StationService/Rest/GetConvertItem"); // string 을 Uri 로 형변환 |
443 | 447 |
var wReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(uri); // WebRequest 객체 형성 및 HttpWebRequest 로 형변환 |
444 |
wReq.Method = "GET"; // 전송 방법 "GET" or "POST" |
|
445 |
wReq.ServicePoint.Expect100Continue = false; |
|
446 |
wReq.CookieContainer = new System.Net.CookieContainer(); |
|
447 |
wReq.CookieContainer.SetCookies(uri, cookie); // 넘겨줄 쿠키가 있을때 CookiContainer 에 저장 |
|
448 |
wReq.Method = "POST"; // 전송 방법 "GET" or "POST" |
|
449 |
wReq.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; |
|
450 |
wReq.Proxy = new System.Net.WebProxy("127.0.0.1", 8888); |
|
451 |
//wReq.ServicePoint.Expect100Continue = false; |
|
452 |
//wReq.CookieContainer = new System.Net.CookieContainer(); |
|
453 |
//wReq.CookieContainer.SetCookies(uri, cookie); // 넘겨줄 쿠키가 있을때 CookiContainer 에 저장 |
|
448 | 454 |
|
449 | 455 |
//POST 전송일 경우 |
450 |
var data = new |
|
456 |
|
|
457 |
string url = "http://localhost:9101/StationService/Rest/GetConvertItem"; |
|
458 |
var data = new SEND |
|
451 | 459 |
{ |
452 | 460 |
ProjectNo = "111111", |
453 | 461 |
DocumentID = "453" |
454 | 462 |
}; |
455 |
var jsonRequest = JsonConvert.SerializeObject(data); |
|
456 |
|
|
457 |
byte[] byteArray = Encoding.UTF8.GetBytes(jsonRequest); |
|
458 |
|
|
459 |
Stream dataStream = wReq.GetRequestStream(); |
|
460 |
dataStream.Write(byteArray, 0, byteArray.Length); |
|
461 |
dataStream.Close(); |
|
462 | 463 |
|
464 |
var json = _Serializer.Serialize(data); |
|
465 |
var response2 = await Request(HttpMethod.Post, url, json, new Dictionary<string, string>()); |
|
466 |
string responseText = await response2.Content.ReadAsStringAsync(); |
|
463 | 467 |
|
464 |
using (var wRes = (System.Net.HttpWebResponse)wReq.GetResponse()) |
|
465 |
{ |
|
466 |
Stream respPostStream = wRes.GetResponseStream(); |
|
467 |
StreamReader readerPost = new StreamReader(respPostStream, Encoding.GetEncoding("EUC-KR"), true); |
|
468 |
|
|
469 |
var resResult = readerPost.ReadToEnd(); |
|
470 |
System.Diagnostics.Debug.WriteLine( resResult); |
|
471 |
} |
|
468 |
Console.WriteLine(responseText); |
|
472 | 469 |
|
473 | 470 |
|
474 | 471 |
using (var client = new System.Net.Http.HttpClient()) |
475 | 472 |
{ |
476 | 473 |
var uri2 = new Uri("http://localhost:9101/StationService/Rest/GetConvertItem"); |
477 |
var data2 = new |
|
474 |
|
|
475 |
var data2 = new SEND |
|
478 | 476 |
{ |
479 | 477 |
ProjectNo = "111111", |
480 | 478 |
DocumentID = "453" |
... | ... | |
490 | 488 |
System.Diagnostics.Debug.WriteLine(await response.Content.ReadAsStringAsync()); |
491 | 489 |
} |
492 | 490 |
} |
493 |
//var client = new System.Net.WebClient(); |
|
494 |
//var result = await client.DownloadStringTaskAsync("http://localhost:9101/StationService/Rest/GetConvertItem?ProjectNo=111111&DocumentID=453"); |
|
491 |
|
|
492 |
//var client2 = new System.Net.WebClient(); |
|
493 |
//client2.Proxy = new System.Net.WebProxy("127.0.0.1", 8888); |
|
494 |
//var result = await client2.DownloadStringTaskAsync("http://localhost:9101/StationService/Rest/GetConvertItem?ProjectNo=111111&DocumentID=453"); |
|
495 | 495 |
//System.Diagnostics.Debug.WriteLine(result); |
496 | 496 |
} |
497 |
|
|
498 |
static async Task<System.Net.Http.HttpResponseMessage> Request(HttpMethod pMethod, string pUrl, string pJsonContent, Dictionary<string, string> pHeaders) |
|
499 |
{ |
|
500 |
var httpRequestMessage = new HttpRequestMessage(); |
|
501 |
httpRequestMessage.Method = pMethod; |
|
502 |
httpRequestMessage.RequestUri = new Uri(pUrl); |
|
503 |
foreach (var head in pHeaders) |
|
504 |
{ |
|
505 |
httpRequestMessage.Headers.Add(head.Key, head.Value); |
|
506 |
} |
|
507 |
switch (pMethod.Method) |
|
508 |
{ |
|
509 |
case "POST": |
|
510 |
HttpContent httpContent = new StringContent(pJsonContent, Encoding.UTF8, "application/json"); |
|
511 |
httpRequestMessage.Content = httpContent; |
|
512 |
break; |
|
513 |
|
|
514 |
} |
|
515 |
|
|
516 |
return await new HttpClient().SendAsync(httpRequestMessage); |
|
517 |
} |
|
497 | 518 |
} |
498 | 519 |
|
499 | 520 |
class IntegratedServiceInstaller |
... | ... | |
559 | 580 |
SINST.Uninstall(null); |
560 | 581 |
} |
561 | 582 |
} |
583 |
|
|
584 |
public class SEND |
|
585 |
{ |
|
586 |
public string ProjectNo { get; set; } |
|
587 |
public string DocumentID{ get; set; } |
|
588 |
} |
|
562 | 589 |
} |
ConvertService/ServiceBase/ServiceTestApp/ServiceTestApp.csproj | ||
---|---|---|
108 | 108 |
<Reference Include="System.Runtime.Serialization" /> |
109 | 109 |
<Reference Include="System.ServiceModel" /> |
110 | 110 |
<Reference Include="System.ServiceProcess" /> |
111 |
<Reference Include="System.Web.Extensions" /> |
|
111 | 112 |
<Reference Include="System.Windows.Forms" /> |
112 | 113 |
<Reference Include="System.Xml" /> |
113 | 114 |
<Reference Include="Microsoft.CSharp" /> |
... | ... | |
191 | 192 |
<None Include="Connected Services\StationService\ServiceTestApp.StationService.ConvertItem.datasource"> |
192 | 193 |
<DependentUpon>Reference.svcmap</DependentUpon> |
193 | 194 |
</None> |
195 |
<None Include="json1.json" /> |
|
194 | 196 |
<None Include="packages.config" /> |
195 | 197 |
<None Include="Properties\app.manifest" /> |
196 | 198 |
<None Include="Properties\DataSources\Markus.Service.Interface.ConvertItem.datasource" /> |
ConvertService/ServiceBase/ServiceTestApp/json1.json | ||
---|---|---|
1 |
{ |
|
2 |
"GetConvertItemResult": { |
|
3 |
"ConvertPath": "D:\\MarkusV3\\Output\\111111_Tile\\4\\453", |
|
4 |
"CurrentPageNo": 250, |
|
5 |
"DocumentID": "453", |
|
6 |
"Exception": null, |
|
7 |
"PdfPath": "http:\/\/www.TEST.co.kr:1111\/TEST\/1111\/250page.pdf", |
|
8 |
"ProjectNo": "111111", |
|
9 |
"ProjectNumber": 111111, |
|
10 |
"Status": "4", |
|
11 |
"TotalPage": 250 |
|
12 |
}, |
|
13 |
|
|
14 |
|
|
15 |
{ |
|
16 |
"send":{ |
|
17 |
"ProjectNo": "111111", |
|
18 |
"DocumentID": "453" |
|
19 |
} |
|
20 |
} |
|
21 |
} |
내보내기 Unified diff