Hi all, 

I´m try to make a binding to marshall and unmarshall a xml file, but
i´m not been sucessfull... can anyone help me???


This is the xml i´m trying to have a binding:

<MS01.0.1>
        <HeaderMensagem CodigoMensagem="0000"/>
        <DadosMensagem TipoInformacao="0000"/>
        <TomadorSeguro NumeroCliente="123333" TipoCliente="S"/>
        <IdentificacaoPainel CodigoLider="Stri" PercParticipacaoLider="0,0">
                <CompanhiaNL Referencia="0000" CodigoNaoLider="000" />
                <CompanhiaNL Referencia="0000" CodigoNaoLider="001" />
                <CompanhiaNL Referencia="0000" CodigoNaoLider="002" />
        </IdentificacaoPainel>
        <CaracterizacaoBasica ApoliceSegurNet="Stringaaaaaaaaaaaa" />
        <IdentificacaoSegurados NumSegurados="000">
                <Participante ReferenciaParticipante="000" />
                <Participante ReferenciaParticipante="000" />
                <Participante ReferenciaParticipante="000" />
                <Participante ReferenciaParticipante="000" />
        </IdentificacaoSegurados>
        <Documentos>
                        <Documento>
                        <NomeDocumento>ola.jpg</NomeDocumento>
                        <Ficheiro>####</Ficheiro>
                </Documento>
                <Documento>
                        <NomeDocumento>ole.jpg</NomeDocumento>
                        <Ficheiro>###</Ficheiro>
                </Documento>
                <Documento>
                        <NomeDocumento>oli.jpg</NomeDocumento>
                        <Ficheiro>##</Ficheiro>
                </Documento>
        </Documentos>
</MS01.0.1>


And this is the structure that i have to put the data : 

        ContratoLN -> (MS01.0.1)

        contratoLN.details = (MS01.0.1) - Type (BaseDetails)
                      instance of object - ContratoDetails extends BaseDetails

        contratoLN.details.tomadorSeguro = (TomadorSeguro) - Type
(TomadorSeguroDetails)

        And the collections: (That work fine)

        contratoLN.paineis = (IdentificacaoPainel) - Type (IntervenienteDetails)
        contratoLN.segurados = (IdentificacaoSegurados ) - Type
(IdentificacaoSeguradosDetails)
        contratoLN.anexos= (Documentos) - Type (AnexosDetails)


in resume the problem is to make a bindind of the object
contratoLN.details, that have the same binding of contratoLN, probably
the XML is no well constructed but now are no remedy, i stuck with
this. I try diferent forms but no one result.

Can anyone have a example of a binding of this???

cheers


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to