Problem with response parse - List
----------------------------------

                 Key: AXIS2-4908
                 URL: https://issues.apache.org/jira/browse/AXIS2-4908
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.5.1, 1.5.3
         Environment: Windows XP , JDK 1.5
            Reporter: Leonardo Felipe


Im generating Java Client by WSDL (wsdl2java), when I try to mock the 
webService with SoapUi, everything works fine. The problem is when I try to 
test using the real service (generated by Axis 1.4).

This is an response example from mock (SoapUi) working:

   <soapenv:Header/>
   <soapenv:Body>
      <con:UltimasContasFaturaResponse>
         <Retorno>
            <Codigo>0</Codigo>
            <Ticket>0ed14dd16b0c5e4879462cde28afb58f</Ticket>
            <Mensagem>Dados recuperados com sucesso</Mensagem>
         </Retorno>
         <ListaFaturas>
            <item>
               <ContaFatura>2410762965</ContaFatura>
               <DataVencimento>2010-12-04 00:00:00.0</DataVencimento>
               <Numero>304952773</Numero>
               <Valor>40772.69</Valor>
               <ValorAjustado>0</ValorAjustado>
               <ValorPagamento>0</ValorPagamento>
            </item>
                        <item>
               <ContaFatura>2410762965</ContaFatura>
               <DataVencimento>2010-12-05 00:00:00.0</DataVencimento>
               <Numero>304952773</Numero>
               <Valor>40732.69</Valor>
               <ValorAjustado>0</ValorAjustado>
               <ValorPagamento>0</ValorPagamento>
            </item>
         </ListaFaturas>
      </con:UltimasContasFaturaResponse>
   </soapenv:Body>


This is an response example from Service (Axis 1.4)

  <soapenv:Body>
      <UltimasContasFaturaResponse xmlns="/consultassiebel">
         <Retorno xmlns="">
            <Codigo>0</Codigo>
            <Ticket>0ed14dd16b0c5e4879462cde28afb58f</Ticket>
            <Mensagem>Dados recuperados com sucesso</Mensagem>
         </Retorno>
         <ListaFaturas xsi:type="ns1:Fatura" xmlns="" xmlns:ns1="/consulta.xsd">
            <ContaFatura>2410762965</ContaFatura>
            <DataVencimento>2011-01-04 00:00:00.0</DataVencimento>
            <Numero>311801348</Numero>
            <Valor>44911.69</Valor>
            <ValorAjustado>0</ValorAjustado>
            <ValorPagamento>0</ValorPagamento>
         </ListaFaturas>
         <ListaFaturas xsi:type="ns2:Fatura" xmlns="" xmlns:ns2="/consulta.xsd">
            <ContaFatura>2410762965</ContaFatura>
            <DataVencimento>2010-12-04 00:00:00.0</DataVencimento>
            <Numero>304952773</Numero>
            <Valor>40772.69</Valor>
            <ValorAjustado>0</ValorAjustado>
            <ValorPagamento>0</ValorPagamento>
         </ListaFaturas>
         <ListaFaturas xsi:type="ns3:Fatura" xmlns="" xmlns:ns3="/consulta.xsd">
            <ContaFatura>2410762965</ContaFatura>
            <DataVencimento>2010-11-04 00:00:00.0</DataVencimento>
            <Numero>296044322</Numero>
            <Valor>42731.9</Valor>
            <ValorAjustado>0</ValorAjustado>
            <ValorPagamento>42731.9</ValorPagamento>
         </ListaFaturas>
      </UltimasContasFaturaResponse>
   </soapenv:Body>



The problem is when Stub try to parse Response XML.

StackTrace:
Caused by: java.lang.ClassCastException: ConsultaStub$Fatura
        at stub.ConsultaStub$ListaFaturas$Factory.parse(ConsultaStub.java:14620)
        at 
stub.ConsultaStub$UltimasContasFaturaResponse$Factory.parse(ConsultaStub.java:8466)
        at stub.ConsultaStub.fromOM(ConsultaStub.java:30077)
        ... 32 more

This problem occurs in axis 1.5.1 and 1.5.3. The 1.6 version solve this 
problem? 


Thanks,

Leonardo Felipe





-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to