Illegal Text data found as child of:

View: New views
16 Messages — Rating Filter:   Alert me  

Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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,

ws.xsd
binding-firma.xml
MensajeSalidaEjemplo.xml



Re: Illegal Text data found as child of:

by Werner Guttmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry Werner, there are one error in xml sample. The value for element <peticion> was wrong. The correct value is "FirmaServidor". If you see the schema definition <mensajeSalida/respuesta/Respuesta> you can see that is a choice  from several groupid's (resultadoValidarFirma, resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I allways get the error I described in the first post.
If you drill down <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find that through the group reference 'resultadoGeneral' you get the element 'estado' and the element 'descripcion'.

Any ideas?
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


Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Illegal Text data found as child of:

by Werner Guttmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Someone have tested this and get the same error?
Thanks.


Sorry Werner, there are one error in xml sample. The value for element <peticion> was wrong. The correct value is "FirmaServidor". If you see the schema definition <mensajeSalida/respuesta/Respuesta> you can see that is a choice  from several groupid's (resultadoValidarFirma, resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I allways get the error I described in the first post.
If you drill down <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find that through the group reference 'resultadoGeneral' you get the element 'estado' and the element 'descripcion'.

Any ideas?
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



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Someone have tested this and get the same error?
Thanks.


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



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No ideas ??


Someone have tested this and get the same error?
Thanks.

Paco Sanchez wrote:
Sorry Werner, there are one error in xml sample. The value for element <peticion> was wrong. The correct value is "FirmaServidor". If you see the schema definition <mensajeSalida/respuesta/Respuesta> you can see that is a choice  from several groupid's (resultadoValidarFirma, resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I allways get the error I described in the first post.
If you drill down <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find that through the group reference 'resultadoGeneral' you get the element 'estado' and the element 'descripcion'.

Any ideas?
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


Re: Illegal Text data found as child of:

by Werner Guttmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure, plenty of ideas, but in the meantime myself (and others) have been
taking holiday (it's summer time after all), etc.

In addition, as already mentioned a few times, the complexity of your
XML schema is simply to high to showcase the problem at hand. If you
want us to assist you (in our spare time, that is), please take some (of
your) time and break the XML schema down to something minimal, and
remove everything else.

Otherwise, please do consider taking up professional services where any
of us (committers) will be able to assist you in our professional (day)
time.

Regards
Werner

Paco Sanchez wrote:

> No ideas ??
>
>
> Paco Sanchez wrote:
>> Someone have tested this and get the same error?
>> Thanks.
>>
>>
>> Paco Sanchez wrote:
>>> Sorry Werner, there are one error in xml sample. The value for element
>>> <peticion> was wrong. The correct value is "FirmaServidor". If you see
>>> the schema definition <mensajeSalida/respuesta/Respuesta> you can see
>>> that is a choice  from several groupid's (resultadoValidarFirma,
>>> resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one
>>> that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I
>>> allways get the error I described in the first post.
>>> If you drill down
>>> <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find that
>>> through the group reference 'resultadoGeneral' you get the element
>>> 'estado' and the element 'descripcion'.
>>>
>>> Any ideas?
>>> 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



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, I hope you enjoyed your holidays,

I've tried to simplify the XML schema removing types, groups and elements that are not necessary.
Thanks in advance,

 
Werner Guttmann wrote:
Sure, plenty of ideas, but in the meantime myself (and others) have been
taking holiday (it's summer time after all), etc.

In addition, as already mentioned a few times, the complexity of your
XML schema is simply to high to showcase the problem at hand. If you
want us to assist you (in our spare time, that is), please take some (of
your) time and break the XML schema down to something minimal, and
remove everything else.

Otherwise, please do consider taking up professional services where any
of us (committers) will be able to assist you in our professional (day)
time.

Regards
Werner

Paco Sanchez wrote:
> No ideas ??
>
>
> Paco Sanchez wrote:
>> Someone have tested this and get the same error?
>> Thanks.
>>
>>
>> Paco Sanchez wrote:
>>> Sorry Werner, there are one error in xml sample. The value for element
>>> <peticion> was wrong. The correct value is "FirmaServidor". If you see
>>> the schema definition <mensajeSalida/respuesta/Respuesta> you can see
>>> that is a choice  from several groupid's (resultadoValidarFirma,
>>> resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one
>>> that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I
>>> allways get the error I described in the first post.
>>> If you drill down
>>> <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find that
>>> through the group reference 'resultadoGeneral' you get the element
>>> 'estado' and the element 'descripcion'.
>>>
>>> Any ideas?
>>> 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

ws.xsd

Re: Illegal Text data found as child of:

by Werner Guttmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great. Just attach them to the already existing isue once you have
something ready.

Werner

PS And YES, I most definitely enjoyed my break(s).

Paco Sanchez wrote:

> Hello, I hope you enjoyed your holidays,
>
> I've tried to simplify the XML schema removing types, groups and elements
> that are not necessary.
> Thanks in advance,
>
>  
>
> Werner Guttmann wrote:
>> Sure, plenty of ideas, but in the meantime myself (and others) have been
>> taking holiday (it's summer time after all), etc.
>>
>> In addition, as already mentioned a few times, the complexity of your
>> XML schema is simply to high to showcase the problem at hand. If you
>> want us to assist you (in our spare time, that is), please take some (of
>> your) time and break the XML schema down to something minimal, and
>> remove everything else.
>>
>> Otherwise, please do consider taking up professional services where any
>> of us (committers) will be able to assist you in our professional (day)
>> time.
>>
>> Regards
>> Werner
>>
>> Paco Sanchez wrote:
>>> No ideas ??
>>>
>>>
>>> Paco Sanchez wrote:
>>>> Someone have tested this and get the same error?
>>>> Thanks.
>>>>
>>>>
>>>> Paco Sanchez wrote:
>>>>> Sorry Werner, there are one error in xml sample. The value for element
>>>>> <peticion> was wrong. The correct value is "FirmaServidor". If you see
>>>>> the schema definition <mensajeSalida/respuesta/Respuesta> you can see
>>>>> that is a choice  from several groupid's (resultadoValidarFirma,
>>>>> resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one
>>>>> that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I
>>>>> allways get the error I described in the first post.
>>>>> If you drill down
>>>>> <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find
>>>>> that
>>>>> through the group reference 'resultadoGeneral' you get the element
>>>>> 'estado' and the element 'descripcion'.
>>>>>
>>>>> Any ideas?
>>>>> 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
>>
>>
>>
>>
> http://www.nabble.com/file/p19408723/ws.xsd ws.xsd

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Illegal Text data found as child of:

by Paco Sanchez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry,
I attach the following zip with three files:
   - ws-simple.xsd                   (the XML schema simplified)
   - binding-firma.xml               (the binding file)
   - MensajeSalidaEjemplo.xml    (one xml sample for unmarshall)
error-castor.zip

Thanks in advance,

Werner Guttmann wrote:
Great. Just attach them to the already existing isue once you have
something ready.

Werner

PS And YES, I most definitely enjoyed my break(s).

Paco Sanchez wrote:
> Hello, I hope you enjoyed your holidays,
>
> I've tried to simplify the XML schema removing types, groups and elements
> that are not necessary.
> Thanks in advance,
>
>  
>
> Werner Guttmann wrote:
>> Sure, plenty of ideas, but in the meantime myself (and others) have been
>> taking holiday (it's summer time after all), etc.
>>
>> In addition, as already mentioned a few times, the complexity of your
>> XML schema is simply to high to showcase the problem at hand. If you
>> want us to assist you (in our spare time, that is), please take some (of
>> your) time and break the XML schema down to something minimal, and
>> remove everything else.
>>
>> Otherwise, please do consider taking up professional services where any
>> of us (committers) will be able to assist you in our professional (day)
>> time.
>>
>> Regards
>> Werner
>>
>> Paco Sanchez wrote:
>>> No ideas ??
>>>
>>>
>>> Paco Sanchez wrote:
>>>> Someone have tested this and get the same error?
>>>> Thanks.
>>>>
>>>>
>>>> Paco Sanchez wrote:
>>>>> Sorry Werner, there are one error in xml sample. The value for element
>>>>> <peticion> was wrong. The correct value is "FirmaServidor". If you see
>>>>> the schema definition <mensajeSalida/respuesta/Respuesta> you can see
>>>>> that is a choice  from several groupid's (resultadoValidarFirma,
>>>>> resultadoFirmaServidor,resultadoFirmaServidorCoSign, ...). The only one
>>>>> that is unmarshalling OK is 'resultadoValidarFirma'. With the others, I
>>>>> allways get the error I described in the first post.
>>>>> If you drill down
>>>>> <mensajeSalida/respuesta/Respuesta/resultadoFirmaServidor> you find
>>>>> that
>>>>> through the group reference 'resultadoGeneral' you get the element
>>>>> 'estado' and the element 'descripcion'.
>>>>>
>>>>> Any ideas?
>>>>> 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
>>
>>
>>
>>
> http://www.nabble.com/file/p19408723/ws.xsd ws.xsd

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Re: Illegal Text data found as child of:

by Werner Guttmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I said 'attach' I was actually referring to our Jira instance at

http://jira.codehaus.org/browse/CASTOR

Werner

Paco Sanchez wrote:

> Sorry,
> I attach the following zip with three files:
>    - ws-simple.xsd                   (the XML schema simplified)
>    - binding-firma.xml               (the binding file)
>    - MensajeSalidaEjemplo.xml    (one xml sample for unmarshall)
> http://www.nabble.com/file/p19433613/error-castor.zip error-castor.zip
>
> Thanks in advance,
>
>
> Werner Guttmann wrote:
>> Great. Just attach them to the already existing isue once you have
>> something ready.
>>
>> Werner
>>
>> PS And YES, I most definitely enjoyed my break(s).
>>
>> Paco Sanchez wrote:
>>> Hello, I hope you enjoyed your holidays,
>>>
>>> I'