Commit 08730740676a4467fdd7dd954abd997f213bff8c
1 parent
d2aa7059
WSA-93
"Add integration/oem no so that integrators may associate a custom document reference" Implemented. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7866 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
42 additions
and
4 deletions
ktwebservice/nunit/helper.cs
| @@ -4,7 +4,28 @@ using System.Net; | @@ -4,7 +4,28 @@ using System.Net; | ||
| 4 | using System.IO; | 4 | using System.IO; |
| 5 | using System.Collections; | 5 | using System.Collections; |
| 6 | using System.Data; | 6 | using System.Data; |
| 7 | -using System.Data.Odbc; | 7 | +using System.Data.Odbc; |
| 8 | +using System.Runtime.Remoting; | ||
| 9 | +using System.Runtime.Remoting.Channels; | ||
| 10 | +using System.Runtime.Remoting.Messaging; | ||
| 11 | +using System.Runtime.Remoting.Activation; | ||
| 12 | +using System.Runtime.Remoting.Services; | ||
| 13 | +using System.Runtime.Serialization; | ||
| 14 | +using System.Text.RegularExpressions; | ||
| 15 | +using System.Web.Services.Protocols; | ||
| 16 | +using System.Reflection; | ||
| 17 | +using Interception; | ||
| 18 | +using System.Web; | ||
| 19 | +using System.Xml; | ||
| 20 | +using System.Web.Services; | ||
| 21 | +using System.Diagnostics; | ||
| 22 | +using System.Runtime.CompilerServices; | ||
| 23 | +using System.Web.Services.Description; | ||
| 24 | +using System.Web.Services.Discovery; | ||
| 25 | +using System.Xml.Serialization; | ||
| 26 | +using System.Xml.Schema; | ||
| 27 | +using System.Threading; | ||
| 28 | +using System.Web.Services.Protocols; | ||
| 8 | 29 | ||
| 9 | namespace MonoTests.KnowledgeTree | 30 | namespace MonoTests.KnowledgeTree |
| 10 | { | 31 | { |
| @@ -18,7 +39,22 @@ namespace MonoTests.KnowledgeTree | @@ -18,7 +39,22 @@ namespace MonoTests.KnowledgeTree | ||
| 18 | { | 39 | { |
| 19 | this.Url = Environment.GetEnvironmentVariable("KT_ROOT_URL") + "/ktwebservice/webservice.php"; | 40 | this.Url = Environment.GetEnvironmentVariable("KT_ROOT_URL") + "/ktwebservice/webservice.php"; |
| 20 | } | 41 | } |
| 21 | - } | 42 | + } |
| 43 | + | ||
| 44 | + public class MySoapHttpClientProtocol : SoapHttpClientProtocol | ||
| 45 | + { | ||
| 46 | + public MySoapHttpClientProtocol() : base() {} | ||
| 47 | + | ||
| 48 | + public object [] ReceiveResponse (WebResponse response, SoapClientMessage message, SoapExtension[] extensions) | ||
| 49 | + { | ||
| 50 | + | ||
| 51 | + StreamReader sr = new StreamReader(response.GetResponseStream()); | ||
| 52 | + String content = sr.ReadToEnd(); | ||
| 53 | + System.Console.WriteLine(content); | ||
| 54 | + | ||
| 55 | + return null; | ||
| 56 | + } | ||
| 57 | + } | ||
| 22 | 58 | ||
| 23 | public class KTTest | 59 | public class KTTest |
| 24 | { | 60 | { |
| @@ -33,8 +69,10 @@ namespace MonoTests.KnowledgeTree | @@ -33,8 +69,10 @@ namespace MonoTests.KnowledgeTree | ||
| 33 | kt_response response = this._kt.login("admin","admin","127.0.0.1"); | 69 | kt_response response = this._kt.login("admin","admin","127.0.0.1"); |
| 34 | this._session = response.message; | 70 | this._session = response.message; |
| 35 | this._verbose = false; | 71 | this._verbose = false; |
| 36 | - this.setupDb(); | ||
| 37 | - } | 72 | + this.setupDb(); |
| 73 | + | ||
| 74 | + //System.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse | ||
| 75 | + } | ||
| 38 | 76 | ||
| 39 | void setupDb() | 77 | void setupDb() |
| 40 | { | 78 | { |