Web Agent

I’m successfully using Web agents that are called by Perl scripts.The agent calls a function in a Script Library and it works fine. I’d like to consolidate my agents onto one server. The parser in the library function will pull out the server and path of the target database from the XML message. Sounds good, but I’m not able to open a database on another server whtn the script is called by a Web agent. Is this not possible?