axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: [axis2] SchemeCompiler and setHelperMode(true) -> Problems with lower case tags
Date Wed, 09 Jan 2008 04:53:16 GMT
Please use the normal mode. Helper mode is not in upto date and hence it is
in some what
depreciated mode since most of the people use the normal mode.

In normal mode it away does not use the getPullParser method at all. It user
direct serialization
which is fast as well.

thanks,
Amila.

On Jan 8, 2008 7:44 PM, Thomas Pawlitzki <Thomas.Pawlitzki@devk.de> wrote:

> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message