[ 
http://issues.apache.org/jira/browse/AXIS-2346?page=comments#action_12360758 ] 

Davanum Srinivas commented on AXIS-2346:
----------------------------------------

Pratik,

Review this patch right now...would this following snippet work for you? 
(basically keep the original lookup and only if it fails try fixing the 
localname.

thanks,
dims

         if (propDesc == null) {
             // look for a field by this name.
            propDesc = (BeanPropertyDescriptor) propertyMap.get(localName);
            if(propDesc == null) {          
                String malformatedLocalName = 
StringUtils.makeQNameToMatchLocalName(localName);
                if(malformatedLocalName != null){
                        propDesc = (BeanPropertyDescriptor) 
propertyMap.get(malformatedLocalName);
                }
             }
         }

> Issue with the way the localNames are created in WSDL2Java
> ----------------------------------------------------------
>
>          Key: AXIS-2346
>          URL: http://issues.apache.org/jira/browse/AXIS-2346
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: beta-1, current (nightly), beta-2, future (enh), beta-3, 
> 1.0-rc1, 1.0-rc2, 1.0, 1.1beta, 1.1, 1.1RC1, 1.1rc2, 1.2 Alpha, 1.2 Beta, 
> 1.2RC1, 1.2RC2, 1.2RC3, 1.2, 1.2.1, 1.3
>     Reporter: Pratik Parikh
>  Attachments: DeserializationPatch.txt, DeserializationPatch.txt
>
> The localName of XML is in java naming convenstion and Qname is xml name 
> convenstion, this create a problem in deserialization before the message is 
> send out. The Deserializer is not able to find out the QName in localName 
> HashMap, because the QName does not match the LocalName. 
> Thanks,
> Pratik

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to