//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.42000.
//
#pragma warning disable 1591
namespace scheduler.MediswitchWebService {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="MediswitchGatewayV2Binding", Namespace="http://gateway.switchonline.co.za/MediswitchGateway/v2")]
public partial class MediswitchGatewayV2Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback echoOperationOperationCompleted;
private System.Threading.SendOrPostCallback fetchOperationOperationCompleted;
private System.Threading.SendOrPostCallback submitOperationOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public MediswitchGatewayV2Service() {
this.Url = global::scheduler.Properties.Settings.Default.scheduler_MediswitchWebService_MediswitchGatewayV2Service;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
///
public event echoOperationCompletedEventHandler echoOperationCompleted;
///
public event fetchOperationCompletedEventHandler fetchOperationCompleted;
///
public event submitOperationCompletedEventHandler submitOperationCompleted;
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", ResponseNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlElementAttribute("response")]
public string echoOperation() {
object[] results = this.Invoke("echoOperation", new object[0]);
return ((string)(results[0]));
}
///
public void echoOperationAsync() {
this.echoOperationAsync(null);
}
///
public void echoOperationAsync(object userState) {
if ((this.echoOperationOperationCompleted == null)) {
this.echoOperationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnechoOperationOperationCompleted);
}
this.InvokeAsync("echoOperation", new object[0], this.echoOperationOperationCompleted, userState);
}
private void OnechoOperationOperationCompleted(object arg) {
if ((this.echoOperationCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.echoOperationCompleted(this, new echoOperationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", ResponseNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlElementAttribute("response")]
public fetchResponse fetchOperation(string user, string passwd, string package, string txType, string swref, string force) {
object[] results = this.Invoke("fetchOperation", new object[] {
user,
passwd,
package,
txType,
swref,
force});
return ((fetchResponse)(results[0]));
}
///
public void fetchOperationAsync(string user, string passwd, string package, string txType, string swref, string force) {
this.fetchOperationAsync(user, passwd, package, txType, swref, force, null);
}
///
public void fetchOperationAsync(string user, string passwd, string package, string txType, string swref, string force, object userState) {
if ((this.fetchOperationOperationCompleted == null)) {
this.fetchOperationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnfetchOperationOperationCompleted);
}
this.InvokeAsync("fetchOperation", new object[] {
user,
passwd,
package,
txType,
swref,
force}, this.fetchOperationOperationCompleted, userState);
}
private void OnfetchOperationOperationCompleted(object arg) {
if ((this.fetchOperationCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.fetchOperationCompleted(this, new fetchOperationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", ResponseNamespace="http://gateway.switchonline.co.za/MediswitchGateway/v2", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlElementAttribute("response")]
public submitResponse submitOperation(string user, string passwd, string package, string destination, string txType, string mode, string txVersion, string userRef, string payload) {
object[] results = this.Invoke("submitOperation", new object[] {
user,
passwd,
package,
destination,
txType,
mode,
txVersion,
userRef,
payload});
return ((submitResponse)(results[0]));
}
///
public void submitOperationAsync(string user, string passwd, string package, string destination, string txType, string mode, string txVersion, string userRef, string payload) {
this.submitOperationAsync(user, passwd, package, destination, txType, mode, txVersion, userRef, payload, null);
}
///
public void submitOperationAsync(string user, string passwd, string package, string destination, string txType, string mode, string txVersion, string userRef, string payload, object userState) {
if ((this.submitOperationOperationCompleted == null)) {
this.submitOperationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsubmitOperationOperationCompleted);
}
this.InvokeAsync("submitOperation", new object[] {
user,
passwd,
package,
destination,
txType,
mode,
txVersion,
userRef,
payload}, this.submitOperationOperationCompleted, userState);
}
private void OnsubmitOperationOperationCompleted(object arg) {
if ((this.submitOperationCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.submitOperationCompleted(this, new submitOperationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
private bool IsLocalFileSystemWebService(string url) {
if (((url == null)
|| (url == string.Empty))) {
return false;
}
System.Uri wsUri = new System.Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
return true;
}
return false;
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1087.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://gateway.switchonline.co.za/MediswitchGateway/v2")]
public partial class fetchResponse {
private string statusField;
private string feedbackTypeField;
private string feedbackVersionField;
private string moreFilesField;
private string originalSwrefField;
private string originalUserRefField;
private string originalDataSetIdField;
private string fileNameField;
private string fileDateField;
private string responsePayloadField;
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string status {
get {
return this.statusField;
}
set {
this.statusField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string feedbackType {
get {
return this.feedbackTypeField;
}
set {
this.feedbackTypeField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string feedbackVersion {
get {
return this.feedbackVersionField;
}
set {
this.feedbackVersionField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string moreFiles {
get {
return this.moreFilesField;
}
set {
this.moreFilesField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string originalSwref {
get {
return this.originalSwrefField;
}
set {
this.originalSwrefField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string originalUserRef {
get {
return this.originalUserRefField;
}
set {
this.originalUserRefField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string originalDataSetId {
get {
return this.originalDataSetIdField;
}
set {
this.originalDataSetIdField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string fileName {
get {
return this.fileNameField;
}
set {
this.fileNameField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string fileDate {
get {
return this.fileDateField;
}
set {
this.fileDateField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string responsePayload {
get {
return this.responsePayloadField;
}
set {
this.responsePayloadField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1087.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://gateway.switchonline.co.za/MediswitchGateway/v2")]
public partial class submitResponse {
private string statusField;
private string swrefField;
private string retryField;
private string responsePayloadField;
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string status {
get {
return this.statusField;
}
set {
this.statusField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string swref {
get {
return this.swrefField;
}
set {
this.swrefField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string retry {
get {
return this.retryField;
}
set {
this.retryField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string responsePayload {
get {
return this.responsePayloadField;
}
set {
this.responsePayloadField = value;
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
public delegate void echoOperationCompletedEventHandler(object sender, echoOperationCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class echoOperationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal echoOperationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
public delegate void fetchOperationCompletedEventHandler(object sender, fetchOperationCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class fetchOperationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal fetchOperationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public fetchResponse Result {
get {
this.RaiseExceptionIfNecessary();
return ((fetchResponse)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
public delegate void submitOperationCompletedEventHandler(object sender, submitOperationCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1087.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class submitOperationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal submitOperationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public submitResponse Result {
get {
this.RaiseExceptionIfNecessary();
return ((submitResponse)(this.results[0]));
}
}
}
}
#pragma warning restore 1591