Re: Add Web References problems

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Russ (russk2_at_eticomm.net)
Date: 05/04/04


Date: Tue, 04 May 2004 10:41:35 -0400

Ok Luke. My problem is finally sorted out. I did add the Web method,
but it did not work. The reason is because of my unfamilarity with
C#. In the generated code it has the string "// [Webmethod]". Note
that it is commented out. Following that is a Hello World method that
is also commented out.

When the tutorial told me to insert Web Methods, I replaced the Hello
world method code, but did not uncomment the [WebMethod] line. I
thought it was supposed to be a comment line (since it was already
commented out).

Once you told me the problem was that I had no Web Method, I guessed
that line was not a comment, and fixed it.

Now I have successfully added a Web Reference.

I would suggest that somewhere an error message should be generated to
tell users that the problem is no web methods, rather than just
getting the very unrelated message about disco not being able to
initialize the code generator.

Thank you much for your time and patience helping me through these
beginner woes. C++ is SO MUCH easier!!! (because I already know it).

Regards, Russ

On Tue, 04 May 2004 05:59:14 GMT, lukezhan@online.microsoft.com
([MSFT]) wrote:

>Hi Russ,
>
>>From the information, you haven't added any web method in the web service.
>A web service must have at least one web method, so that it can be added to
>other projects. Otherwise, there will be such a problem as you said. You
>can try to add a web method to the service code to see the result.
>
>By the way, string "service1" in IE when you test the web service, is just
>the class name you defined in the service code, like:
>
>public class Service1 : System.Web.Services.WebService
>{
>..
>
>Luke
>Microsoft Online Support
>
>Get Secure! www.microsoft.com/security
>(This posting is provided "AS IS", with no warranties, and confers no
>rights.)



Relevant Pages

  • Re: Please Help me- Creating Custom tokens-PLEASE HELP ME!!!!!!!!!!!!
    ... So before he his given access to the Web Method, ... > WSE on the Web Service first authenticates him against Active ... > Directory(Using UsernameTokenManagers- Authenticate Method). ... > is authenticated in the Web method before the response is sent I will ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Data table parameter in web services.
    ... So the webservice call is not hard-coded but for example ... which web service to use on a set of data. ... to execute and this string as a generic procdure that will execute the ... one of the web method, it does list it in IE, when i browse the asmx file, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Web Service Identity
    ... IIS for webservice A so as to get the clientside user's windows crediential ... | I have a web service that runs under its own IIS Application Pool ... | Within my web method I require the caller to be a member of a specific ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: OutOfMemoryException: Webservice, DataSet and file transport
    ... Calling the web service from a desktop pc gives no problems. ... achieve with the web method is updating the software. ... >> I keep the dataset in memory. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Retaining data between web service calls
    ... > would be globally accessible within the web service application code. ... > subsequent web method calls, the Application object no longer contains the ... the values stored in it are remembered from request to request. ... The Application object loses the values when the application restarts. ...
    (microsoft.public.dotnet.framework.webservices)