Dear Hogan,

Thanks. This is quite clear. I am going to try this
out.

Thanks & Regards,
Anshumn

--- "Hogan, Gavin" <[EMAIL PROTECTED]> wrote:

> In the same package as the calls mentioned below
> include User.aegis.xml.
> 
> Within that file you must create a property mapping
> like this
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <mp:mappings
> xmlns:mp="http://xfire.codehaus.org/aegis/1.0";
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0
> http://xfire.codehaus.org/schemas/1.0/mapping.xsd ">
>       <mapping>
>               
>       <property name="customers"
> componentType="your.package.path.Customers" />
>       </mapping>
> </mp:mappings>
> 
> 
> Hope this is clear.
> 
> 
> Also if the Customer has a collection of, say email
> addresses you would
> have a aegis file for Customer.java
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <mp:mappings
> xmlns:mp="http://xfire.codehaus.org/aegis/1.0";
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0
> http://xfire.codehaus.org/schemas/1.0/mapping.xsd ">
>       <mapping>
>               
>       <property name="emails"
> componentType="java.lang.String" />
>       </mapping>
> </mp:mappings>
> 
> Remember that these files must be available at run
> time and be located
> in the package of the class they relate to and the
> name must match the
> class as indicated above.
> 
> 
> ___________________________________________
> 
> Gavin Hogan
> Programmer/Analyst
> The State University of New York
> State University Plaza
> Albany, NY 12246
> Phone 518-443-5481
> fax 518-443-5809
> e-mail [EMAIL PROTECTED] 
> 
> -----Original Message-----
> From: Anshumn Sagar [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 01, 2007 5:52 AM
> To: [email protected]
> Subject: [xfire-user] Urgent: How to Wrire Aegis.xml
> file for Complex
> Data Type
> 
> 
> Hi,
> 
> I am using JDK1.4 and need to pass a java bean as
> the
> call parameter to the service. The bean has an
> attribute as a list of some other java bean.
> e.g.
> 
> public class User implements Serializable {
>       
>       private String id = "";
>       
>       private List customers;
> 
>       /**
>        * @return the id
>        */
>       public String getId() {
>               return id;
>       }
> 
>       /**
>        * @param id the id to set
>        */
>       public void setId(String id) {
>               this.id = id;
>       }
> 
> 
>       /**
>        * @return the customers
>        */
>       public List getCustomers() {
>               return customers;
>       }
> 
>       /**
>        * @param customers the customers to set
>        */
>       public void setCustomers(List customers) {
>               this.customers = customers;
>       }
> }
> 
> In the XFire documentation for mapping and
> collections
> link, it is mentioned only about the mappings for
> passing direct Collections of java objects as
> parameters, but I am not able to find the way when
> the collection is an
> attribute of a Java Object itself.
> 
> Can someone please guide me with this? It is quite
> urgent.
> 
> Thanks in advance!
> 
> Regards,
> Anshumn
> 
> 
>        
>
________________________________________________________________________
> ____________Ready for the edge of your seat? 
> Check out tonight's top picks on Yahoo! TV. 
> http://tv.yahoo.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
> 
> 



 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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

    http://xircles.codehaus.org/manage_email

Reply via email to