Winform og webservice
I en guided tutorial er jeg ved at lave en winform der er knyttet til en XML webservice, i winformen har jeg indsat en statusbar som først viser:Working in offline mode
Efter at have kørt iisreset /start i run skuller der i statusbaren stå:
Connected to WS
Det gør der ikke og jeg ville gerne vide hvilken fejl jeg evt. kunne have gjort?
Nedenstående er den guidede beskrivelse:
Add a Web reference to our Web service
a. From the Project menu, click Add Web Reference.
b. Type http://localhost/DownhillBikes/Service1.asmx in the Address box.
c. Click Add Reference
***********************************
Stopping Internet Information Server (IIS) will stop the XML Web service. Once we do this, the rich Windows-based application will switch to offline mode, giving you full access to the data.
a. Click the Windows Start button, then click Run… . (Or, press [WINDOWS KEY ÿ] + R.)
b. In the Open box, type iisreset /stop and click OK.
c. After the console window appears, wait for it to close by itself.
**************************
a. In Visual Studio .NET, from the Debug menu, click Start to run the application. (Or, press F5.)
b. Note the status bar displays Working in offline mode.
c. Change the password of Robert Young to abc and press the DOWN ARROW key.
d. Close the Form1 window.
***********************************
When we start IIS and access our Windows application, we will see our offline data has been added to the SQL Server 2000 database, completing the reconnect portion of the offline scenario.
a. Click the Windows Start button, then click Run… . (Or, press [WINDOWS KEY ÿ] + R.)
b. In the Open box, type iisreset /start and click OK.
c. After the console window appears, wait for it to close by itself.
c. In Visual Studio .NET, from the Debug menu, click Start to run the application. (Or, press F5.)
d. Note that Robert Young’s password is abc and the status bar says Connected to WS.
e. Close the Form1 window.
f. In Visual Studio .NET, from the Window menu, click Close All Documents. If asked to save changes, click Yes.
