개정판 6843ac13
issue #0000 https sign data 가져오도록 수정
Change-Id: I1472fc0e57151a646e144ff39760aa4ddf4469ef
KCOM/Properties/AssemblyInfo.cs | ||
---|---|---|
51 | 51 |
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 |
52 | 52 |
// 지정되도록 할 수 있습니다. |
53 | 53 |
// [assembly: AssemblyVersion("1.0.*")] |
54 |
[assembly: AssemblyVersion("5.5.4.0")]
|
|
55 |
[assembly: AssemblyFileVersion("5.5.4.0")]
|
|
54 |
[assembly: AssemblyVersion("5.5.5.0")]
|
|
55 |
[assembly: AssemblyFileVersion("5.5.5.0")]
|
|
56 | 56 |
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)] |
MarkupToPDF/Common/GetUserSign.cs | ||
---|---|---|
35 | 35 |
/// <returns></returns> |
36 | 36 |
public static string GetSign(string UserID, string ProjectNo,bool isExternal= false) |
37 | 37 |
{ |
38 |
BasicHttpBinding _binding; |
|
38 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
|
39 |
|
|
40 |
System.ServiceModel.Channels.Binding binding; |
|
39 | 41 |
EndpointAddress _EndPoint; |
40 | 42 |
|
41 |
_binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); |
|
42 |
_binding.MaxBufferSize = 2147483647; |
|
43 |
_binding.MaxReceivedMessageSize = 2147483647; |
|
44 |
_binding.OpenTimeout = new TimeSpan(0, 1, 0); |
|
45 |
_binding.ReceiveTimeout = new TimeSpan(0, 10, 0); |
|
46 |
_binding.CloseTimeout = new TimeSpan(0, 5, 0); |
|
47 |
_binding.SendTimeout = new TimeSpan(0, 5, 0); |
|
48 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
|
49 |
_binding.TransferMode = TransferMode.Buffered; |
|
43 |
Uri serviceUri = new Uri(sBaseServiceURL); |
|
44 |
|
|
45 |
if (serviceUri.Scheme == Uri.UriSchemeHttp) |
|
46 |
{ |
|
47 |
var _basichttpbinding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); |
|
48 |
_basichttpbinding.MaxBufferSize = 2147483647; |
|
49 |
_basichttpbinding.MaxReceivedMessageSize = 2147483647; |
|
50 |
_basichttpbinding.OpenTimeout = new TimeSpan(0, 1, 0); |
|
51 |
_basichttpbinding.ReceiveTimeout = new TimeSpan(0, 10, 0); |
|
52 |
_basichttpbinding.CloseTimeout = new TimeSpan(0, 5, 0); |
|
53 |
_basichttpbinding.SendTimeout = new TimeSpan(0, 5, 0); |
|
54 |
_basichttpbinding.TextEncoding = System.Text.Encoding.UTF8; |
|
55 |
_basichttpbinding.TransferMode = TransferMode.Buffered; |
|
56 |
|
|
57 |
binding = _basichttpbinding; |
|
58 |
} |
|
59 |
else |
|
60 |
{ |
|
61 |
var customBinding = new System.ServiceModel.Channels.CustomBinding() |
|
62 |
{ |
|
63 |
OpenTimeout = new TimeSpan(0, 30, 0), |
|
64 |
ReceiveTimeout = new TimeSpan(0, 30, 0), |
|
65 |
CloseTimeout = new TimeSpan(0, 30, 0), |
|
66 |
SendTimeout = new TimeSpan(0, 30, 0), |
|
67 |
}; |
|
68 |
var httpTranport = new System.ServiceModel.Channels.HttpsTransportBindingElement |
|
69 |
{ |
|
70 |
MaxBufferPoolSize = Int32.MaxValue, |
|
71 |
MaxBufferSize = Int32.MaxValue, |
|
72 |
MaxReceivedMessageSize = Int32.MaxValue, |
|
73 |
RequestInitializationTimeout = new TimeSpan(0, 30, 0), |
|
74 |
}; |
|
75 |
|
|
76 |
customBinding.CreateBindingElements(); |
|
77 |
|
|
78 |
var reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement(); |
|
79 |
|
|
80 |
var encoding = new System.ServiceModel.Channels.TextMessageEncodingBindingElement |
|
81 |
{ |
|
82 |
MaxReadPoolSize = Int32.MaxValue, |
|
83 |
MaxWritePoolSize = Int32.MaxValue, |
|
84 |
MessageVersion = System.ServiceModel.Channels.MessageVersion.Soap12WSAddressing10, |
|
85 |
WriteEncoding = System.Text.Encoding.UTF8, |
|
86 |
ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas |
|
87 |
{ |
|
88 |
MaxArrayLength = Int32.MaxValue, |
|
89 |
MaxBytesPerRead = Int32.MaxValue, |
|
90 |
MaxDepth = Int32.MaxValue, |
|
91 |
MaxNameTableCharCount = Int32.MaxValue, |
|
92 |
MaxStringContentLength = Int32.MaxValue |
|
93 |
} |
|
94 |
}; |
|
95 |
customBinding.Elements.Add(reliableSession); |
|
96 |
customBinding.Elements.Add(httpTranport); |
|
97 |
|
|
98 |
binding = customBinding; |
|
99 |
} |
|
100 |
|
|
50 | 101 |
string localdomain = CommonLib.Common.GetConfigString("HOST_DOMAIN", "DOMAIN", ""); |
51 | 102 |
|
52 | 103 |
var hostEntry = CommonLib.DNSHelper.GetHostEntryTask(); |
... | ... | |
61 | 112 |
// 외부 사용자 |
62 | 113 |
isExternal = true; |
63 | 114 |
} |
64 |
|
|
65 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
|
66 | 115 |
//CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
67 | 116 |
|
68 | 117 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", sBaseServiceURL)); |
69 | 118 |
|
70 |
markus_api.ServiceDeepViewClient client = new markus_api.ServiceDeepViewClient(_binding, _EndPoint);
|
|
119 |
markus_api.ServiceDeepViewClient client = new markus_api.ServiceDeepViewClient(binding, _EndPoint); |
|
71 | 120 |
var _sign = client.GetSignData(ProjectNo, UserID); |
72 | 121 |
|
73 | 122 |
return _sign; |
내보내기 Unified diff