Hi,

Can you give an example of this? I tried using .aegis.xml files as the docs
say and even tried the annotations.  However, I could do stuff like define
alternate namespaces, ignore fields and change field names but nothing
enabled me to get rid of the JAXBElement and use a string.  If I try to
specify the String class in the annotation, the WsGen tool craps out.

Do you have an example of specifying an .aegis.xml file or an annotation
where the WsGen tool actually uses the proper data type rather than
JAXBElement?

Here are the docs that I was referring to:

http://xfire.codehaus.org/Aegis+Binding
http://docs.codehaus.org/display/XFIRE/Aegis+Java+5+Annotations

Thanks.



Benson Margulies-2 wrote:
> 
> You can do this with .aegis.xml file.
> 
> -----Original Message-----
> From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 16, 2007 3:48 PM
> To: [email protected]
> Subject: [xfire-user] RE: unexpected code generation with wsgen and jaxb
> binding
> 
> 
> Can you explain what you mean by saying element/type names were unique?
> An
> example would be really appreciated.
> 
> Thanks.
> 
> 
> Wu Steven wrote:
>> 
>> I had encountered this problem when I first started using JAXB
> bindings
>> with the wsgen ant task as well. The problem went away when I made
> sure
>> that all the element/type names were unique. Not sure if this will
> help
>> you or not.
>> 
>> 
>> 
>> Steven
>> 
>> -----Original Message-----
>> From: Jackson, Stuart [mailto:[EMAIL PROTECTED] 
>> Sent: Tuesday, November 14, 2006 5:08 PM
>> To: [email protected]
>> Subject: RE: [xfire-user] unexpected code generation with wsgen and
> jaxb
>> binding
>> 
>> There is a way of getting round this using the @XmlElement annotation.
>> In your ticket class you do this:
>> 
>>    @XmlElement(minOccurs="1", nillable=false)
>>    public String getUsername()
>>    {
>>       return userName;
>>    }
>> 
>> Of course you can only use this if username is always present and not
>> nillable. It probably only works with JDK 1.5 as well.
>> 
>> - Stuart
>> 
>> 
>> -----Original Message-----
>> From: Dan Diephouse [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, 14 November 2006 2:00 PM
>> To: [email protected]
>> Subject: Re: [xfire-user] unexpected code generation with wsgen and
> jaxb
>> binding
>> 
>> Unfortunately, no, this is a relic of the JAXB specification at the
>> moment. Its frustrating to say the least...
>> 
>> - Dan
>> 
>> John Sanda wrote:
>> 
>>>I am an xfire newbie, and I some web service client code that has been
> 
>>>generated with Axis 1. I need to migrate over to xfire (1.2), and the
>> code
>>>that the wsgen ant task produces is not what I expected. I am using
> the
>> JAXB
>>>for the binding. With Axis 1, one of my generated classes looks
>> something
>>>like:
>>>
>>>public class Ticket {   
>>>    public String getUsername() {...}
>>>}
>>>
>>>The generated Ticket class from the wsgen task with jaxb binding looks
>> like:
>>>
>>>public class Ticket {
>>>   public JAXBElement<String> getUsername() {...} }
>>>
>>>Is there a way that I can alter the wsgen code generation so that
>>>getUsername() will return a String instead of a JAXBElement<String>?
>> Thanks.
>>>  
>>>
>> 
>> 
>> --
>> Dan Diephouse
>> (616) 971-2053
>> Envoi Solutions LLC
>> http://netzooid.com
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>> 
>>     http://xircles.codehaus.org/manage_email
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>> 
>>     http://xircles.codehaus.org/manage_email
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>> 
>>     http://xircles.codehaus.org/manage_email
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/unexpected-code-generation-with-wsgen-and-jaxb-bin
> ding-tf2598336.html#a8398544
> Sent from the XFire - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/unexpected-code-generation-with-wsgen-and-jaxb-binding-tf2598336.html#a8412547
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to