Tabnine Logo
EndpointReferenceUtils.getWSDLLocation
Code IndexAdd Tabnine to your IDE (free)

How to use
getWSDLLocation
method
in
org.apache.cxf.wsdl.EndpointReferenceUtils

Best Java code snippets using org.apache.cxf.wsdl.EndpointReferenceUtils.getWSDLLocation (Showing top 4 results out of 315)

origin: org.apache.cxf/cxf-api

/**
 * Gets the WSDL definition for the provided endpoint reference.
 * @param manager - the WSDL manager 
 * @param ref - the endpoint reference
 * @return Definition the wsdl definition
 * @throws WSDLException
 */
public static Definition getWSDLDefinition(WSDLManager manager, EndpointReferenceType ref)
  throws WSDLException {
  if (null == manager) {
    return null;
  }
  MetadataType metadata = ref.getMetadata();
  String location = getWSDLLocation(ref);
  if (null != location) {
    //Pick up the first url to obtain the wsdl defintion
    return manager.getDefinition(location);
  }
  for (Object obj : metadata.getAny()) {
    if (obj instanceof Element) {
      Element el = (Element)obj;
      if (StringUtils.isEqualUri(el.getNamespaceURI(), WSDLConstants.NS_WSDL11)
        && "definitions".equals(el.getLocalName())) {
        return manager.getDefinition(el);
      }
    }
  }
  return null;
}

origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Gets the WSDL definition for the provided endpoint reference.
 * @param manager - the WSDL manager 
 * @param ref - the endpoint reference
 * @return Definition the wsdl definition
 * @throws WSDLException
 */
public static Definition getWSDLDefinition(WSDLManager manager, EndpointReferenceType ref)
  throws WSDLException {
  if (null == manager) {
    return null;
  }
  MetadataType metadata = ref.getMetadata();
  String location = getWSDLLocation(ref);
  if (null != location) {
    //Pick up the first url to obtain the wsdl defintion
    return manager.getDefinition(location);
  }
  for (Object obj : metadata.getAny()) {
    if (obj instanceof Element) {
      Element el = (Element)obj;
      if (StringUtils.isEqualUri(el.getNamespaceURI(), WSDLConstants.NS_WSDL11)
        && "definitions".equals(el.getLocalName())) {
        return manager.getDefinition(el);
      }
    }
  }
  return null;
}

origin: org.apache.cxf/cxf-api

private static String findNamespaceHack(EndpointReferenceType ref, Bus bus) {
  //probably a broken version of Xalan, we'll have to 
  //try a hack to figure out the namespace as xalan
  //dropped the namespace declaration so there isn't 
  //a way to map the namespace prefix to the real namespace.
  //This is fixed in xalan 2.7.1, but older versions may 
  //be used
  if (bus == null) {
    return "";
  }
  String wsdlLocation = getWSDLLocation(ref);
  if (StringUtils.isEmpty(wsdlLocation)) {
    return "";
  }
  if (bus != null) {
    WSDLManager manager = bus.getExtension(WSDLManager.class);
    if (manager != null) {
      try {
        Definition def = manager.getDefinition(wsdlLocation);
        return def.getTargetNamespace();
      } catch (WSDLException e) {
        //ignore
      }
    }
  }
  return "";
}
origin: org.apache.cxf/cxf-bundle-jaxrs

private static String findNamespaceHack(EndpointReferenceType ref, Bus bus) {
  //probably a broken version of Xalan, we'll have to 
  //try a hack to figure out the namespace as xalan
  //dropped the namespace declaration so there isn't 
  //a way to map the namespace prefix to the real namespace.
  //This is fixed in xalan 2.7.1, but older versions may 
  //be used
  if (bus == null) {
    return "";
  }
  String wsdlLocation = getWSDLLocation(ref);
  if (StringUtils.isEmpty(wsdlLocation)) {
    return "";
  }
  if (bus != null) {
    WSDLManager manager = bus.getExtension(WSDLManager.class);
    if (manager != null) {
      try {
        Definition def = manager.getDefinition(wsdlLocation);
        return def.getTargetNamespace();
      } catch (WSDLException e) {
        //ignore
      }
    }
  }
  return "";
}
org.apache.cxf.wsdlEndpointReferenceUtilsgetWSDLLocation

Popular methods of EndpointReferenceUtils

  • getAnonymousEndpointReference
    Create an anonymous endpoint reference.
  • getServiceName
    Gets the service name of the provided endpoint reference.
  • getPortName
    Gets the port name of the provided endpoint reference.
  • getSchema
  • setServiceAndPortName
    Sets the service and port name of the provided endpoint reference.
  • createContextForEPR
  • createSchema
  • duplicate
    Create a duplicate endpoint reference sharing all atributes
  • findNamespaceHack
  • getAddress
    Get the address from the provided endpoint reference.
  • getJAXBContextForEPR
  • getMatchingMultiplexDestination
  • getJAXBContextForEPR,
  • getMatchingMultiplexDestination,
  • getNameSpaceUri,
  • getService,
  • getServiceNameType,
  • getWSDLDefinition,
  • mint,
  • portNameMatches,
  • setWSDLLocation

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JButton (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now