Someone have tested this and get the same error? Thanks.
Paco Sanchez wrote: > > Well Werner, > try to unmarshall the following xml file with the generated classes from > the xsd file i've attached in the first post and you can see the error I > get. > > <?xml version="1.0" encoding="UTF-8"?> > <mensajeSalida xmlns="http://afirmaws/ws/firma" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://afirmaws/ws/firma > https://pre-afirma.redinteradministrativa.es/afirmaws/xsd/mfirma/ws.xsd"> > <peticion>FirmaServidor</peticion> > <versionMsg>1.0</versionMsg> > <respuesta> > <Respuesta> > <estado>true</estado> > <descripcion>Proceso Terminado Correctamente</descripcion> > <idTransaccion>1234567</idTransaccion> > > <firmaElectronica>abcdefghijklmnoprstuvxyz</firmaElectronica> > <formatoFirma>CMS</formatoFirma> > </Respuesta> > </respuesta> > </mensajeSalida> > > > Werner Guttmann wrote: >> >> Can you break down the problem to a *minimal* test case that I can use >> to assess the problem in detail ? >> >> Werner >> >> Paco Sanchez wrote: >>> I found that only the first one groupid from complexType choice is >>> unmarshalled well. But I do not know how to generate java classes for >>> this >>> schema in order to avoid this problem. >>> Thanks in advance, >>> >>> >>> >>> Werner Guttmann wrote: >>>> Just looking at some XML schema artifacts, it looks like <descripcion> >>>> cannot be of type text in this context of the sample message. >>>> >>>> Drilling down from <mensajeSalida/respuesta/Respuesta> in your case, >>>> you'll find that through the group reference to the group definition >>>> >>>> resultadoValidarFirma >>>> >>>> there#s a 'descripcion' element, but not of type 'xs:string'. I hope >>>> this helps. >>>> >>>> Regards >>>> Werner >>>> >>>> >>>> Paco Sanchez wrote: >>>>> Hi , >>>>> I've generated the java classes from one xsd using the ant task. I've >>>>> I >>>>> use >>>>> the castor-anttask 1.2 with a binding file. When I try to unmarshall >>>>> some >>>>> xml I get the error >>>>> >>>>> "Illegal Text data found as child of: descripcion value "Proceso >>>>> terminado correctamente" >>>>> >>>>> I've attached the xsd, the binding file and one xml sample file. >>>>> >>>>> Thanks in advance, >>>>> >>>>> http://www.nabble.com/file/p18524517/ws.xsd ws.xsd >>>>> http://www.nabble.com/file/p18524517/binding-firma.xml >>>>> binding-firma.xml >>>>> http://www.nabble.com/file/p18524517/MensajeSalidaEjemplo.xml >>>>> MensajeSalidaEjemplo.xml >>>>> >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > -- View this message in context: http://www.nabble.com/Illegal-Text-data-found-as-child-of%3A-tp18524517p18648280.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

