Tabnine Logo
WsdlMessages.PARSER_NOT_A_BINDING_FILE
Code IndexAdd Tabnine to your IDE (free)

How to use
PARSER_NOT_A_BINDING_FILE
method
in
com.sun.tools.ws.resources.WsdlMessages

Best Java code snippets using com.sun.tools.ws.resources.WsdlMessages.PARSER_NOT_A_BINDING_FILE (Showing top 4 results out of 315)

origin: org.glassfish.metro/webservices-tools

public WSDLDocument parse() throws SAXException, IOException {
  // parse external binding files
  for (InputSource value : options.getWSDLBindings()) {
    errReceiver.pollAbort();
    Document root = forest.parse(value, false);
    if(root==null)       continue;   // error must have been reported
    Element binding = root.getDocumentElement();
    if (!Internalizer.fixNull(binding.getNamespaceURI()).equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS)
        || !binding.getLocalName().equals("bindings")){
        errReceiver.error(forest.locatorTable.getStartLocation(binding), WsdlMessages.PARSER_NOT_A_BINDING_FILE(
          binding.getNamespaceURI(),
          binding.getLocalName()));
      continue;
    }
    NodeList nl = binding.getElementsByTagNameNS(
      "http://java.sun.com/xml/ns/javaee", "handler-chains");
    for(int i = 0; i < nl.getLength(); i++){
      options.addHandlerChainConfiguration((Element) nl.item(i));
    }
  }
  return buildWSDLDocument();
}
origin: javaee/metro-jax-ws

public WSDLDocument parse() throws SAXException, IOException {
  // parse external binding files
  for (InputSource value : options.getWSDLBindings()) {
    errReceiver.pollAbort();
    Document root = forest.parse(value, false);
    if(root==null)       continue;   // error must have been reported
    Element binding = root.getDocumentElement();
    if (!Internalizer.fixNull(binding.getNamespaceURI()).equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS)
        || !binding.getLocalName().equals("bindings")){
        errReceiver.error(forest.locatorTable.getStartLocation(binding), WsdlMessages.PARSER_NOT_A_BINDING_FILE(
          binding.getNamespaceURI(),
          binding.getLocalName()));
      continue;
    }
    NodeList nl = binding.getElementsByTagNameNS(
      "http://java.sun.com/xml/ns/javaee", "handler-chains");
    for(int i = 0; i < nl.getLength(); i++){
      options.addHandlerChainConfiguration((Element) nl.item(i));
    }
  }
  return buildWSDLDocument();
}
origin: javaee/metro-jax-ws

public WSDLDocument parse() throws SAXException, IOException {
  // parse external binding files
  for (InputSource value : options.getWSDLBindings()) {
    errReceiver.pollAbort();
    Document root = forest.parse(value, false);
    if(root==null)       continue;   // error must have been reported
    Element binding = root.getDocumentElement();
    if (!Internalizer.fixNull(binding.getNamespaceURI()).equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS)
        || !binding.getLocalName().equals("bindings")){
        errReceiver.error(forest.locatorTable.getStartLocation(binding), WsdlMessages.PARSER_NOT_A_BINDING_FILE(
          binding.getNamespaceURI(),
          binding.getLocalName()));
      continue;
    }
    NodeList nl = binding.getElementsByTagNameNS(
      "http://java.sun.com/xml/ns/javaee", "handler-chains");
    for(int i = 0; i < nl.getLength(); i++){
      options.addHandlerChainConfiguration((Element) nl.item(i));
    }
  }
  return buildWSDLDocument();
}
origin: com.sun.xml.ws/jaxws-tools

public WSDLDocument parse() throws SAXException, IOException {
  // parse external binding files
  for (InputSource value : options.getWSDLBindings()) {
    errReceiver.pollAbort();
    Document root = forest.parse(value, false);
    if(root==null)       continue;   // error must have been reported
    Element binding = root.getDocumentElement();
    if (!Internalizer.fixNull(binding.getNamespaceURI()).equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS)
        || !binding.getLocalName().equals("bindings")){
        errReceiver.error(forest.locatorTable.getStartLocation(binding), WsdlMessages.PARSER_NOT_A_BINDING_FILE(
          binding.getNamespaceURI(),
          binding.getLocalName()));
      continue;
    }
    NodeList nl = binding.getElementsByTagNameNS(
      "http://java.sun.com/xml/ns/javaee", "handler-chains");
    for(int i = 0; i < nl.getLength(); i++){
      options.addHandlerChainConfiguration((Element) nl.item(i));
    }
  }
  return buildWSDLDocument();
}
com.sun.tools.ws.resourcesWsdlMessagesPARSER_NOT_A_BINDING_FILE

Javadoc

not an external binding file. The root element must be '{'http://java.sun.com/xml/ns/jaxws'}'bindings but it is '{'{0}'}'{1}

Popular methods of WsdlMessages

  • ABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE
    Unable to parse "{0}" : {1}
  • ENTITY_DUPLICATE_WITH_TYPE
    duplicate "{0}" entity: "{1}"
  • ENTITY_NOT_FOUND_BINDING
    wsdl:binding "{0}" referenced by wsdl:port "{1}", but it's not found in the wsdl
  • ENTITY_NOT_FOUND_BY_Q_NAME
    {0} "{1}" not found in the wsdl: {2}
  • ENTITY_NOT_FOUND_PORT_TYPE
    wsdl:portType "{0}" referenced by wsdl:binding "{1}", but it's not found in the wsdl
  • FAILED_NOSERVICE
    Could not find wsdl:service in the provided WSDL(s): {0} At least one WSDL with at least one service
  • FILE_NOT_FOUND
    {0} is unreachable
  • INTERNALIZER_INCORRECT_SCHEMA_REFERENCE
    "{0}" is not a part of this compilation. Is this a mistake for "{1}"?
  • INTERNALIZER_INCORRECT_VERSION
    JAXWS version attribute must be "2.0"
  • INTERNALIZER_TWO_VERSION_ATTRIBUTES
    Both jaxws:version and version are present
  • INTERNALIZER_VERSION_NOT_PRESENT
    JAXWS version attribute must be present
  • INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET
    XPath evaluation of "{0}" results in an empty target node
  • INTERNALIZER_VERSION_NOT_PRESENT,
  • INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET,
  • INTERNALIZER_X_PATH_EVALUATION_ERROR,
  • INVALID_CUSTOMIZATION_NAMESPACE,
  • INVALID_WSDL,
  • PARSING_ELEMENT_OR_TYPE_REQUIRED,
  • PARSING_INVALID_ELEMENT,
  • PARSING_INVALID_OPERATION_STYLE,
  • PARSING_INVALID_WSDL_ELEMENT

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim 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