/**
* initialise WSClient service information attributes from the service handle
* @param sh
- * @return the service instance information for this client and job.
+ * @return the service instance information GUI for this client and job.
*/
protected WebserviceInfo setWebService(ServiceHandle sh)
{
+ return setWebService(sh, true);
+ }
+ /**
+ * initialise WSClient service information attributes from the service handle
+ * @param sh
+ * @param headless true implies no GUI objects will be created.
+ * @return the service instance information GUI for this client and job.
+ */
+ protected WebserviceInfo setWebService(ServiceHandle sh, boolean headless)
+ {
WebServiceName = sh.getName();
if (ServiceActions.containsKey(sh.getAbstractName()))
{
}
WebServiceReference = sh.getDescription();
WsURL = sh.getEndpointURL();
- WebserviceInfo wsInfo = new WebserviceInfo(WebServiceJobTitle,
+ WebserviceInfo wsInfo = null;
+ if (!headless)
+ {
+ wsInfo = new WebserviceInfo(WebServiceJobTitle,
WebServiceReference);
-
+ }
return wsInfo;
}
}