Bruce,
I have a NT 10.24 app that stores pathology data, call it App A. Many users currently use this app to enter various data items. It has numerous tps files, including a file called Pathology.tps. I want to allow an outside pathology lab to automatically send data to this file, doing inserts and updates but no deletes. I built a second app, call it App B, using the NT wizard, and only had it include the web services procedures. See the attached image. App B uses the same dct file as App A. Both apps are compiled as a dll and managed with the Multi-Site app (host.exe). Both apps run as expected.
The Pathology.tps file is in the App A folder but not in the App B folder. How do I direct the web services App B to do the inserts and updates on the Pathology.tps file in the App A folder? Is it as easy as setting a path in an embed of the App B code? If so, which embed is the best for this?
I also want to require some sort of authentication before allowing data inserts and updates. In the login procedure, ServiceMethod embed, I see the following code:
IF p_web.GetSessionLoggedIn() = 0
p_web.Authenticate(user,password)
END
token = p_web.SessionID
status = p_web.GetSessionLoggedIn()
If I understand things correctly, the user and password variables will need to be sent as parameters, and checked against my own user.tps file. I store the password as a hash in this file, so I'll need to code for this of course, but have I understood this correctly?
Thanks,
Jeff