[EMAIL PROTECTED] wrote:
Quote: returning a List which is then transformed on Object[] with the toArray() method. (end of quote) Just do this: return (EntityVO[])myList.toArray(new EntityVO[0]) ; (end of quote) That's cleaner you're right! Unfortunetly it didn't solve my problem and I still have the same client-side exception which is a little bit different : Jul 8, 2005 4:24:22 PM org.apache.axis.client.Call invoke SEVERE: Exception: org.xml.sax.SAXException: Invalid element in com.skaware.application.config.client.ArrayOfApplicationConfiguration - getApplicationConfigurationsReturn at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) ... Anyway, I have another app with a webservice operation which is returning Object[] well. But I can't see any difference on the configuration files from the two apps. The only thing I can see I that the webservice which is working is returning xml like that : <soapenv:Envelope> <soapenv:Body> <getAllEntitiesVOResponse> <ns1:getAllEntitiesVOReturn> <item xsi:type="ns1:EntityVO"> <description>123</description> <id>1</id> <name>123</name> </item> <item xsi:type="ns1:EntityVO"> <description>skaware</description> <id>2</id> <name>skaware</name> </item> </ns1:getAllEntitiesVOReturn> </getAllEntitiesVOResponse> </soapenv:Body> </soapenv:Envelope> when the second one (which doesn't work) returns somethin like that : <soapenv:Envelope> <soapenv:Body> <getAllEntitiesVOResponse> <ns1:getAllEntitiesVOReturn> <ns1:getAllEntitiesVOReturn> <ns1:description>foo</ns1:description> <ns1:id>1</ns1:id> <ns1:name>titi</ns1:name> </ns1:getAllEntitiesVOReturn> <ns1:getAllEntitiesVOReturn> <ns1:description>bar</ns1:description> <ns1:id>2</ns1:id> <ns1:name>deadbeef</ns1:name> </ns1:getAllEntitiesVOReturn> </ns1:getAllEntitiesVOReturn> </getgetAllEntitiesVOResponse> </soapenv:Body> </soapenv:Envelope> Why in one case do I have item xsi:type="ns1:EntityVO and not in the other case? Is there something to do with axis? Thanks for your help Fabrice _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2229#2229 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user