xsender 0.1.0

Sends XML files through SOAP - SUNAT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:UsernameToken>
                <wsse:Username>{{username}}</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">{{password}}</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </soap:Header>
    <soap:Body>
        <ns2:getStatusCdr xmlns:ns2="http://service.sunat.gob.pe">
            <rucComprobante>{{body.ruc}}</rucComprobante>
            <tipoComprobante>{{body.tipo_comprobante}}</tipoComprobante>
            <serieComprobante>{{body.serie_comprobante}}</serieComprobante>
            <numeroComprobante>{{body.numero_comprobante}}</numeroComprobante>
        </ns2:getStatusCdr>
    </soap:Body>
</soap:Envelope>