6
Friends, I am trying to include a billet in the Box Webservice, however, when using the layout passed in the documentation, I am not successful.
The error is this: (500 Internal Server Error)
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: 'https://des.barramento.caixa.gov.br:7081/sibar/ManutencaoCobrancaBancaria/Boleto/Externo' and the SOAPAction was ''</faultstring><detail><Exception>org.apache.axis2.AxisFault: The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: 'https://des.barramento.caixa.gov.br:7081/sibar/ManutencaoCobrancaBancaria/Boleto/Externo' and the SOAPAction was ''
at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Axis2Invoker.java:3123)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:664)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:610)
The XML for inclusion is this:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ext="http://caixa.gov.br/sibar/manutencao_cobranca_bancaria/boleto/externo"
xmlns:sib="http://caixa.gov.br/sibar">
<soapenv:Header/>
<soapenv:Body>
<ext:SERVICO_ENTRADA>
<sib:HEADER>
<VERSAO>1.0</VERSAO>
<AUTENTICACAO>### REMOVI ###</AUTENTICACAO>
<USUARIO_SERVICO>SGCBS02P</USUARIO_SERVICO>
<OPERACAO>INCLUI_BOLETO</OPERACAO>
<SISTEMA_ORIGEM>SIGCB</SISTEMA_ORIGEM>
<UNIDADE>0283</UNIDADE>
<DATA_HORA>20180829110000</DATA_HORA>
</sib:HEADER>
<DADOS>
<INCLUI_BOLETO>
<CODIGO_BENEFICIARIO>0806248</CODIGO_BENEFICIARIO>
<TITULO>
<NOSSO_NUMERO>0</NOSSO_NUMERO>
<NUMERO_DOCUMENTO>00000011</NUMERO_DOCUMENTO>
<DATA_VENCIMENTO>2018-09-09</DATA_VENCIMENTO>
<VALOR>1000.00</VALOR>
<TIPO_ESPECIE>99</TIPO_ESPECIE>
<FLAG_ACEITE>S</FLAG_ACEITE>
<DATA_EMISSAO>2018-08-29</DATA_EMISSAO>
<JUROS_MORA>
<TIPO>TAXA_MENSAL</TIPO>
<VALOR>2.00</VALOR>
</JUROS_MORA>
<VALOR_ABATIMENTO>100.00</VALOR_ABATIMENTO>
<POS_VENCIMENTO>
<ACAO>DEVOLVER</ACAO>
<NUMERO_DIAS>999</NUMERO_DIAS>
</POS_VENCIMENTO>
<CODIGO_MOEDA>9</CODIGO_MOEDA>
<PAGADOR>
<CPF>22222222222</CPF>
<NOME>TESTE PAGADOR 001</NOME>
<ENDERECO>
<LOGRADOURO>SAUS QUADRA 03</LOGRADOURO>
<BAIRRO>BRASILIA</BAIRRO>
<CIDADE>BRASILIA</CIDADE>
<UF>DF</UF>
<CEP>70070030</CEP>
</ENDERECO>
</PAGADOR>
<MULTA>
<DATA>2018-09-09</DATA>
<VALOR>20.00</VALOR>
</MULTA>
<DESCONTOS>
<!--1 to 3 repetitions:-->
<DESCONTO>
<DATA>2018-08-30</DATA>
<!--You have a CHOICE of the next 2 items at this level-->
<PERCENTUAL>10.00</PERCENTUAL>
</DESCONTO>
<DESCONTO>
<DATA>2018-09-02</DATA>
<!--You have a CHOICE of the next 2 items at this level-->
<PERCENTUAL>5.00</PERCENTUAL>
</DESCONTO>
<DESCONTO>
<DATA>2018-09-05</DATA>
<!--You have a CHOICE of the next 2 items at this level-->
<PERCENTUAL>3.00</PERCENTUAL>
</DESCONTO>
</DESCONTOS>
<FICHA_COMPENSACAO>
<MENSAGENS>
<MENSAGEM>TESTE DE INCLUSAO WEBSERVICE 1</MENSAGEM>
<MENSAGEM>TESTE DE INCLUSAO WEBSERVICE 2</MENSAGEM>
</MENSAGENS>
</FICHA_COMPENSACAO>
<RECIBO_PAGADOR>
<MENSAGENS>
<MENSAGEM>TESTE DE INCLUSAO WS MSG PAG 1</MENSAGEM>
<MENSAGEM>TESTE DE INCLUSAO WS MSG PAG 2</MENSAGEM>
<MENSAGEM>TESTE DE INCLUSAO WS MSG PAG 3</MENSAGEM>
<MENSAGEM>TESTE DE INCLUSAO WS MSG PAG 4</MENSAGEM>
</MENSAGENS>
</RECIBO_PAGADOR>
<PAGAMENTO>
<QUANTIDADE_PERMITIDA>1</QUANTIDADE_PERMITIDA>
<TIPO>ACEITA_VALORES_ENTRE_MINIMO_MAXIMO</TIPO>
<VALOR_MINIMO>500.00</VALOR_MINIMO>
<VALOR_MAXIMO>1500.00</VALOR_MAXIMO>
</PAGAMENTO>
</TITULO>
</INCLUI_BOLETO>
</DADOS>
</ext:SERVICO_ENTRADA>
</soapenv:Body>
URL of the request: https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo
Does anyone have any idea what it might be?
,I’m having the same problem, managed to solve?
– Pedro Henrique
how are you doing the request? program or some tool?
– Ricardo Pontual
@Ricardopunctual I tried via Curl and via Phpstorm, in both cases I got the same answer as Diego
– Pedro Henrique
@Pedrohenrique, on your call you have the
SOAPAction
setate?– Ricardo Pontual
@Ricardopunctual my call is the same as Diego’s, that’s the example call from the manual
– Pedro Henrique
I think we’re missing include the
SOAP-Action
on your call. Before posting a solution, we need to confirm this.. see in the error message: "the Soapaction was ''" and according to the manual of LEIAUTE (horrible that) of the box: manual endpoint accepts several actions, you have to define, look at this: "Recording, modification and lowering of titles: https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo"– Ricardo Pontual
need to define in the action whether it is doing "INCLUI_BOLETO", "ALTERA_BOLETO", "BAIXA_BOLETO", "CONSULTA_BOLETO", which are all operations at the same endpoint
– Ricardo Pontual
Similar question: https://answall.com/questions/231364/registro-boletos-caixa-webservice-soap-wsdl-php
– Marcos Zolnowski
Got it! In the header, you have to add the Soap action. In my case, I was making inclusion... so it was like this: Soapaction: "Incluboleto"
– Diego Moreira