Terence
Apr 29th, 2002, 12:47 AM
I am using the official release of Visual Studio on W2K. When I was exploring with the web service, I failed to add web reference to a web form. What I have done are:
(1) Create a very simple web service and build it. I was able to use it via http://localhost/WebService1/Service1.asmx
(2) Close this solution.
(3) Open a new project for a new web form
(4) add web reference by selecting this option on the project tool submenu.
(5) On the "add web reference" window, I could only see the two UDDI items but I could not find the "web reference on local web server"
(6) I explicitely typed in http://localhost/webservice1/Service1.asmx on the address box and were able to get to the HTML view of this web service interface. Then I pressed the add web reference button to add it and the solution explorer showed a web reference folder added.
(7) But when I add code to reference to the service in the web form, the Intellisense could not find the web service.
Could anyone tell me what I have done wrongly ?
(1) Create a very simple web service and build it. I was able to use it via http://localhost/WebService1/Service1.asmx
(2) Close this solution.
(3) Open a new project for a new web form
(4) add web reference by selecting this option on the project tool submenu.
(5) On the "add web reference" window, I could only see the two UDDI items but I could not find the "web reference on local web server"
(6) I explicitely typed in http://localhost/webservice1/Service1.asmx on the address box and were able to get to the HTML view of this web service interface. Then I pressed the add web reference button to add it and the solution explorer showed a web reference folder added.
(7) But when I add code to reference to the service in the web form, the Intellisense could not find the web service.
Could anyone tell me what I have done wrongly ?