Groups > Asp .Net > ASP.NET XML Web Services > Re: Can't Add Web Reference to Simple Hello World with Parameter




Can't Add Web Reference to Simple Hello World with Parameter

Can't Add Web Reference to Simple Hello World with Parameter
Mon, 31 Mar 2008 19:58:15 +000
If I create the basic Hello World webservice in VS2008, I can add a web
reference, discovering it and testing it with Invoke -- a browser shows me the
result, no problem.

If, However, I add a parameter to it the webservice and then try and discover
that and add  a web reference, the Invoke shows me an error HTTP 500 Server
Error.[WebMethod]publicstring HelloWorld2(string name)

{return"Hello World" + name;

}

 The only thing changed from the default webservice.asmx is the parameter.
Post Reply
Re: Can't Add Web Reference to Simple Hello World with Parameter
Mon, 31 Mar 2008 20:45:28 +000
Revised ....

 

Well I can add the web reference after alll....  it is just that the Invoke test
fails.
Post Reply
Re: Can't Add Web Reference to Simple Hello World with Parameter
Tue, 1 Apr 2008 17:17:23 +0000
Are you using "localhost" in the url?
Post Reply
Re: Can't Add Web Reference to Simple Hello World with Parameter
Wed, 2 Apr 2008 22:40:23 +0000
what exactly is the error coming up when you click the invoke button
Post Reply
Re: Can't Add Web Reference to Simple Hello World with Parameter
Thu, 3 Apr 2008 00:29:29 +0000
after getting to a machine that has vs2008 on it, that code will work fine, it
did for me. it could be an IIS setting on that folder, you might want to check
out that folders settings.
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact