I am using this link to create a web service to WSS Library
http://msdn.microsoft.com/library/de...cesforSPPT.asp
The web service is register and can be found by a test web application. I
use the wsdl and get
No Ports or Methods were found on this page.
If this is an ASP.NET Web service, make sure that all WebMethods are public
and have a <WebMethod> attribute.
But the method see below is public
[WebMethod]
public string UploadDocument(string fileName, byte[] fileContents, string
pathFolder)
{
if ( fileContents == null)
{
return "Null Attachment";
}
try
{
SPWeb site = SPControl.GetContextWeb(Context);
SPFolder folder = site.GetFolder(pathFolder);
string fileUrl = fileName;
SPFile file = folder.Files.Add(fileUrl, fileContents);
return file.TimeCreated.ToLongDateString()+ "::" + file.Title;
}
catch (System.Exception ee)
{
return ee.Message + "::" + ee.Source;
}
The project has 2 text and button to do upload
I get build error
Custom Tool Warning DiscCodeGenerator unable to initialize code generator
the service runs on port 8081 with permission of windows integration, no ssl
It is a wss server but running on 8081 i should not have to define as
excluded correct? What is wrong where is example that works?
--
cindy