The corresponding change that needs to happen is:
package org.jboss.ws.jaxb.JAXBUnmarshallerImpl


  | private void processXmlAttributeName(TypeBinding typeBinding, 
VariableMapping varMapping)
  |    {
  |       String xmlAttrName = varMapping.getXmlAttributeName();
  |       log.trace("processXmlAttributeName: " + xmlAttrName);
  | 
  |       QName xmlName = new QName(xmlAttrName);
  |       AttributeBinding attr = typeBinding.getAttribute(xmlName);
  |       if (attr == null)
  |       {
  |          // attributeFormDefault="qualified"
  |          String nsURI = typeBinding.getQName().getNamespaceURI();
  |          if (Constants.SOAP11_ATTR_MUST_UNDERSTAND.equals(xmlAttrName) || 
Constants.SOAP11_ATTR_ACTOR.equals(xmlAttrName) || 
Constants.SOAP11_ATTR_ROLE.equals(xmlAttrName))
  |          {
  |             nsURI = Constants.NS_SOAP11_ENV;
  |          }
  |          xmlName = new QName(nsURI, xmlAttrName);
  |          attr = typeBinding.getAttribute(xmlName);
  |       }
  |       
  |       /**
  |        * Case when the xml-attribute-name may be referring to xml:xxx
  |        * like xml:lang
  |        */
  |       if(attr == null && xmlAttrName.contains("xml:"))
  |       {
  |          xmlName= new QName(Constants.NS_XML, 
xmlAttrName.substring("xml:".length()));
  |          attr = typeBinding.getAttribute(xmlName);
  |       }
  | 
  |       if (attr == null)
  |       {
  |          QName typeQName = typeBinding.getQName();
  |          throw new WSException("Attribute " + xmlName + " found in 
jaxrpc-mapping but not in the schema: " + typeQName);
  |       }
  | 
  |       String javaVariableName = varMapping.getJavaVariableName();
  |       PropertyMetaData prop = new PropertyMetaData();
  |       prop.setName(javaVariableName);
  |       attr.setPropertyMetaData(prop);
  | 
  |       if (log.isTraceEnabled())
  |          log.trace("Bound attribute " + xmlName + " to property " + 
prop.getName());
  |    }
  | 

The section that is shown below is the change:

  |  /**
  |        * Case when the xml-attribute-name may be referring to xml:xxx
  |        * like xml:lang
  |        */
  |       if(attr == null && xmlAttrName.contains("xml:"))
  |       {
  |          xmlName= new QName(Constants.NS_XML, 
xmlAttrName.substring("xml:".length()));
  |          attr = typeBinding.getAttribute(xmlName);
  |       }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925173#3925173

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925173


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to