Skip to content

Commit

Permalink
add generated python soap files
Browse files Browse the repository at this point in the history
xsdata generate -fs all --package nfelib.nfe.soap nfelib/nfe/wsdl/*
  • Loading branch information
rvalyi committed Jun 5, 2023
1 parent a5cdc76 commit ae1d070
Show file tree
Hide file tree
Showing 8 changed files with 1,133 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nfelib/nfe/soap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from nfelib.nfe.soap.recepcaoevento4 import (
NfeRecepcaoEvento4SoapNfeRecepcaoEvento,
NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput,
NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput,
NfeDadosMsg,
NfeResultMsg,
)

__all__ = [
"NfeRecepcaoEvento4SoapNfeRecepcaoEvento",
"NfeRecepcaoEvento4SoapNfeRecepcaoEventoInput",
"NfeRecepcaoEvento4SoapNfeRecepcaoEventoOutput",
"NfeDadosMsg",
"NfeResultMsg",
]
135 changes: 135 additions & 0 deletions nfelib/nfe/soap/cadconsultacadastro4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
from dataclasses import dataclass, field
from typing import List, Optional

__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"


@dataclass
class NfeDadosMsg:
class Meta:
name = "nfeDadosMsg"
namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"

content: List[object] = field(
default_factory=list,
metadata={
"type": "Wildcard",
"namespace": "##any",
"mixed": True,
}
)


@dataclass
class NfeResultMsg:
class Meta:
name = "nfeResultMsg"
nillable = True
namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"

content: List[object] = field(
default_factory=list,
metadata={
"type": "Wildcard",
"namespace": "##any",
"mixed": True,
}
)


@dataclass
class CadConsultaCadastro4SoapConsultaCadastroInput:
class Meta:
name = "Envelope"
namespace = "http://schemas.xmlsoap.org/soap/envelope/"

body: Optional["CadConsultaCadastro4SoapConsultaCadastroInput.Body"] = field(
default=None,
metadata={
"name": "Body",
"type": "Element",
}
)

@dataclass
class Body:
nfeDadosMsg: Optional[NfeDadosMsg] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
}
)


@dataclass
class CadConsultaCadastro4SoapConsultaCadastroOutput:
class Meta:
name = "Envelope"
namespace = "http://schemas.xmlsoap.org/soap/envelope/"

body: Optional["CadConsultaCadastro4SoapConsultaCadastroOutput.Body"] = field(
default=None,
metadata={
"name": "Body",
"type": "Element",
}
)

@dataclass
class Body:
nfeResultMsg: Optional[NfeResultMsg] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
"nillable": True,
}
)
fault: Optional["CadConsultaCadastro4SoapConsultaCadastroOutput.Body.Fault"] = field(
default=None,
metadata={
"name": "Fault",
"type": "Element",
}
)

@dataclass
class Fault:
faultcode: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
faultstring: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
faultactor: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
detail: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)


class CadConsultaCadastro4SoapConsultaCadastro:
style = "document"
location = "https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"
transport = "http://schemas.xmlsoap.org/soap/http"
soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"
input = CadConsultaCadastro4SoapConsultaCadastroInput
output = CadConsultaCadastro4SoapConsultaCadastroOutput
Loading

0 comments on commit ae1d070

Please sign in to comment.