개정판 576a46dd
issue #0000 MarkusConvert 추가
Change-Id: I44133ed572da541d70a7a8d1c997d60d19336fca
ID2.Manager/ID2.Manager/App.config | ||
---|---|---|
33 | 33 |
<setting name="ID2SQLiteInfo" serializeAs="String"> |
34 | 34 |
<value /> |
35 | 35 |
</setting> |
36 |
<setting name="MarkusService" serializeAs="String"> |
|
37 |
<value>http://192.168.0.147:9991/Markusapi/MarkusImageCreateAPI</value> |
|
38 |
</setting> |
|
36 | 39 |
</ID2.Manager.Properties.Settings> |
37 | 40 |
</userSettings> |
38 | 41 |
<applicationSettings> |
... | ... | |
40 | 43 |
<setting name="ID2Port" serializeAs="String"> |
41 | 44 |
<value>2549</value> |
42 | 45 |
</setting> |
46 |
<setting name="ID2_Manager_MarkusImageCreate_ImageCreate" serializeAs="String"> |
|
47 |
<value>http://localhost:58425/ImageCreate.asmx</value> |
|
48 |
</setting> |
|
43 | 49 |
</ID2.Manager.Properties.Settings> |
44 | 50 |
</applicationSettings> |
45 | 51 |
<system.web> |
ID2.Manager/ID2.Manager/Classes/MarkusConvert.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Net; |
|
5 |
using System.Text; |
|
6 |
using System.Threading.Tasks; |
|
7 |
|
|
8 |
namespace ID2.Manager.Classes |
|
9 |
{ |
|
10 |
public static class MarkusConvert |
|
11 |
{ |
|
12 |
static string RequestMessage = @" |
|
13 |
<?xml version=""1.0"" encoding=""utf-8""?> |
|
14 |
<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/""> |
|
15 |
<soap:Body> |
|
16 |
<Run xmlns=""http://markus.org/""> |
|
17 |
<ProjectNo>@ProjectNo</ProjectNo> |
|
18 |
<DocID>@DocID</DocID> |
|
19 |
</Run> |
|
20 |
</soap:Body> |
|
21 |
</soap:Envelope> |
|
22 |
"; |
|
23 |
|
|
24 |
public static bool Call(string serviceUri,string projectNo,string DocumentID) |
|
25 |
{ |
|
26 |
bool result = false; |
|
27 |
|
|
28 |
try |
|
29 |
{ |
|
30 |
MarkusImageCreate.ImageCreate imageCreate = new MarkusImageCreate.ImageCreate(); |
|
31 |
imageCreate.Url = $"{serviceUri}/ImageCreate.asmx"; |
|
32 |
var value = imageCreate.Run(projectNo, DocumentID); |
|
33 |
|
|
34 |
result = true; |
|
35 |
} |
|
36 |
catch (Exception ex) |
|
37 |
{ |
|
38 |
|
|
39 |
throw ex; |
|
40 |
} |
|
41 |
|
|
42 |
return result; |
|
43 |
} |
|
44 |
} |
|
45 |
} |
ID2.Manager/ID2.Manager/CustomSynchronizationContext.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.ComponentModel; |
|
3 |
using System.Runtime.InteropServices; |
|
4 |
using System.Security; |
|
5 |
using System.Threading; |
|
6 |
using System.Windows.Forms; |
|
7 |
|
|
8 |
/// <summary> |
|
9 |
/// This class helps to avoid some synchornization issues between WinForms UI and Eyeshot parallel execution. More details here: https://stackoverflow.com/questions/35535580/why-does-parallel-for-execute-the-winforms-message-pump-and-how-to-prevent-it |
|
10 |
/// The problem (huge delay) was reproducible switching between two tabs of the EyeshotDemo that build a BRep (for example Bracket and Flange) and moving the mouse cursor very fast on the control surface just after tab switch. |
|
11 |
/// A similar problem (flickering) was present in the MarchingCubes sample. |
|
12 |
/// </summary> |
|
13 |
public class CustomSynchronizationContext : SynchronizationContext |
|
14 |
{ |
|
15 |
public static void Install() |
|
16 |
{ |
|
17 |
var currentContext = Current; |
|
18 |
if (currentContext is CustomSynchronizationContext) return; |
|
19 |
WindowsFormsSynchronizationContext.AutoInstall = false; |
|
20 |
SetSynchronizationContext(new CustomSynchronizationContext(currentContext)); |
|
21 |
} |
|
22 |
|
|
23 |
public static void Uninstall() |
|
24 |
{ |
|
25 |
var currentContext = Current as CustomSynchronizationContext; |
|
26 |
if (currentContext == null) return; |
|
27 |
SetSynchronizationContext(currentContext.baseContext); |
|
28 |
} |
|
29 |
|
|
30 |
private WindowsFormsSynchronizationContext baseContext; |
|
31 |
|
|
32 |
private CustomSynchronizationContext(SynchronizationContext currentContext) |
|
33 |
{ |
|
34 |
baseContext = currentContext as WindowsFormsSynchronizationContext ?? new WindowsFormsSynchronizationContext(); |
|
35 |
SetWaitNotificationRequired(); |
|
36 |
} |
|
37 |
|
|
38 |
public override SynchronizationContext CreateCopy() { return this; } |
|
39 |
public override void Post(SendOrPostCallback d, object state) { baseContext.Post(d, state); } |
|
40 |
public override void Send(SendOrPostCallback d, object state) { baseContext.Send(d, state); } |
|
41 |
public override void OperationStarted() { baseContext.OperationStarted(); } |
|
42 |
public override void OperationCompleted() { baseContext.OperationCompleted(); } |
|
43 |
|
|
44 |
public override int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout) |
|
45 |
{ |
|
46 |
int result = WaitForMultipleObjectsEx(waitHandles.Length, waitHandles, waitAll, millisecondsTimeout, false); |
|
47 |
if (result == -1) throw new Win32Exception(); |
|
48 |
return result; |
|
49 |
} |
|
50 |
|
|
51 |
[SuppressUnmanagedCodeSecurity] |
|
52 |
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] |
|
53 |
private static extern int WaitForMultipleObjectsEx(int nCount, IntPtr[] pHandles, bool bWaitAll, int dwMilliseconds, bool bAlertable); |
|
54 |
} |
ID2.Manager/ID2.Manager/ID2.Manager.csproj | ||
---|---|---|
85 | 85 |
<Reference Include="System.ComponentModel.DataAnnotations" /> |
86 | 86 |
<Reference Include="System.Configuration" /> |
87 | 87 |
<Reference Include="System.Core" /> |
88 |
<Reference Include="System.EnterpriseServices" /> |
|
88 | 89 |
<Reference Include="System.Runtime.Remoting" /> |
89 | 90 |
<Reference Include="System.Web.Extensions" /> |
91 |
<Reference Include="System.Web.Services" /> |
|
90 | 92 |
<Reference Include="System.Xml.Linq" /> |
91 | 93 |
<Reference Include="System.Data.DataSetExtensions" /> |
92 | 94 |
<Reference Include="Microsoft.CSharp" /> |
... | ... | |
104 | 106 |
<Compile Include="Classes\DocumentsWorker.cs" /> |
105 | 107 |
<Compile Include="Classes\ID2Helper.cs" /> |
106 | 108 |
<Compile Include="Classes\LinqExtension.cs" /> |
109 |
<Compile Include="Classes\MarkusConvert.cs" /> |
|
107 | 110 |
<Compile Include="Classes\MarkusUriCreate.cs" /> |
108 | 111 |
<Compile Include="Classes\OpenProperties.cs" /> |
109 | 112 |
<Compile Include="Controls\AutoCADViewer.cs"> |
... | ... | |
198 | 201 |
<Compile Include="Program.cs" /> |
199 | 202 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
200 | 203 |
<Compile Include="Settings.cs" /> |
204 |
<Compile Include="Web References\MarkusImageCreate\Reference.cs"> |
|
205 |
<AutoGen>True</AutoGen> |
|
206 |
<DesignTime>True</DesignTime> |
|
207 |
<DependentUpon>Reference.map</DependentUpon> |
|
208 |
</Compile> |
|
201 | 209 |
<EmbeddedResource Include="Controls\AutoCADViewer.resx"> |
202 | 210 |
<DependentUpon>AutoCADViewer.cs</DependentUpon> |
203 | 211 |
</EmbeddedResource> |
... | ... | |
270 | 278 |
<None Include="Template\Samsung Elec Task Management.xlsx"> |
271 | 279 |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
272 | 280 |
</None> |
281 |
<None Include="Web References\MarkusImageCreate\ImageCreate.wsdl" /> |
|
282 |
<None Include="Web References\MarkusImageCreate\Reference.map"> |
|
283 |
<Generator>MSDiscoCodeGenerator</Generator> |
|
284 |
<LastGenOutput>Reference.cs</LastGenOutput> |
|
285 |
</None> |
|
273 | 286 |
</ItemGroup> |
274 | 287 |
<ItemGroup> |
275 | 288 |
<None Include="Resources\Excel.png" /> |
... | ... | |
375 | 388 |
<None Include="Resources\Save.png" /> |
376 | 389 |
</ItemGroup> |
377 | 390 |
<ItemGroup> |
391 |
<None Include="Web References\MarkusImageCreate\ImageCreate.disco" /> |
|
378 | 392 |
<None Include="Resources\compare18.png" /> |
379 | 393 |
<EmbeddedResource Include="DefalutDockLayout.xml" /> |
380 | 394 |
<Content Include="ID2 Manager.ico" /> |
... | ... | |
386 | 400 |
<None Include="Resources\id218.png" /> |
387 | 401 |
<None Include="Resources\markus18.png" /> |
388 | 402 |
</ItemGroup> |
403 |
<ItemGroup> |
|
404 |
<WCFMetadata Include="Connected Services\" /> |
|
405 |
</ItemGroup> |
|
406 |
<ItemGroup> |
|
407 |
<WebReferences Include="Web References\" /> |
|
408 |
</ItemGroup> |
|
409 |
<ItemGroup> |
|
410 |
<WebReferenceUrl Include="http://localhost:58425/ImageCreate.asmx"> |
|
411 |
<UrlBehavior>Dynamic</UrlBehavior> |
|
412 |
<RelPath>Web References\MarkusImageCreate\</RelPath> |
|
413 |
<UpdateFromURL>http://localhost:58425/ImageCreate.asmx</UpdateFromURL> |
|
414 |
<ServiceLocationURL> |
|
415 |
</ServiceLocationURL> |
|
416 |
<CachedDynamicPropName> |
|
417 |
</CachedDynamicPropName> |
|
418 |
<CachedAppSettingsObjectName>Settings</CachedAppSettingsObjectName> |
|
419 |
<CachedSettingsPropName>ID2_Manager_MarkusImageCreate_ImageCreate</CachedSettingsPropName> |
|
420 |
</WebReferenceUrl> |
|
421 |
</ItemGroup> |
|
389 | 422 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
390 | 423 |
<PropertyGroup> |
391 | 424 |
<PostBuildEvent>if NOT exist "$(TargetDir)\kcom.exe" ( |
ID2.Manager/ID2.Manager/Main.Designer.cs | ||
---|---|---|
102 | 102 |
this.radButtonElementExcelExport = new Telerik.WinControls.UI.RadButtonElement(); |
103 | 103 |
this.radRibbonBarGroup2 = new Telerik.WinControls.UI.RadRibbonBarGroup(); |
104 | 104 |
this.radButtonElementDelete = new Telerik.WinControls.UI.RadButtonElement(); |
105 |
this.radRibbonBarGroup3 = new Telerik.WinControls.UI.RadRibbonBarGroup(); |
|
106 |
this.radButtonElementConvert = new Telerik.WinControls.UI.RadButtonElement(); |
|
105 | 107 |
this.radButtonElementSaveCommand = new Telerik.WinControls.UI.RadButtonElement(); |
106 | 108 |
this.radButtonElementRefreshCommand = new Telerik.WinControls.UI.RadButtonElement(); |
107 | 109 |
this.LayoutMain = new System.Windows.Forms.TableLayoutPanel(); |
... | ... | |
186 | 188 |
this.DockValidation = new Telerik.WinControls.UI.Docking.DocumentWindow(); |
187 | 189 |
this.LayoutValidation = new System.Windows.Forms.TableLayoutPanel(); |
188 | 190 |
this.DockTabStripComment = new Telerik.WinControls.UI.Docking.ToolTabStrip(); |
189 |
this.radRibbonBarGroup3 = new Telerik.WinControls.UI.RadRibbonBarGroup(); |
|
190 |
this.radButtonElementConvert = new Telerik.WinControls.UI.RadButtonElement(); |
|
191 | 191 |
((System.ComponentModel.ISupportInitialize)(this.ID2ManagerRadRibbonBar)).BeginInit(); |
192 | 192 |
((System.ComponentModel.ISupportInitialize)(this.radRibbonBarBackstageViewID2Manager)).BeginInit(); |
193 | 193 |
this.radRibbonBarBackstageViewID2Manager.SuspendLayout(); |
... | ... | |
448 | 448 |
this.radButtonElementDelete.Name = "radButtonElementDelete"; |
449 | 449 |
this.radButtonElementDelete.Text = "<html> DWG <p> Delete </html>"; |
450 | 450 |
// |
451 |
// radRibbonBarGroup3 |
|
452 |
// |
|
453 |
this.radRibbonBarGroup3.Items.AddRange(new Telerik.WinControls.RadItem[] { |
|
454 |
this.radButtonElementConvert}); |
|
455 |
this.radRibbonBarGroup3.Name = "radRibbonBarGroup3"; |
|
456 |
this.radRibbonBarGroup3.Text = "Markup"; |
|
457 |
// |
|
458 |
// radButtonElementConvert |
|
459 |
// |
|
460 |
this.radButtonElementConvert.Name = "radButtonElementConvert"; |
|
461 |
this.radButtonElementConvert.Text = "Convert"; |
|
462 |
// |
|
451 | 463 |
// radButtonElementSaveCommand |
452 | 464 |
// |
453 | 465 |
this.radButtonElementSaveCommand.Image = global::ID2.Manager.Properties.Resources.Save16x16; |
... | ... | |
498 | 510 |
this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); |
499 | 511 |
this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 85F)); |
500 | 512 |
this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); |
501 |
this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 75F));
|
|
513 |
this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 76F));
|
|
502 | 514 |
this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListFrReviewStatus, 4, 2); |
503 | 515 |
this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListToIsDiscussion, 2, 2); |
504 | 516 |
this.tableLayoutPanelCondition.Controls.Add(this.radLabelFrReviewStatus, 3, 2); |
... | ... | |
1795 | 1807 |
this.DockTabStripComment.TabIndex = 4; |
1796 | 1808 |
this.DockTabStripComment.TabStop = false; |
1797 | 1809 |
// |
1798 |
// radRibbonBarGroup3 |
|
1799 |
// |
|
1800 |
this.radRibbonBarGroup3.Items.AddRange(new Telerik.WinControls.RadItem[] { |
|
1801 |
this.radButtonElementConvert}); |
|
1802 |
this.radRibbonBarGroup3.Name = "radRibbonBarGroup3"; |
|
1803 |
this.radRibbonBarGroup3.Text = "Markup"; |
|
1804 |
// |
|
1805 |
// radButtonElementConvert |
|
1806 |
// |
|
1807 |
this.radButtonElementConvert.Name = "radButtonElementConvert"; |
|
1808 |
this.radButtonElementConvert.Text = "Convert"; |
|
1809 |
// |
|
1810 | 1810 |
// Main |
1811 | 1811 |
// |
1812 | 1812 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
2124 | 2124 |
|
2125 | 2125 |
private void RadButtonElementConvert_Click(object sender, EventArgs e) |
2126 | 2126 |
{ |
2127 |
RadMessageBox.Show($"Markus Convert 실행!!", Globals.Name, MessageBoxButtons.OK, RadMessageIcon.Info); |
|
2127 |
if(radGridViewDocuments.SelectedRows?.Count() > 0) |
|
2128 |
{ |
|
2129 |
var item = radGridViewDocuments.SelectedRows.First().DataBoundItem as Documents; |
|
2130 |
MarkusConvert.Call(Properties.Settings.Default.MarkusService, item.RefProjectCode, item.DocumentNo); |
|
2131 |
} |
|
2128 | 2132 |
} |
2129 | 2133 |
|
2130 | 2134 |
#region Save event |
ID2.Manager/ID2.Manager/Properties/Settings.Designer.cs | ||
---|---|---|
68 | 68 |
this["ID2SQLiteInfo"] = value; |
69 | 69 |
} |
70 | 70 |
} |
71 |
|
|
72 |
[global::System.Configuration.UserScopedSettingAttribute()] |
|
73 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
74 |
[global::System.Configuration.DefaultSettingValueAttribute("http://192.168.0.147:9991/Markusapi/MarkusImageCreateAPI")] |
|
75 |
public string MarkusService { |
|
76 |
get { |
|
77 |
return ((string)(this["MarkusService"])); |
|
78 |
} |
|
79 |
set { |
|
80 |
this["MarkusService"] = value; |
|
81 |
} |
|
82 |
} |
|
83 |
|
|
84 |
[global::System.Configuration.ApplicationScopedSettingAttribute()] |
|
85 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
86 |
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)] |
|
87 |
[global::System.Configuration.DefaultSettingValueAttribute("http://localhost:58425/ImageCreate.asmx")] |
|
88 |
public string ID2_Manager_MarkusImageCreate_ImageCreate { |
|
89 |
get { |
|
90 |
return ((string)(this["ID2_Manager_MarkusImageCreate_ImageCreate"])); |
|
91 |
} |
|
92 |
} |
|
71 | 93 |
} |
72 | 94 |
} |
ID2.Manager/ID2.Manager/Properties/Settings.settings | ||
---|---|---|
14 | 14 |
<Setting Name="ID2SQLiteInfo" Type="System.String" Scope="User"> |
15 | 15 |
<Value Profile="(Default)" /> |
16 | 16 |
</Setting> |
17 |
<Setting Name="MarkusService" Type="System.String" Scope="User"> |
|
18 |
<Value Profile="(Default)">http://192.168.0.147:9991/Markusapi/MarkusImageCreateAPI</Value> |
|
19 |
</Setting> |
|
20 |
<Setting Name="ID2_Manager_MarkusImageCreate_ImageCreate" Type="(Web Service URL)" Scope="Application"> |
|
21 |
<Value Profile="(Default)">http://localhost:58425/ImageCreate.asmx</Value> |
|
22 |
</Setting> |
|
17 | 23 |
</Settings> |
18 | 24 |
</SettingsFile> |
ID2.Manager/ID2.Manager/Web References/MarkusImageCreate/ImageCreate.disco | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/"> |
|
3 |
<contractRef ref="http://localhost:58425/ImageCreate.asmx?wsdl" docRef="http://localhost:58425/ImageCreate.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" /> |
|
4 |
<soap address="http://localhost:58425/ImageCreate.asmx" xmlns:q1="http://markus.org/" binding="q1:ImageCreateSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" /> |
|
5 |
<soap address="http://localhost:58425/ImageCreate.asmx" xmlns:q2="http://markus.org/" binding="q2:ImageCreateSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" /> |
|
6 |
</discovery> |
ID2.Manager/ID2.Manager/Web References/MarkusImageCreate/ImageCreate.wsdl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://markus.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://markus.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> |
|
3 |
<wsdl:types> |
|
4 |
<s:schema elementFormDefault="qualified" targetNamespace="http://markus.org/"> |
|
5 |
<s:element name="Path"> |
|
6 |
<s:complexType /> |
|
7 |
</s:element> |
|
8 |
<s:element name="PathResponse"> |
|
9 |
<s:complexType> |
|
10 |
<s:sequence> |
|
11 |
<s:element minOccurs="0" maxOccurs="1" name="PathResult" type="s:string" /> |
|
12 |
</s:sequence> |
|
13 |
</s:complexType> |
|
14 |
</s:element> |
|
15 |
<s:element name="Run"> |
|
16 |
<s:complexType> |
|
17 |
<s:sequence> |
|
18 |
<s:element minOccurs="0" maxOccurs="1" name="ProjectNo" type="s:string" /> |
|
19 |
<s:element minOccurs="0" maxOccurs="1" name="DocID" type="s:string" /> |
|
20 |
</s:sequence> |
|
21 |
</s:complexType> |
|
22 |
</s:element> |
|
23 |
<s:element name="RunResponse"> |
|
24 |
<s:complexType> |
|
25 |
<s:sequence> |
|
26 |
<s:element minOccurs="0" maxOccurs="1" name="RunResult" type="s:string" /> |
|
27 |
</s:sequence> |
|
28 |
</s:complexType> |
|
29 |
</s:element> |
|
30 |
</s:schema> |
|
31 |
</wsdl:types> |
|
32 |
<wsdl:message name="PathSoapIn"> |
|
33 |
<wsdl:part name="parameters" element="tns:Path" /> |
|
34 |
</wsdl:message> |
|
35 |
<wsdl:message name="PathSoapOut"> |
|
36 |
<wsdl:part name="parameters" element="tns:PathResponse" /> |
|
37 |
</wsdl:message> |
|
38 |
<wsdl:message name="RunSoapIn"> |
|
39 |
<wsdl:part name="parameters" element="tns:Run" /> |
|
40 |
</wsdl:message> |
|
41 |
<wsdl:message name="RunSoapOut"> |
|
42 |
<wsdl:part name="parameters" element="tns:RunResponse" /> |
|
43 |
</wsdl:message> |
|
44 |
<wsdl:portType name="ImageCreateSoap"> |
|
45 |
<wsdl:operation name="Path"> |
|
46 |
<wsdl:input message="tns:PathSoapIn" /> |
|
47 |
<wsdl:output message="tns:PathSoapOut" /> |
|
48 |
</wsdl:operation> |
|
49 |
<wsdl:operation name="Run"> |
|
50 |
<wsdl:input message="tns:RunSoapIn" /> |
|
51 |
<wsdl:output message="tns:RunSoapOut" /> |
|
52 |
</wsdl:operation> |
|
53 |
</wsdl:portType> |
|
54 |
<wsdl:binding name="ImageCreateSoap" type="tns:ImageCreateSoap"> |
|
55 |
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> |
|
56 |
<wsdl:operation name="Path"> |
|
57 |
<soap:operation soapAction="http://markus.org/Path" style="document" /> |
|
58 |
<wsdl:input> |
|
59 |
<soap:body use="literal" /> |
|
60 |
</wsdl:input> |
|
61 |
<wsdl:output> |
|
62 |
<soap:body use="literal" /> |
|
63 |
</wsdl:output> |
|
64 |
</wsdl:operation> |
|
65 |
<wsdl:operation name="Run"> |
|
66 |
<soap:operation soapAction="http://markus.org/Run" style="document" /> |
|
67 |
<wsdl:input> |
|
68 |
<soap:body use="literal" /> |
|
69 |
</wsdl:input> |
|
70 |
<wsdl:output> |
|
71 |
<soap:body use="literal" /> |
|
72 |
</wsdl:output> |
|
73 |
</wsdl:operation> |
|
74 |
</wsdl:binding> |
|
75 |
<wsdl:binding name="ImageCreateSoap12" type="tns:ImageCreateSoap"> |
|
76 |
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> |
|
77 |
<wsdl:operation name="Path"> |
|
78 |
<soap12:operation soapAction="http://markus.org/Path" style="document" /> |
|
79 |
<wsdl:input> |
|
80 |
<soap12:body use="literal" /> |
|
81 |
</wsdl:input> |
|
82 |
<wsdl:output> |
|
83 |
<soap12:body use="literal" /> |
|
84 |
</wsdl:output> |
|
85 |
</wsdl:operation> |
|
86 |
<wsdl:operation name="Run"> |
|
87 |
<soap12:operation soapAction="http://markus.org/Run" style="document" /> |
|
88 |
<wsdl:input> |
|
89 |
<soap12:body use="literal" /> |
|
90 |
</wsdl:input> |
|
91 |
<wsdl:output> |
|
92 |
<soap12:body use="literal" /> |
|
93 |
</wsdl:output> |
|
94 |
</wsdl:operation> |
|
95 |
</wsdl:binding> |
|
96 |
<wsdl:service name="ImageCreate"> |
|
97 |
<wsdl:port name="ImageCreateSoap" binding="tns:ImageCreateSoap"> |
|
98 |
<soap:address location="http://localhost:58425/ImageCreate.asmx" /> |
|
99 |
</wsdl:port> |
|
100 |
<wsdl:port name="ImageCreateSoap12" binding="tns:ImageCreateSoap12"> |
|
101 |
<soap12:address location="http://localhost:58425/ImageCreate.asmx" /> |
|
102 |
</wsdl:port> |
|
103 |
</wsdl:service> |
|
104 |
</wsdl:definitions> |
ID2.Manager/ID2.Manager/Web References/MarkusImageCreate/Reference.cs | ||
---|---|---|
1 |
//------------------------------------------------------------------------------ |
|
2 |
// <auto-generated> |
|
3 |
// 이 코드는 도구를 사용하여 생성되었습니다. |
|
4 |
// 런타임 버전:4.0.30319.42000 |
|
5 |
// |
|
6 |
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 |
|
7 |
// 이러한 변경 내용이 손실됩니다. |
|
8 |
// </auto-generated> |
|
9 |
//------------------------------------------------------------------------------ |
|
10 |
|
|
11 |
// |
|
12 |
// 이 소스 코드가 Microsoft.VSDesigner, 버전 4.0.30319.42000에서 자동으로 생성되었습니다. |
|
13 |
// |
|
14 |
#pragma warning disable 1591 |
|
15 |
|
|
16 |
namespace ID2.Manager.MarkusImageCreate { |
|
17 |
using System; |
|
18 |
using System.Web.Services; |
|
19 |
using System.Diagnostics; |
|
20 |
using System.Web.Services.Protocols; |
|
21 |
using System.Xml.Serialization; |
|
22 |
using System.ComponentModel; |
|
23 |
|
|
24 |
|
|
25 |
/// <remarks/> |
|
26 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
|
27 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
|
28 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
|
29 |
[System.Web.Services.WebServiceBindingAttribute(Name="ImageCreateSoap", Namespace="http://markus.org/")] |
|
30 |
public partial class ImageCreate : System.Web.Services.Protocols.SoapHttpClientProtocol { |
|
31 |
|
|
32 |
private System.Threading.SendOrPostCallback PathOperationCompleted; |
|
33 |
|
|
34 |
private System.Threading.SendOrPostCallback RunOperationCompleted; |
|
35 |
|
|
36 |
private bool useDefaultCredentialsSetExplicitly; |
|
37 |
|
|
38 |
/// <remarks/> |
|
39 |
public ImageCreate() { |
|
40 |
this.Url = global::ID2.Manager.Properties.Settings.Default.ID2_Manager_MarkusImageCreate_ImageCreate; |
|
41 |
if ((this.IsLocalFileSystemWebService(this.Url) == true)) { |
|
42 |
this.UseDefaultCredentials = true; |
|
43 |
this.useDefaultCredentialsSetExplicitly = false; |
|
44 |
} |
|
45 |
else { |
|
46 |
this.useDefaultCredentialsSetExplicitly = true; |
|
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
public new string Url { |
|
51 |
get { |
|
52 |
return base.Url; |
|
53 |
} |
|
54 |
set { |
|
55 |
if ((((this.IsLocalFileSystemWebService(base.Url) == true) |
|
56 |
&& (this.useDefaultCredentialsSetExplicitly == false)) |
|
57 |
&& (this.IsLocalFileSystemWebService(value) == false))) { |
|
58 |
base.UseDefaultCredentials = false; |
|
59 |
} |
|
60 |
base.Url = value; |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
public new bool UseDefaultCredentials { |
|
65 |
get { |
|
66 |
return base.UseDefaultCredentials; |
|
67 |
} |
|
68 |
set { |
|
69 |
base.UseDefaultCredentials = value; |
|
70 |
this.useDefaultCredentialsSetExplicitly = true; |
|
71 |
} |
|
72 |
} |
|
73 |
|
|
74 |
/// <remarks/> |
|
75 |
public event PathCompletedEventHandler PathCompleted; |
|
76 |
|
|
77 |
/// <remarks/> |
|
78 |
public event RunCompletedEventHandler RunCompleted; |
|
79 |
|
|
80 |
/// <remarks/> |
|
81 |
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://markus.org/Path", RequestNamespace="http://markus.org/", ResponseNamespace="http://markus.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
|
82 |
public string Path() { |
|
83 |
object[] results = this.Invoke("Path", new object[0]); |
|
84 |
return ((string)(results[0])); |
|
85 |
} |
|
86 |
|
|
87 |
/// <remarks/> |
|
88 |
public void PathAsync() { |
|
89 |
this.PathAsync(null); |
|
90 |
} |
|
91 |
|
|
92 |
/// <remarks/> |
|
93 |
public void PathAsync(object userState) { |
|
94 |
if ((this.PathOperationCompleted == null)) { |
|
95 |
this.PathOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPathOperationCompleted); |
|
96 |
} |
|
97 |
this.InvokeAsync("Path", new object[0], this.PathOperationCompleted, userState); |
|
98 |
} |
|
99 |
|
|
100 |
private void OnPathOperationCompleted(object arg) { |
|
101 |
if ((this.PathCompleted != null)) { |
|
102 |
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
|
103 |
this.PathCompleted(this, new PathCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
/// <remarks/> |
|
108 |
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://markus.org/Run", RequestNamespace="http://markus.org/", ResponseNamespace="http://markus.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] |
|
109 |
public string Run(string ProjectNo, string DocID) { |
|
110 |
object[] results = this.Invoke("Run", new object[] { |
|
111 |
ProjectNo, |
|
112 |
DocID}); |
|
113 |
return ((string)(results[0])); |
|
114 |
} |
|
115 |
|
|
116 |
/// <remarks/> |
|
117 |
public void RunAsync(string ProjectNo, string DocID) { |
|
118 |
this.RunAsync(ProjectNo, DocID, null); |
|
119 |
} |
|
120 |
|
|
121 |
/// <remarks/> |
|
122 |
public void RunAsync(string ProjectNo, string DocID, object userState) { |
|
123 |
if ((this.RunOperationCompleted == null)) { |
|
124 |
this.RunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRunOperationCompleted); |
|
125 |
} |
|
126 |
this.InvokeAsync("Run", new object[] { |
|
127 |
ProjectNo, |
|
128 |
DocID}, this.RunOperationCompleted, userState); |
|
129 |
} |
|
130 |
|
|
131 |
private void OnRunOperationCompleted(object arg) { |
|
132 |
if ((this.RunCompleted != null)) { |
|
133 |
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); |
|
134 |
this.RunCompleted(this, new RunCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); |
|
135 |
} |
|
136 |
} |
|
137 |
|
|
138 |
/// <remarks/> |
|
139 |
public new void CancelAsync(object userState) { |
|
140 |
base.CancelAsync(userState); |
|
141 |
} |
|
142 |
|
|
143 |
private bool IsLocalFileSystemWebService(string url) { |
|
144 |
if (((url == null) |
|
145 |
|| (url == string.Empty))) { |
|
146 |
return false; |
|
147 |
} |
|
148 |
System.Uri wsUri = new System.Uri(url); |
|
149 |
if (((wsUri.Port >= 1024) |
|
150 |
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { |
|
151 |
return true; |
|
152 |
} |
|
153 |
return false; |
|
154 |
} |
|
155 |
} |
|
156 |
|
|
157 |
/// <remarks/> |
|
158 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
|
159 |
public delegate void PathCompletedEventHandler(object sender, PathCompletedEventArgs e); |
|
160 |
|
|
161 |
/// <remarks/> |
|
162 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
|
163 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
|
164 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
|
165 |
public partial class PathCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
|
166 |
|
|
167 |
private object[] results; |
|
168 |
|
|
169 |
internal PathCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
|
170 |
base(exception, cancelled, userState) { |
|
171 |
this.results = results; |
|
172 |
} |
|
173 |
|
|
174 |
/// <remarks/> |
|
175 |
public string Result { |
|
176 |
get { |
|
177 |
this.RaiseExceptionIfNecessary(); |
|
178 |
return ((string)(this.results[0])); |
|
179 |
} |
|
180 |
} |
|
181 |
} |
|
182 |
|
|
183 |
/// <remarks/> |
|
184 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
|
185 |
public delegate void RunCompletedEventHandler(object sender, RunCompletedEventArgs e); |
|
186 |
|
|
187 |
/// <remarks/> |
|
188 |
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")] |
|
189 |
[System.Diagnostics.DebuggerStepThroughAttribute()] |
|
190 |
[System.ComponentModel.DesignerCategoryAttribute("code")] |
|
191 |
public partial class RunCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
|
192 |
|
|
193 |
private object[] results; |
|
194 |
|
|
195 |
internal RunCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
|
196 |
base(exception, cancelled, userState) { |
|
197 |
this.results = results; |
|
198 |
} |
|
199 |
|
|
200 |
/// <remarks/> |
|
201 |
public string Result { |
|
202 |
get { |
|
203 |
this.RaiseExceptionIfNecessary(); |
|
204 |
return ((string)(this.results[0])); |
|
205 |
} |
|
206 |
} |
|
207 |
} |
|
208 |
} |
|
209 |
|
|
210 |
#pragma warning restore 1591 |
ID2.Manager/ID2.Manager/Web References/MarkusImageCreate/Reference.map | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<DiscoveryClientResultsFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
|
3 |
<Results> |
|
4 |
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://localhost:58425/ImageCreate.asmx?wsdl" filename="ImageCreate.wsdl" /> |
|
5 |
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://localhost:58425/ImageCreate.asmx?disco" filename="ImageCreate.disco" /> |
|
6 |
</Results> |
|
7 |
</DiscoveryClientResultsFile> |
내보내기 Unified diff