//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.3082
//
// 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 2.0.50727.3082.
//
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Threading;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
#pragma warning disable 1591
namespace CMS.SharePoint.Copy
{
using System;
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
[DebuggerStepThrough()]
[DesignerCategory("code")]
[WebServiceBinding(Name = "CopySoap", Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
public partial class Copy : SoapHttpClientProtocol
{
private SendOrPostCallback CopyIntoItemsLocalOperationCompleted;
private SendOrPostCallback CopyIntoItemsOperationCompleted;
private SendOrPostCallback GetItemOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public Copy(string url)
{
Url = url;
if ((IsLocalFileSystemWebService(Url) == true))
{
UseDefaultCredentials = true;
useDefaultCredentialsSetExplicitly = false;
}
else
{
useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url
{
get
{
return base.Url;
}
set
{
if ((((IsLocalFileSystemWebService(base.Url) == true)
&& (useDefaultCredentialsSetExplicitly == false))
&& (IsLocalFileSystemWebService(value) == false)))
{
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials
{
get
{
return base.UseDefaultCredentials;
}
set
{
base.UseDefaultCredentials = value;
useDefaultCredentialsSetExplicitly = true;
}
}
///
public event CopyIntoItemsLocalCompletedEventHandler CopyIntoItemsLocalCompleted;
///
public event CopyIntoItemsCompletedEventHandler CopyIntoItemsCompleted;
///
public event GetItemCompletedEventHandler GetItemCompleted;
///
[SoapDocumentMethod("http://schemas.microsoft.com/sharepoint/soap/CopyIntoItemsLocal", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public uint CopyIntoItemsLocal(string SourceUrl, string[] DestinationUrls, out CopyResult[] Results)
{
object[] results1 = Invoke("CopyIntoItemsLocal", new object[]
{
SourceUrl,
DestinationUrls
});
Results = ((CopyResult[])(results1[1]));
return ((uint)(results1[0]));
}
///
public void CopyIntoItemsLocalAsync(string SourceUrl, string[] DestinationUrls)
{
CopyIntoItemsLocalAsync(SourceUrl, DestinationUrls, null);
}
///
public void CopyIntoItemsLocalAsync(string SourceUrl, string[] DestinationUrls, object userState)
{
if ((CopyIntoItemsLocalOperationCompleted == null))
{
CopyIntoItemsLocalOperationCompleted = new SendOrPostCallback(OnCopyIntoItemsLocalOperationCompleted);
}
InvokeAsync("CopyIntoItemsLocal", new object[]
{
SourceUrl,
DestinationUrls
}, CopyIntoItemsLocalOperationCompleted, userState);
}
private void OnCopyIntoItemsLocalOperationCompleted(object arg)
{
if ((CopyIntoItemsLocalCompleted != null))
{
InvokeCompletedEventArgs invokeArgs = ((InvokeCompletedEventArgs)(arg));
CopyIntoItemsLocalCompleted(this, new CopyIntoItemsLocalCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[SoapDocumentMethod("http://schemas.microsoft.com/sharepoint/soap/CopyIntoItems", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public uint CopyIntoItems(string SourceUrl, string[] DestinationUrls, FieldInformation[] Fields, [XmlElement(DataType = "base64Binary")] byte[] Stream, out CopyResult[] Results)
{
object[] results1 = Invoke("CopyIntoItems", new object[]
{
SourceUrl,
DestinationUrls,
Fields,
Stream
});
Results = ((CopyResult[])(results1[1]));
return ((uint)(results1[0]));
}
///
public void CopyIntoItemsAsync(string SourceUrl, string[] DestinationUrls, FieldInformation[] Fields, byte[] Stream)
{
CopyIntoItemsAsync(SourceUrl, DestinationUrls, Fields, Stream, null);
}
///
public void CopyIntoItemsAsync(string SourceUrl, string[] DestinationUrls, FieldInformation[] Fields, byte[] Stream, object userState)
{
if ((CopyIntoItemsOperationCompleted == null))
{
CopyIntoItemsOperationCompleted = new SendOrPostCallback(OnCopyIntoItemsOperationCompleted);
}
InvokeAsync("CopyIntoItems", new object[]
{
SourceUrl,
DestinationUrls,
Fields,
Stream
}, CopyIntoItemsOperationCompleted, userState);
}
private void OnCopyIntoItemsOperationCompleted(object arg)
{
if ((CopyIntoItemsCompleted != null))
{
InvokeCompletedEventArgs invokeArgs = ((InvokeCompletedEventArgs)(arg));
CopyIntoItemsCompleted(this, new CopyIntoItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[SoapDocumentMethod("http://schemas.microsoft.com/sharepoint/soap/GetItem", RequestNamespace = "http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace = "http://schemas.microsoft.com/sharepoint/soap/", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public uint GetItem(string Url, out FieldInformation[] Fields, [XmlElement(DataType = "base64Binary")] out byte[] Stream)
{
object[] results = Invoke("GetItem", new object[]
{
Url
});
Fields = ((FieldInformation[])(results[1]));
Stream = ((byte[])(results[2]));
return ((uint)(results[0]));
}
///
public void GetItemAsync(string Url)
{
GetItemAsync(Url, null);
}
///
public void GetItemAsync(string Url, object userState)
{
if ((GetItemOperationCompleted == null))
{
GetItemOperationCompleted = new SendOrPostCallback(OnGetItemOperationCompleted);
}
InvokeAsync("GetItem", new object[]
{
Url
}, GetItemOperationCompleted, userState);
}
private void OnGetItemOperationCompleted(object arg)
{
if ((GetItemCompleted != null))
{
InvokeCompletedEventArgs invokeArgs = ((InvokeCompletedEventArgs)(arg));
GetItemCompleted(this, new GetItemCompletedEventArgs(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;
}
Uri wsUri = new Uri(url);
if (((wsUri.Port >= 1024)
&& (string.Compare(wsUri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0)))
{
return true;
}
return false;
}
}
///
[GeneratedCode("System.Xml", "2.0.50727.3082")]
[Serializable()]
[DebuggerStepThrough()]
[DesignerCategory("code")]
[XmlType(Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
public partial class CopyResult
{
private CopyErrorCode errorCodeField;
private string errorMessageField;
private string destinationUrlField;
///
[XmlAttribute()]
public CopyErrorCode ErrorCode
{
get
{
return errorCodeField;
}
set
{
errorCodeField = value;
}
}
///
[XmlAttribute()]
public string ErrorMessage
{
get
{
return errorMessageField;
}
set
{
errorMessageField = value;
}
}
///
[XmlAttribute()]
public string DestinationUrl
{
get
{
return destinationUrlField;
}
set
{
destinationUrlField = value;
}
}
}
///
[GeneratedCode("System.Xml", "2.0.50727.3082")]
[Serializable()]
[XmlType(Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
public enum CopyErrorCode
{
///
Success,
///
DestinationInvalid,
///
DestinationMWS,
///
SourceInvalid,
///
DestinationCheckedOut,
///
InvalidUrl,
///
Unknown,
}
///
[GeneratedCode("System.Xml", "2.0.50727.3082")]
[Serializable()]
[DebuggerStepThrough()]
[DesignerCategory("code")]
[XmlType(Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
public partial class FieldInformation
{
private FieldType typeField;
private string displayNameField;
private string internalNameField;
private Guid idField;
private string valueField;
///
[XmlAttribute()]
public FieldType Type
{
get
{
return typeField;
}
set
{
typeField = value;
}
}
///
[XmlAttribute()]
public string DisplayName
{
get
{
return displayNameField;
}
set
{
displayNameField = value;
}
}
///
[XmlAttribute()]
public string InternalName
{
get
{
return internalNameField;
}
set
{
internalNameField = value;
}
}
///
[XmlAttribute()]
public Guid Id
{
get
{
return idField;
}
set
{
idField = value;
}
}
///
[XmlAttribute()]
public string Value
{
get
{
return valueField;
}
set
{
valueField = value;
}
}
}
///
[GeneratedCode("System.Xml", "2.0.50727.3082")]
[Serializable()]
[XmlType(Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
public enum FieldType
{
///
Invalid,
///
Integer,
///
Text,
///
Note,
///
DateTime,
///
Counter,
///
Choice,
///
Lookup,
///
Boolean,
///
Number,
///
Currency,
///
URL,
///
Computed,
///
Threading,
///
Guid,
///
MultiChoice,
///
GridChoice,
///
Calculated,
///
File,
///
Attachments,
///
User,
///
Recurrence,
///
CrossProjectLink,
///
ModStat,
///
AllDayEvent,
///
Error,
}
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
public delegate void CopyIntoItemsLocalCompletedEventHandler(object sender, CopyIntoItemsLocalCompletedEventArgs e);
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
[DebuggerStepThrough()]
[DesignerCategory("code")]
public partial class CopyIntoItemsLocalCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CopyIntoItemsLocalCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState)
{
this.results = results;
}
///
public uint Result
{
get
{
RaiseExceptionIfNecessary();
return ((uint)(results[0]));
}
}
///
public CopyResult[] Results
{
get
{
RaiseExceptionIfNecessary();
return ((CopyResult[])(results[1]));
}
}
}
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
public delegate void CopyIntoItemsCompletedEventHandler(object sender, CopyIntoItemsCompletedEventArgs e);
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
[DebuggerStepThrough()]
[DesignerCategory("code")]
public partial class CopyIntoItemsCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal CopyIntoItemsCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState)
{
this.results = results;
}
///
public uint Result
{
get
{
RaiseExceptionIfNecessary();
return ((uint)(results[0]));
}
}
///
public CopyResult[] Results
{
get
{
RaiseExceptionIfNecessary();
return ((CopyResult[])(results[1]));
}
}
}
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
public delegate void GetItemCompletedEventHandler(object sender, GetItemCompletedEventArgs e);
///
[GeneratedCode("System.Web.Services", "2.0.50727.3053")]
[DebuggerStepThrough()]
[DesignerCategory("code")]
public partial class GetItemCompletedEventArgs : AsyncCompletedEventArgs
{
private object[] results;
internal GetItemCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState)
{
this.results = results;
}
///
public uint Result
{
get
{
RaiseExceptionIfNecessary();
return ((uint)(results[0]));
}
}
///
public FieldInformation[] Fields
{
get
{
RaiseExceptionIfNecessary();
return ((FieldInformation[])(results[1]));
}
}
///
public byte[] Stream
{
get
{
RaiseExceptionIfNecessary();
return ((byte[])(results[2]));
}
}
}
}
#pragma warning restore 1591