Daniel,

Yep - that solves it.

Is there anyway to specify this via configuration to cxf?

tia,
rouble

On Wed, Nov 16, 2011 at 2:43 PM, Daniel Kulp <[email protected]> wrote:
> On Tuesday, November 15, 2011 5:20:57 PM Pranab Mehta wrote:
>> CXF Gurus,
>>
>> I have a class defined as follows:
>>     @XmlAccessorType(XmlAccessType.PROPERTY)
>>     @XmlRootElement(name = "FOO")
>>     public class FOO {
>>         ...
>>     }
>>
>> When CXF generates the WSDL it looks like this:
>>     <xs:element name="FOO" type="tns:foo"/>
>>
>> and:
>>     <xs:complexType name="foo">
>
> The XmlRootElement provides the name for the element, not the type.   Add:
> @XmlType(name = "FOO")
> to also provide a name for the type.
>
> Dan
>
>
>
>
>>         ...
>>     </xs:complexType>
>>
>> Further, when the code is generated from the WSDL:
>>     @XmlType(name = "foo")
>>     @XmlAccessorType(XmlAccessType.FIELD)
>>     public class Foo {
>>         ...
>>     }
>>
>> Why is the case different (FOO to Foo), and what do I need to do to
>> make it the same?
>>
>> tia,
>> rouble
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> Talend - http://www.talend.com
>

Reply via email to