PDA

View Full Version : Identify server name for use in output template


gigajosh
03-20-2007, 06:47
Hi,

I've got a service with an HTML output template, and I want to put a link in the template that links back to the original service homepage. But I don't want to hard code the server name and port into the output template.

I've already discovered the getSystemProperty service in the PSUtilities package, and this lets me retrieve the port number, but not the server name.

Can anyone tell me how to retrieve the server name, i.e. the server that the IS is running on?

Thanks in advance,
Josh

saurabhm
03-20-2007, 10:51
write a java service (Hint: look @ InetAddress java API)

mcarlson
03-20-2007, 11:44
Take a look at this thread (http://www.wmusers.com/forum/showthread.php?p=16281&highlight=ServerAPI#post16281)for some possible approaches.

Mark