Inclusion billet box

Asked

Viewed 933 times

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?

  • how are you doing the request? program or some tool?

  • @Ricardopunctual I tried via Curl and via Phpstorm, in both cases I got the same answer as Diego

  • 1

    @Pedrohenrique, on your call you have the SOAPAction setate?

  • @Ricardopunctual my call is the same as Diego’s, that’s the example call from the manual

  • 4

    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"

  • 1

    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

  • 1

    Similar question: https://answall.com/questions/231364/registro-boletos-caixa-webservice-soap-wsdl-php

  • 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"

Show 4 more comments

1 answer

8


I have resolved as follows: In the upload header, I added: SOAPAction: "IncluirBoleto" It worked 100%, returned to me 200 OK in response.

Good luck!

  • 2

    but Diego, that’s what I suggested in the comments? "I think SOAP-Action is missing in your call. Before posting a solution, we need to confirm this.."

  • Exactly! I was running and I didn’t read all the comments, I gave one in your comment. I answered my question to those who enter and already see a correct answer. Thanks for the help!

  • 1

    ok, but when someone solves the problem we usually post an answer and accept the answer of the person, but good for you to have solved

  • 1

    I had already solved before seeing your comment, but still thank you very much, and to be reply you have to answer as REPLY and not as comment. Big hug.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.