All WSDL choice elements are appearing in Web Service input for external service. (Doc ID 1390657.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Java CAPS - Version: 5.1.3 and later   [Release: 5.1 and later ]
Information in this document applies to any platform.

Symptoms

BPEL Webservice on Oracle JavaCAPS 5.1.3 RU4 is not honoring 'choice elements'.

Taking the following XSD defined in the WSDL as an example ;

<xs:choice>
<xs:element name="instauracaoProcesso" type="trib:InstauracaoProcesso"/>
<xs:element name="eventoOuOcorrencia" type="trib:EventoOuOcorrencia"/>
<xs:element name="decisaoProcesso" type="trib:DecisaoProcesso"/>
</xs:choice>

When the service is invoked with just the data defined for the  'decisaoProcesso' element ;

trib:argumentos>
<trib:decisaoProcesso>
<trib:idOcorrencia>{00000000-0000-0000-0000-000000000000}</trib:idOcorrencia>
<trib:idTribunal>aaaa</trib:idTribunal>
<trib:idProcessoTribunal>aaaaaaaaaaa</trib:idProcessoTribunal>
<trib:idProcessoDGCI>a</trib:idProcessoDGCI>
<trib:tipoDecisao>a</trib:tipoDecisao>
<trib:sentidoDecisao>aa</trib:sentidoDecisao>
<trib:dataDecisao>1967-08-13</trib:dataDecisao>
<trib:dataNotificacaoRPF>1967-08-13</trib:dataNotificacaoRPF>
<trib:taxaJustica>1234567891234</trib:taxaJustica>
<trib:custasParte>1234567891234</trib:custasParte>
<trib:documentos>

You can see that all elements are returned but we were only expecting 'decisaoProcesso' element ;

<tns:TribSITAFNotifEventosExterno xmlns:tns="http://itij.mj.pt/schemas/services/trib/external/sitafNotifEventosExterno/messages">
<tns:argumentos>
<tns:decisaoProcesso>
<tns:idOcorrencia>{00000000-0000-0000-0000-000000000000}</tns:idOcorrencia>
<tns:idTribunal>aaaa</tns:idTribunal>
<tns:idProcessoTribunal>aaaaaaaaaaa</tns:idProcessoTribunal>
<tns:idProcessoDGCI>a</tns:idProcessoDGCI>
<tns:tipoDecisao>a</tns:tipoDecisao>
<tns:sentidoDecisao>aa</tns:sentidoDecisao>
<tns:dataNotificacaoRPF>1967-08-13</tns:dataNotificacaoRPF>
<tns:taxaJustica>1234567891234</tns:taxaJustica>
<tns:custasParte>1234567891234</tns:custasParte>
<tns:documentos>
<tns:documento>
<tns:tipo>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:tipo>
<tns:data>1967-08-13</tns:data>
<tns:conteudo>UjBsR09EbGhjZ0dTQUxNQUFBUUNBRU1tQ1p0dU1GUXhEUzhi</tns:conteudo>
<tns:url>a</tns:url>
<tns:metadados>
<tns:autor>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:autor>
<tns:comentario>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:comentario>
<tns:registo>
<tns:dataEntrada>1967-08-13</tns:dataEntrada>
<tns:numEntrada>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:numEntrada>
<tns:numSaida>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:numSaida>
<tns:tipo>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:tipo>
<tns:via>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:via>
</tns:registo>
<tns:estado>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:estado>
<tns:numProcesso>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</tns:numProcesso>
</tns:metadados>
</tns:documento>
</tns:documentos>
</tns:decisaoProcesso>
<tns:eventoOuOcorrencia>
<tns:idOcorrencia/>
<tns:idTribunal/>
<tns:idProcessoTribunal/>
<tns:tipoNotificacao/>
</tns:eventoOuOcorrencia>
<tns:instauracaoProcesso>
<tns:idOcorrencia/>
<tns:idTribunal/>
<tns:idProcessoTribunal/>
<tns:tipoProcesso/>
<tns:valorProcesso/>
</tns:instauracaoProcesso>
</tns:argumentos>
</tns:TribSITAFNotifEventosExterno>

i.e the following are included ;

<tns:instauracaoProcesso>
<tns:idOcorrencia/>
<tns:idTribunal/>
<tns:idProcessoTribunal/>
<tns:tipoProcesso/>
<tns:valorProcesso/>
</tns:instauracaoProcesso>

</tns:decisaoProcesso>
<tns:eventoOuOcorrencia>
<tns:idOcorrencia/>
<tns:idTribunal/>
<tns:idProcessoTribunal/>
<tns:tipoNotificacao/>
</tns:eventoOuOcorrencia>


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms