473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

discocodegenerator unable to initialize my method is public

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
Mar 14 '06 #1
1 1869
Hi Cindy,

Welcome to the MSDN newsgroup.

As for the msdn article you mentioned, I did have heard from some other
guys who use the approach mentioned in it to provide webservice access for
their sharepoint server. Though I'm not quite familiar with WSS, I think
you can first check the WSDL document url of your deployed webservice to
see whether it can be visited correctly and whether it has expose the
correct endpoint information of the webservice.

When you use webbrowser to visit the webservice's WSDL document, does it
display correctly?(shows the XML document which contains the WSDL
description of the webservice). If it can display correctly, you can look
at the service's endpoint (address) to see whehter it display the correct
address (url and port) which is accessible.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




Mar 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Hannon | last post by:
I am trying to initialize an array only once so it can be seen & used by any functions that need it. As I understand it, if a variable is declared by itself outside of any functions, its scope is...
2
by: paul meaney | last post by:
All, myself and another developer have been staring blankly at a screen for the past 48 hours and are wondering just what stunningly obvious thing we are missing. We are trying to load up 2...
10
by: Don Wash | last post by:
Hi! I'm pretty frustrated learning ASP.NET. I'm learning ASP.NET by downloading samples from various ASP.NET websites and none of the samples worked so far. The SAME error was shown whenever I...
3
by: mcollier | last post by:
I'm having trouble getting my server controls in my code-behind file to initialize. I field names exactly match that of the control in the ASPX file. The controls are also public. However, in my...
8
by: bryan | last post by:
I'm using the UIP App block and I have overridden the Initialize method, but my override never gets called. Here's the code: public override void Initialize(TaskArgumentsHolder args,...
0
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable...
1
by: Pepe | last post by:
Hi, I have created the "Hello World" web service with one web method on it "HelloWorld" (yes the tag is there). I have deployed the web service to a Windows 2003 server, then I create a new...
2
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored...
0
by: genc ymeri | last post by:
Hi over there, I'm building a webservice (C#/>Net 1.1) and I'm trying to add a web reference , a WSDL file from a location "c:\inetpub\WSDLfile.wsdl" . (This is the WSDL file of another webserver...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.