Problem in getting Long[] from Serialized Object using Axis 1.1
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   venkatasubbaiah_chenna
Posted On:   Thursday, February 12, 2004 09:40 AM

Hello I have a problem in getting Long[] type from Serialized Object. I am using axis1.1 I have a HashMap to get which contains long as key and Object[] as value. This object contains two variables one is long and other one is Long[]. I am not getting this final Map due to some problem. I am able to get the response xml with all data properly except the Long[]. Wherever the Long[] values are null there SOAP element is comming like this instead of xsi:type="soapenc:Array" soapenc:arrayType="xsd:long[0]"/> Response xml: 39 soapenc:arrayType="ns2:CramerObjectSetPattern[4]" xmlns:s   More>>


Hello

I have a problem in getting Long[] type from Serialized Object. I am using
axis1.1



I have a HashMap to get which contains long as key and Object[] as value.
This object contains two variables one is long and other one is Long[]. I am
not getting this final Map due to some problem. I am able to get the
response xml with all data properly except the Long[]. Wherever the Long[]
values are null there SOAP element is comming like this
instead of
xsi:type="soapenc:Array" soapenc:arrayType="xsd:long[0]"/>


			
Response xml:

39

soapenc:arrayType="ns2:CramerObjectSetPattern[4]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

39



0



1016

2



100




JavaBean:
public class CramerObjectSetPattern implements java.io.Serializable
{
private long cramerObjectSetID;
private Long[] types;

server-config.wsdd:

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
type="java:com.cramer.core.framework.service.CramerObjectSetPattern"
qname="ns8:CramerObjectSetPattern"
xmlns:ns8="http://service.framework.core.cramer.com"/>

Kindly guide me.

thanks in advance.

Chenna


   <<Less
About | Sitemap | Contact