Hi, i'm currently facing a problem when i try to unmarchal .Net service response using xmlbeandatabinding. The issue arised when we change our aegis databinding strategy to xmlbean one. The operation "getSucursalesResponse" returns a list of sucursales wrapped with an element called "getSucursalesResult" as you can see following:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <getSucursalesResponse xmlns="http://ar/"> <getSucursalesResult> <Sucursales> <codigoSucursal>1</codigoSucursal> <descripcion>aaa</descripcion> </Sucursales> <Sucursales> <codigoSucursal>2</codigoSucursal> <descripcion>bbb</descripcion> </Sucursales> </getSucursalesResult> </getSucursalesResponse> </soap:Body> </soap:Envelope> Our service interface is defined as: @WebService(....) @SOAPBinding(use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public interface ServiceImpl extends Service { @WebMethod(operationName="getSucursales",action = "http://ar/getSucursales") @WebResult(name = "getSucursalesResult", targetNamespace = "http://ar/") public List<Sucursales> getSucursales() throws ServiceException; } the ws builder code is: JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setDataBinding(new JAXBDataBinding()); factory.getServiceFactory().setWrapped(true); ... failing with or without setwrapped(). do you know how to setup the wsproxyfactory in order to fix this issue? regards
