congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: javaee/metro-jax-ws

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
  throws SAXException {
  super.startElement(namespaceURI, localName, qName, atts);
  if(!seenRoot) {
    // if this is the root element
    seenRoot = true;
    rootTagStart = new LocatorImpl(locator);
    version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version");
    if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) {
      String version2 = atts.getValue("","version");
      if( version!=null && version2!=null ) {
        // we have both @version and @jaxb:version. error.
        SAXParseException e = new SAXParseException(
          WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator);
        getErrorHandler().error(e);
      }
      //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0"
      if( version==null)
        version = (version2!=null)?version2:"2.0";
    }
  }
  if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){
    seenBindings = true;
    if(version == null)
      version = "2.0";            
  }
}
origin: com.sun.xml.ws/jaxws-tools

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
  throws SAXException {
  super.startElement(namespaceURI, localName, qName, atts);
  if(!seenRoot) {
    // if this is the root element
    seenRoot = true;
    rootTagStart = new LocatorImpl(locator);
    version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version");
    if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) {
      String version2 = atts.getValue("","version");
      if( version!=null && version2!=null ) {
        // we have both @version and @jaxb:version. error.
        SAXParseException e = new SAXParseException(
          WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator);
        getErrorHandler().error(e);
      }
      //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0"
      if( version==null)
        version = (version2!=null)?version2:"2.0";
    }
  }
  if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){
    seenBindings = true;
    if(version == null)
      version = "2.0";            
  }
}
origin: org.glassfish.metro/webservices-tools

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
  throws SAXException {
  super.startElement(namespaceURI, localName, qName, atts);
  if(!seenRoot) {
    // if this is the root element
    seenRoot = true;
    rootTagStart = new LocatorImpl(locator);
    version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version");
    if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) {
      String version2 = atts.getValue("","version");
      if( version!=null && version2!=null ) {
        // we have both @version and @jaxb:version. error.
        SAXParseException e = new SAXParseException(
          WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator);
        getErrorHandler().error(e);
      }
      //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0"
      if( version==null)
        version = (version2!=null)?version2:"2.0";
    }
  }
  if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){
    seenBindings = true;
    if(version == null)
      version = "2.0";            
  }
}
origin: javaee/metro-jax-ws

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
  throws SAXException {
  super.startElement(namespaceURI, localName, qName, atts);
  if(!seenRoot) {
    // if this is the root element
    seenRoot = true;
    rootTagStart = new LocatorImpl(locator);
    version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version");
    if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) {
      String version2 = atts.getValue("","version");
      if( version!=null && version2!=null ) {
        // we have both @version and @jaxb:version. error.
        SAXParseException e = new SAXParseException(
          WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator);
        getErrorHandler().error(e);
      }
      //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0"
      if( version==null)
        version = (version2!=null)?version2:"2.0";
    }
  }
  if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){
    seenBindings = true;
    if(version == null)
      version = "2.0";            
  }
}
com.sun.tools.ws.resourcesWsdlMessagesINTERNALIZER_TWO_VERSION_ATTRIBUTES

Javadoc

Both jaxws:version and version are present

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_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_X_PATH_EVALUATION_ERROR
    XPath error: {0}
  • INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET,
  • INTERNALIZER_X_PATH_EVALUATION_ERROR,
  • INVALID_CUSTOMIZATION_NAMESPACE,
  • INVALID_WSDL,
  • PARSER_NOT_A_BINDING_FILE,
  • PARSING_ELEMENT_OR_TYPE_REQUIRED,
  • PARSING_INVALID_ELEMENT,
  • PARSING_INVALID_OPERATION_STYLE,
  • PARSING_INVALID_WSDL_ELEMENT

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Notification (javax.management)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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