Hello everybody,
i am using axis2's schema compiler to crate from an xsd pojos + helper classes.
Therefore i set the HelperMode in the compiler options to true.
But i have a problem, when i want tu use the beans for creating an xml request.
The xsd defines simplified a structure as follows
<Request>
<Head>
<Field1></Field1>
</Head>
</Request>
But the Request class generates by using the RequestHelper.getOMElement()
method the following xml
<Request>
<head>
<field1></field1>
</head>
</Request>
As it can be seen all nested elements are lower case.
This is the result of the following code in
org.apache.axis2.databinding.utils.BeanUtil
public static XMLStreamReader getPullParser(Object beanObject,
QName beanName,
TypeTable typeTable, boolean
qualified) {
// ...
// Line 131 ff
BeanInfo beanInfo =
Introspector.getBeanInfo(beanObject.getClass());
PropertyDescriptor [] propDescs = beanInfo.getPropertyDescriptors();
HashMap propertMap = new HashMap();
for (int i = 0; i < propDescs.length; i++) {
PropertyDescriptor propDesc = propDescs[i];
propertMap.put(propDesc.getName(), propDesc);
}
// ...
The Inspector.getBeanInfo() converts all properties names in lower cases.
Is this issus known?
Do anyone know how to solve this problem?
Thanks for help in advance.
Greetings
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]