CXF uses JAXB if you configure JAXB. If you configure Aegis, it uses
Aegis. How are you configuring?

On Thu, Oct 9, 2008 at 4:29 AM, Maxime Orain
<[EMAIL PROTECTED]> wrote:
> Hello to all,
>
> I try to generate WSDL from Java code.
>
> The generated xsd doesn't match at all the jaxb annotations!
>
> Nor nillable, nor XMLTransient, nor required, nor namespace is well
> generated... I don't understand!
>
> I was thinking that CXF uses JAXB... I've got none problem with
> @WebService annotation but JAXB annotations don't work...
>
> I need help on this... can anyone help me on this? I m really lost... :(
>
> Thanks
>
> Maxime.
>
> CXF conf (Spring): (which uses my pojo)
> <jaxws:server id="MyService"
>                        serviceClass="com.company.MyService"
>                        serviceBean= "com.company.MyServiceImpl"
>                    address="/MyService"
>
> bindingId="http://www.w3.org/2003/05/soap/bindings/HTTP/";>
> </jaxws:server>
>
> This is my pojo:
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name="MyDefinedPojo", namespace="http://pojo.compamy.com";)
> public class MyDefinedPojo
> {
>            @XmlElement(name="left",
> namespace="http://pojo.compamy.com";, nillable=true,required=true)
>            protected String left;
>
>            @XmlTransient
>            protected String right;
>
>            public MyDefinedPojo() {}
>            public String  getLeft() {  return this.left;   }
>            public void setLeft(String data) { this.left=data; }
>            public String  getRight() { return this.right;            }
>            public void setRight(String data) { this.right=data; }
> }
>
>
>
>
> This email was sent to you by Thomson Reuters, the global news and 
> information company.
> Any views expressed in this message are those of the individual sender, 
> except where the sender specifically states them to be the views of Thomson 
> Reuters.
>
>
>

Reply via email to