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>
<calcName>A</calcName>
<intVar1>2640</intVar1>
</addArrayReturn>
<addArrayReturn>
<calcName>B</calcName>
<intVar1>6042</intVar1>
</addArrayReturn>
<addArrayReturn>
<calcName>C</calcName>
<intVar1>6044</intVar1>
</addArrayReturn>
<addArrayReturn>
<calcName>D</calcName>
<intVar1>6046</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: [email protected]
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: [email protected]
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]