我正在尝试调用webservice来创建sharepoint中的文件夹。
我已经在我的应用程序中添加了特定wsdl的服务引用,当我运行我的应用程序时,它在下面的代码中点击 base.url
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="DwsSoap", Namespace="http://schemas.microsoft.com/sharepoint/soap/dws/")]
public partial class Dws : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback CreateDwsOperationCompleted;
private System.Threading.SendOrPostCallback DeleteDwsOperationCompleted;
private System.Threading.SendOrPostCallback GetDwsMetaDataOperationCompleted;
private System.Threading.SendOrPostCallback GetDwsDataOperationCompleted;
private System.Threading.SendOrPostCallback UpdateDwsDataOperationCompleted;
private System.Threading.SendOrPostCallback RemoveDwsUserOperationCompleted;
private System.Threading.SendOrPostCallback RenameDwsOperationCompleted;
private System.Threading.SendOrPostCallback FindDwsDocOperationCompleted;
private System.Threading.SendOrPostCallback CanCreateDwsUrlOperationCompleted;
private System.Threading.SendOrPostCallback CreateFolderOperationCompleted;
private System.Threading.SendOrPostCallback DeleteFolderOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public Dws() {
this.Url = global::webservice.Properties.Settings.Default.webservice_FolderReference_Dws;
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;// **hitting here**
}
}
好心的,有人帮帮我......