public static WSIFClient createWSIFClient(ApplicationGlobalContext globalConfiguration,
String serviceURL,GSSCredential sessionCredentail) throws GfacException {
WSIFClient client;
if (serviceURL.startsWith("https")) {
SoapHttpDynamicInfosetInvoker invoker = createSecureInvoker(globalConfiguration);
String wsdlAsStr = invoker.invokeHttpGet(serviceURL);
// System.out.println(wsdlAsStr);
XmlElement el = XmlConstants.BUILDER
.parseFragmentFromReader(new StringReader(wsdlAsStr));
WsdlDefinitions def = new WsdlDefinitions(el);
WSIFServiceFactory wsf = WSIFServiceFactory.newInstance();