I have tested the code you are referring and got it work after some changes. Please follow the instructions below:
Instructions to follow for Web Matrix..
Open ISBN.asmx in web matrix and run the file using web matrix inbuilt web server, in web browsers you will see something similar to âhttp://localhost:8080/isbn.asmxâ
. Copy this URL to somewhere for later use.
Now Generate the proxy Class for this web service by using âWeb Service Proxy Generatorâ found in âTools #61664; Web Service Proxy Generatorâ. On clicking this option a dialog box will appear.
In âXML Web Service Proxy Generatorâ dialog box fill the information as follows:
WSDL URL = âhttp://localhost:8080/isbn.asmxâ
Namespace = ISBNService
Output Directory = C:\BegASPNET11\ch16
Source File = ISBNProxy
Generate Assembly = ISBNProxy.dll
Click on Generate. This will generate the source file named âISBNProxy.vb
â in the output directory and assembly named âISBNProxy.dllâ in the folder named bin under the output directory.
After process completion a confirmation message box will appear, click âOKâ and then click âcancelâ to get out of the âXML Web Service Proxy Generatorâ dialog box.
Now Open the aspx file named âBookInfo.aspxâ and click on the âstartâ icon on the toolbar to run this file using the web matrix web server.
If all the instructions followed, you will see the result in web browser successfully.