java - Axis2 / SOAP, return List<myIObject> produce empty return -


so have piece of code producing soap serivce in java, wrapping python code through jython on tomcat/axis2 server... , works!

i have method return

   public static list<myclass> dosomething() 

but soap answer empty data:

<soapenv:envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">    <soapenv:body>       <ns:domyserviceresponse xmlns:ns="http://mypyinterface" xmlns:ax23="http://mypyinterface/xsd">      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>      <ns:return xsi:type="ax23:myclass" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>       </ns:domyserviceresponse >    </soapenv:body> </soapenv:envelope> 

i have found many posts on subject on web complex types in axis2 - map, how send array or collection of complex objects using web services in java (e.g. axis2)? , many 1 can not list return, array,

but, not understand, notice result above empty list right count of elements, if ever decide produce list< string > result, right values (is because using simple < string > java type inside list?) without changing array or arraylist (while have read list can not produced)

so may have missed else, there trick may have forgotten? changing myclass java.io.serilizable or providing specific method can used axis2 have/produce right values in xml output soap stream?

and possible have reply via axis2 produce list or not?

no, not possible. can read previous answer question here.

in case, return this:

public static myclass[] dosomething() 

just let list.toarray() magic you!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -