Empty sequence is generated for method's return type

stlecho's picture
Hi, I'm trying to generate a WSDL for the following method: "public PhysicalPersonList queryPhysicalPerson(User user, QueryPhysicalPersonCriterias criterias);". The PhysicalPersonList class extends LinkedList<PhysicalPerson>.   I was expecting to have something like the following for the PhysicalPersonList WSDL/XSD element : "<xs:complexType name="PhysicalPersonList"><xs:sequence><element name="PhysicalPerson" .../></xs:sequence></xs:complexType>". However, the generated element is the following one: "<xs:complexType name="PhysicalPersonList"><xs:sequence/></xs:complexType>". The PhysicalPersonList element is an empty sequence :o( which means that a client that tries to consume a Webservice response has no clue about which type of objects will be contained in the PhysicalPersonList element. Any idea on how to solve this issue (change Java structure, bug-fix in WSF/Spring, additional parameter, ...) will be highly appreciated :o). Regards, Stefan Lecho.  
sanjayak's picture

Java collection is not a

Java collection is not a very interoparable data type. This is on of the problems you could run in to, when you do code first web service development. Please look at the below forum thread. http://wso2.org/forum/thread/1039 The interoparable approach is to use arrays. http://wso2.org/forum/thread/1747    
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)