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"; } }
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"; } }
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"; } }
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"; } }