|
ComplexTypes
One-sentence summary of this page.
Phase-Support IntroductionThis is a complete example with complex types, used to develop a "simulator" of AFIP (Argentina IRS) Electronic Invoice new webservices. A live example is at: http://www.sistemasagiles.com.ar/simulador/wsfev1/call/soap Client
WSDL="https://www.sistemasagiles.com.ar/simulador/wsfev1/call/soap?WSDL=None"
client = SoapClient(wsdl = WSDL)
ret = client.FECAESolicitar(
Auth={'Token': token, 'Sign': sign, 'Cuit': CUIT},
FeCAEReq={
'FeCabReq': {'CantReg':1, 'PtoVta': 1, 'CbteTipo': 10},
'FeDetReq': [{'FECAEDetRequest': {
'Concepto': 0,
'DocTipo': 80,
'DocNro': 20111111119,
'CbteDesde': 1,
'CbteHasta': 2,
'CbteFch': '20101006',
'ImpTotal': '1000.10',
'ImpTotConc': "10.00",
'ImpNeto': "100.00",
'ImpOpEx': "0.00",
'ImpTrib': "1.00",
'ImpIVA': "21.00",
'FchServDesde': '20101101',
'FchServHasta': '20101130',
'FchVtoPago': '20101014',
'MonId': 'DOL',
'MonCotiz': '3.985',
'CbtesAsoc': [
{'CbteAsoc': {'Tipo': 19, 'PtoVta': 2, 'Nro': 1234}}
],
'Tributos': [
{'Tributo': {
'Id': 0,
'Desc': 'Impuesto Municipal Matanza',
'BaseImp': 150,
'Alic': 5.2,
'Importe': 5.8,
}}
],
'Iva': [
{'AlicIva': {
'Id': 5,
'BaseImp': 100,
'Importe': 21,
}}
],
}
}]
})
|
► Sign in to add a comment