Is there any way to supply a userID/password on a service in

We are running webMethods Integration Server v6.1. Is there any way to supply a userID/password on a service invoke URL, so that these could be supplied programatically and not require manual entry in the login popup? I encountered this format in another forum:

https://userName:password@server:port/invoke/folder.subfolder:servicename

but could not get this to work. Has anyone tried this format successfully?

Alternatively, if we used this format:

https://server:port/invoke/folder.subfolder:servicename?userID=value1&pswd=value;e2

and set the execute ACL to “Anonymous”, is there any internal service that can be used to programatically verify the input userID and pswd?

Hello Dave,

You could implement a service as shown below and call it according

https://server:port/invoke/folder.subfolder:service?
user=<…>&pass=<…>&path=<…>&service=&l;lt;…>

You can find more about the used classes in the server/client API.

Kind regards

André

Java service

paramaters: user , pass, path, service

IDataCursor pipelineCursor = pipeline.getCursor();

String user = new String();
String pass = new String();
String path = new String();
String service = new String();

if (pipelineCursor.first( “user”)) user = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “pass”)) pass = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “path”)) path = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “service”)) service = (String) pipelineCursor.getValue();

////////////////////////////////////////////////////////////////
// fetch server port
//
String port = System.getProperties().getProperty(“watt.net.primaryListener”);
port = port.replaceFirst(".@(.)@.*", “$1”);

String host = “127.0.0.1:” +port;

////////////////////////////////////////////////////////////////
// invoke service
//
Context context = new Context();

try
{
context.connect(host, user, pass);

IData result = IDataFactory.create(); 
      result = context.invoke(path, service, pipeline); 

pipelineCursor.insertAfter("result", result); 

}
} catch (Exception e)
{
context.disconnect();
}