axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4908) Problem with response parse - List
Date Sat, 25 Dec 2010 10:39:45 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975035#action_12975035
] 

Amila Chinthaka Suriarachchi commented on AXIS2-4908:
-----------------------------------------------------

try to use the -u option to generate the client side classes. 

> Problem with response parse - List
> ----------------------------------
>
>                 Key: AXIS2-4908
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4908
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.3, 1.5.1
>         Environment: Windows XP , JDK 1.5
>            Reporter: Leonardo Felipe
>         Attachments: ConsultasSiebelSoap.wsdl
>
>
> 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="/consultasl">
>          <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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message