Jeff,
Some suggestions.
1. Compile the web77 example - both the client and web server. Verify that fetching the date works.
2. Open a browser and verify that you can access the date from the web service documentation or a URL in a web browser.
3. Change the Date NetWebServiceMethod: on the Security tab, mark the "User must be logged in" and "Delete Session immediately" checkboxes.
4. In the WebHandler procedure, go to the existing filled embed and change the first line to if pUser = 'demo' and pPassword = 'demo'
5. Compile and run. Verify that now the web77 client app fails to fetch the date. A browser pops open its login window.
6. Open your browser to 127.0.0.1:88, use the Services menu. System. Date. You should be able to type in the user name and password and have it work.
7. Compile the netdemo program. Run it and open the Web Client window. On the Authentication tab, select Basic authentication and put in the username and password.
8. On the Address tab, put in the address box: http:/127.0.0.1:88/date
9. Fetch should work. So should using the Generic Post tab.
That web client is handy to use to figure out what you need to do to make your own code work. You can open the Logging tab to look at what's sent/received.
If you're not running your web server as a service, you can also look at the Log tab on the web app's window to help trouble-shoot.
I think that when you're testing this it's important to have the Delete Session immediately marked to avoid muddling what works with what doesn't. I generally leave it marked for service methods anyway.
Good luck!