axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Moya (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2215) java.lang.List returns only an <empty xmlns="http://www.w3.org/2001/XMLSchema">false</empty> element
Date Mon, 19 Feb 2007 16:23:06 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enrique Moya updated AXIS2-2215:
--------------------------------

    Attachment: code.zip

server, client and execution

> java.lang.List returns only an <empty xmlns="http://www.w3.org/2001/XMLSchema">false</empty>
element
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2215
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2215
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 Nighty, Eclipse 3.2.1, Windows 2000
>            Reporter: Enrique Moya
>            Priority: Blocker
>         Attachments: code.zip
>
>
> I've got two web services, one with a return type List<String> and another with
a return type List<a bean>.
> None of them returns the elements of the list, they only returns <empty xmlns="http://www.w3.org/2001/XMLSchema">false</empty>
element
> service serveiProvaList returns List<String>
> -----------------------------------------------------------
> package principal;
> import java.util.ArrayList;
> import java.util.List;
> public class GestorGeneral 
> {
> 	public List<String> DonemLlistaStrings(String entrada)
> 	{
> 		List<String> llista = new ArrayList<String>();
> 		
> 		llista.add("1 item");
> 		llista.add("2 item");
> 		llista.add("3 item");
> 		llista.add("4 item");
> 		llista.add("5 item");
> 		
> 		return llista;
> 	}
> }
> It returns this
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Mon, 19 Feb 2007 16:03:50 GMT
> 167
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
/><soapenv:Body><ns:DonemLlistaStringsResponse xmlns:ns="http://principal/xsd"><ns:return><empty
xmlns="http://www.w3.org/2001/XMLSchema">false</empty></ns:return></ns:DonemLlistaStringsResponse></soapenv:Body></soapenv:Envelope>
> 0
> service APService returns List<APAttendance>
> -----------------------------------------------------------
> package com.thales.vhccc.ap.dao;
> import java.util.ArrayList;
> import java.util.Date;
> import java.util.List;
> import com.thales.vhccc.ap.bean.APAttendance;
> import com.thales.vhccc.ap.bean.APPharmacy;
> import com.thales.vhccc.ap.bean.APVaccine;
> import com.thales.vhccc.dao.exception.AttendanceBusinessException;
> import com.thales.vhccc.dao.exception.PharmacyBusinessException;
> import com.thales.vhccc.dao.exception.VaccineBusinessException;
> public class APDaoImpl implements APDao {
> 	public List<APAttendance> getAlergicsAttList(String cip, String language)
> 			throws AttendanceBusinessException {
> 		// TODO Auto-generated method stub
> 		List<APAttendance> llistaAtencions = new ArrayList<APAttendance>();
> 		APAttendance episodi1 = new APAttendance();
> 		episodi1.setAttendanceCode("Codi1 " + cip);
> 		episodi1.setAttendanceDesc("Llenguatge1 " + language);
> 		episodi1.setAttendanceType(1);
> 		episodi1.setCenterCode("CodiCentre");
> 		episodi1.setCenterDesc("DescripcioCentre");
> 		episodi1.setDiagCodeCim("DIAGCODE");
> 		Date a = new Date();
> 		episodi1.setEndDate(a);
> 		episodi1.setInitDate(a);
> 		episodi1.setNhc("NHC");
> 		episodi1.setSrvCode("CodiServidor");
> 		episodi1.setSrvDesc("DescripcioServidor");
> 		llistaAtencions.add(episodi1);
> 		
> 		return llistaAtencions;
> 	}
> }
> It returns
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml;action="urn:getAlergicsAttList";;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Mon, 19 Feb 2007 16:03:36 GMT
> 173
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header
/><soapenv:Body><ns:getAlergicsAttListResponse xmlns:ns="http://dao.ap.vhccc.thales.com/xsd"><ns:return><empty
xmlns="http://www.w3.org/2001/XMLSchema">false</empty></ns:return></ns:getAlergicsAttListResponse></soapenv:Body></soapenv:Envelope>
> 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message