Re: Add Web References problems
From: Russ (russk2_at_eticomm.net)
Date: 05/04/04
- Next message: Louis-Philippe Dumoulin: "Serialization question"
- Previous message: Bob: "Re: Web References how to config to read URL from config?"
- In reply to: [MSFT]: "Re: Add Web References problems"
- Next in thread: [MSFT]: "Re: Add Web References problems"
- Reply: [MSFT]: "Re: Add Web References problems"
- Messages sorted by: [ date ] [ thread ]
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.)
- Next message: Louis-Philippe Dumoulin: "Serialization question"
- Previous message: Bob: "Re: Web References how to config to read URL from config?"
- In reply to: [MSFT]: "Re: Add Web References problems"
- Next in thread: [MSFT]: "Re: Add Web References problems"
- Reply: [MSFT]: "Re: Add Web References problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|