The Java->XML Schema->WSDL naming conversions are all dictated by the JAX-WS and JAXB specifications, which CXF follows. I'm unsure why you're using nonstandard class naming ("FOO" instead of "Foo"). I believe there are some JAXB customizations/attributes you can use in your Java class (http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html) to change the XML element name that is generated, in particular @XMLElement (http://stackoverflow.com/questions/4190340/change-element-name-of-a-jaxb-annotated-subclass) is probably what you're looking for.

Glen

On 11/15/2011 2:20 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">
         ...
     </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


--
Glen Mazza
Talend Community Coder
http://coders.talend.com

Reply via email to