Package de.fzj.unicore.wsrflite.xmlbeans.client

Examples of de.fzj.unicore.wsrflite.xmlbeans.client.RegistryClient


    String ss = besUrl.substring(0, besIndex);
    ss = ss + "Registry";
   
    EndpointReferenceType eprt = WSUtilities.makeServiceEPR(ss, "default_registry", Registry.REGISTRY_PORT);
   
    RegistryClient registry = new RegistryClient(eprt, secProps);
   
    //first, check if server name is already in the EPR...
    String dn=WSUtilities.extractServerIDFromEPR(smsEpr);
    if(dn!=null){
      return dn;
    }
    //otherwise find a matching service in the registry
    String url=smsEpr.getAddress().getStringValue();
    if(url.contains("/services/"))url=url.substring(0,url.indexOf("/services"));
    if(log.isDebugEnabled()) log.debug("Checking for services at "+url);
    for(EntryType entry:registry.listEntries()){
      if(entry.getMemberServiceEPR().getAddress().getStringValue().startsWith(url)){
        dn=WSUtilities.extractServerIDFromEPR(entry.getMemberServiceEPR());
        if(dn!=null){
          return dn;
        }
View Full Code Here


    String ss = besUrl.substring(0, besIndex);
    ss = ss + "Registry";
   
    EndpointReferenceType eprt = WSUtilities.makeServiceEPR(ss, "default_registry", Registry.REGISTRY_PORT);
   
    RegistryClient registry = new RegistryClient(eprt, secProps);
   
    //first, check if server name is already in the EPR...
    String dn=WSUtilities.extractServerIDFromEPR(smsEpr);
    if(dn!=null){
      return dn;
    }
    //otherwise find a matching service in the registry
    String url=smsEpr.getAddress().getStringValue();
    if(url.contains("/services/"))url=url.substring(0,url.indexOf("/services"));
    if(log.isDebugEnabled()) log.debug("Checking for services at "+url);
    for(EntryType entry:registry.listEntries()){
      if(entry.getMemberServiceEPR().getAddress().getStringValue().startsWith(url)){
        dn=WSUtilities.extractServerIDFromEPR(entry.getMemberServiceEPR());
        if(dn!=null){
          return dn;
        }
View Full Code Here

TOP

Related Classes of de.fzj.unicore.wsrflite.xmlbeans.client.RegistryClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.