Does Axis2 support circular referencing of objects.

2009-01-18 Thread Happy Somani
Hi,

 

I was just curious about knowing whether axis2 supports circular referencing
of objects.

 

For eg.

 

There are two classes like

 

Class Parent

{

String motherName;

Child[] children;

 

}

 

Class Child

{

String name;

Parent parent;

}

 

Will I be able to sent Parent object as an argument to a webservice and
return that object back.

 

Regards

Happy



Re: Does Axis2 support circular referencing of objects.

2009-01-18 Thread Afkham Azeez
It should work. However, the best way is to try it out. You can write
a POJO Web service which takes these classes as arguments or returns
them. If you use WSO2 WSAS (http://wso2.org/projects/wsas/java), you
can simply upload the jar file containing this implementation, and use
its Try It tool to invoke the Web service and see whether you get
the desired result back.

HTH
Azeez

On Sun, Jan 18, 2009 at 5:46 PM, Happy Somani hap...@ee.iitb.ac.in wrote:
 Hi,



 I was just curious about knowing whether axis2 supports circular referencing
 of objects.



 For eg.



 There are two classes like



 Class Parent

 {

 String motherName;

 Child[] children;



 }



 Class Child

 {

 String name;

 Parent parent;

 }



 Will I be able to sent Parent object as an argument to a webservice and
 return that object back.



 Regards

 Happy



-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760