步步高的uploadserviceupload是什么意思?

Are you Sure?
Update: Our blog has moved. For future help and interaction, please contact us at
. Thank you!
WS UploadService is a custom built web service for SharePoint. It works with the latest SharePoint products (MOSS 2007 and WSS 3.0). The web service uploads documents to SharePoint server.
Project Home Page
WS UploadService is a web service written for Microsoft Office SharePoint Server 2007 and Windows SharePoint Services 3.0 and is meant for uploading documents into SharePoint.
Frequently Asked Questions (FAQ)
Q: I get &Could not create type& error message. What could be the reason?
Make sure your .asmx file has correct class name definition. Open your .asmx file and if class name is myFiles, change it to myService.myFiles!
&%@ WebService Language=&C#& Class=&myService.myFiles& %& (Correct)
&%@ WebService Language=&C#& Class=&myFiles& %& (Incorrect)
It's better that you use correct format in the first place but you can change the .asmx file after deployment as well. Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI folder and open your .asmx file in notepad (or any editor
of your choice) and make the changes as mentioned above.
Q: I get &Server did not recognize the value of HTTP Header SOAPAction: ...& error?
This error occurs if you do not use correct web service namespace. Following three lines should be included in your code, just before the class defintion:
This error can occur even if you omit the trailing slash of http://tempuri.org/, http://tempuri.org will result in an error.
Q: I get &File not found.& error?
This happens when SharePoint fails to find the assembly file. Make sure you have added the assembly in the correct bin folder. Also, make sure you have added the assembly in the GAC.
Q: I get &Unauthorized& error?
Make sure the user who is trying to use the web service has &Contributor& rights in the destination site or library. Also, make sure following lines are added to your client application:
oUploader.PreAuthenticate =
oUploader.Credentials = CredentialCache.DefaultC
Q: I get &SQL Server might not be started& error. I have double checked, my SQL Server is running. Why am i getting the error?
There could be several reasons for this. If you modified the web.config file, reverse the changes you made to the config file and then try again. The error has nothing to do with the SQL Server.
Q: I do not see my web service when i click &Web services on the local machine& in Add Web Reference?
Did you make changes in the spsdisco.aspx file? To include your web service in the list of web services on the SharePoint server, you must add reference to your web service in the spsdisco.aspx file (within the discovery element).
Q: Is it necessary to include the code in the code-behind?
No! You can write code in the myFiles.asmx (markup page) and delete the myFiles.asmx.cs file. Here is the myFiles.asmx code listing:
&%@ WebService Language=&C#& Class=&myService.myFiles& %&
using System.D
using System.W
using System.C
using System.Web.S
using System.Web.Services.P
using Microsoft.ShareP
using Microsoft.SharePoint.WebC
using System.N
namespace myService
/// &summary&
/// Summary description for Service1
/// &/summary&
[WebService(Namespace &http://tempuri.org/&)]
[WebServiceBinding(ConformsTo WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class myFiles : System.Web.Services.WebService
//[WebMethod]
//public string HelloWorld()
// return &Hello World&;
public string UploadDocument(string fileName, byte[] fileContents, string pathFolder)
if (fileContents == null)
return &Null Attachment&;
int iStartIndex = pathFolder.LastIndexOf(&/&);
string sitePath = pathFolder.Remove(iStartIndex);
string folderName = pathFolder.Substring(iStartIndex + 1);
SPSite site = new SPSite(sitePath);
SPWeb web = site.OpenWeb();
SPFolder folder = web.GetFolder(folderName);
string fileURL = fileN
folder.Files.Add(fileURL, fileContents);
if (folder.Files[fileURL].CheckedOutBy.Name != &&)
folder.Files[fileURL].CheckIn(&File Checked In&);
return &File added successfully!&;
catch (System.Exception ex)
return &Error: & + ex.Source + & - & + ex.M
Last edited
by , version 4
Most Helpful Reviews
&&&&&I have successfully integrated it with my project. Thank you so much. Installer was really helpful.
&&&&&Thanks for releasing the stable version. I just tested it. Wondeful! Installing it was super easy. How easy it is to customize it? I...【VIVO服务网点】→步步高VIVO销售服务网点
与VIVO相关的品牌
以下进入为品牌网整站分类:
与VIVO相关的品牌
以下进入为品牌网整站分类:
步步高VIVO销售服务网点
步步高VIVO销售服务网点是公司权威、准确,全面的官方销售,服务网点。
旨在为顾客提供准确,便捷的销售、服务网点信息;为合作伙伴提供公平,公正的沟通平台。公司始终以满足顾客需求为宗旨,以为合作伙伴提供优质服务为己任,不断创新和完善公司的服务体系,以良好的诚信经营理念解决客户面临的所有问题。

我要回帖

更多关于 atci service是什么 的文章

 

随机推荐