RE: Converting array of objects to OMElement

2008-04-11 Thread Tikayatray, Lokajit

Thanks Raghu.
 After going thr' the article, I am able to create and send request
after converting my array of objects to OMElement and also able to get
back the response xml. But I am unable to deserialize it on client side
using the below line of code:

Object[] responseArray = BeanUtil.deserialize(omElementResp, new
Object[]{new OutputSet()}, new AxisService().getObjectSupplier());

It is giving below exception:
java.lang.ClassCastException: com.citi.gwm.grid.calculator.OutputSet

My response XML is as below:

?xml version=1.0 encoding=UTF-8?
   soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Body
 addArrayResponse xmlns=http://grid.gwm.citi.com;
addArrayReturn
   calcNameA/calcName
   intVar12640/intVar1
/addArrayReturn
addArrayReturn
   calcNameB/calcName
   intVar16042/intVar1
/addArrayReturn
addArrayReturn
   calcNameC/calcName
   intVar16044/intVar1
/addArrayReturn
addArrayReturn
   calcNameD/calcName
   intVar16046/intVar1
/addArrayReturn
 /addArrayResponse
  /soapenv:Body
   /soapenv:Envelope


Can any one please help me in solving this exception.


Thanks and Regards
Lokajit Tikayatray
-Original Message-
From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 8:04 PM
To: axis-user@ws.apache.org
Subject: RE: Converting array of objects to OMElement

Hi Lokajit,

Someone in the forum replied to this some days ago ... here's
the link which tell you how to convert a Java bean to OMELement ...

http://wso2.org/library/332

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 4:52 PM
To: axis-user@ws.apache.org
Subject: Converting array of objects to OMElement


Hi All,
I have an array of java custom objects. I need to convert them to
OMElements. Can anybody help me in this regard.
Sample code or any helpful link is much appreciated.


Thanks and Regards
Lokajit Tikayatray

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Converting array of objects to OMElement

2008-04-10 Thread Raghu Upadhyayula
Hi Lokajit,

Someone in the forum replied to this some days ago ... here's
the link which tell you how to convert a Java bean to OMELement ...

http://wso2.org/library/332

Thanks
Raghu

-Original Message-
From: Tikayatray, Lokajit [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:52 PM
To: axis-user@ws.apache.org
Subject: Converting array of objects to OMElement


Hi All,
I have an array of java custom objects. I need to convert them to
OMElements. Can anybody help me in this regard.
Sample code or any helpful link is much appreciated.


Thanks and Regards
Lokajit Tikayatray

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]