Hi,
I think you are right.
List might contain different kinds of objects. So Axis does not know how to 
deserialize.
So just use an array of objects, so no more confussion.

From: liang li [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2008 3:36 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: about collection

thanks Shehan,
however i occoured some failure when i used mulle, axis.
first let me tell you the envirment;
service programs are put in mule/lib/user, and i config the file like this:
 <mule-descriptor name="hlrWebService" 
implementation="com.wri.hy.jcssv2.srv.hlr.HLRServiceImpl">
   <inbound-router>
    <endpoint address="axis:http://192.168.15.243:8083/services"/>
   </inbound-router>
   <properties>
    <property name="style" value="wrapped"/>
    <property name="use" value="literal"/>
   </properties>
  </mule-descriptor>
 start the mule, that all ok. so i begin to call

about the first kind of interface:
an exception occourced:
Caused by: org.xml.sax.SAXException: Deserializing parameter 
'getBUBaseInfoListReturn':  could not find deserializer for type 
{http://www.w3.org/2001/XMLSchema}anyType<http://www.w3.org/2001/XMLSchema%7danyType>
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
 at org.apache.axis.client.Call.invoke(Call.java:2470)
 at org.apache.axis.client.Call.invoke(Call.java:2366)
 at org.apache.axis.client.Call.invoke(Call.java:1812)
 at 
org.mule.providers.soap.axis.AxisMessageDispatcher.doSend(AxisMessageDispatcher.java:144)
 at 
org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224)

when i changes the interface like this:
public EnquireBURspVO[] getBUBaseInfoList(String loginId) throws          
Exception;everything is ok.

about the second interface
public EnquireBURspVO[] getBUBaseInfoList(String loginId,List isdnList) throws 
Exception
i found the isdnList transferd is not null, but the elements are null.

so i need modify my interface like this:
public EnquireBURspVO[] getBUBaseInfoList(String loginId,String[] isdns) throws 
Exception


best regards
liang li


2008/7/25, Shehan Simen <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>:

Of course yes.



From: liang li [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
Sent: Friday, 25 July 2008 2:11 PM
To: axis-user
Subject: about collection



hi,all

     i know little about axis. does axis permit that the return type is java 
collection, for example:List.

does axis permit that the parameter type is java collection. so the follwoing 
interface is valid?

public List getAllStudent() throw Exception;



public List getStudentInfo(List studentNames) throw Exception;





need help!

best regards

liang li

Reply via email to