br_nfe 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/.travis.yml +8 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +27 -3
- data/LICENSE +1 -1
- data/README.markdown +10 -12
- data/Rakefile +13 -0
- data/br_nfe.gemspec +18 -21
- data/lib/br_nfe/active_model_base.rb +7 -1
- data/lib/br_nfe/base.rb +175 -37
- data/lib/br_nfe/endereco.rb +7 -1
- data/lib/br_nfe/helper/have_rps.rb +1 -1
- data/lib/br_nfe/helper/values_ts/service_v1.rb +313 -0
- data/lib/br_nfe/response/service/build_response.rb +286 -0
- data/lib/br_nfe/response/service/default.rb +185 -0
- data/lib/br_nfe/{servico/response → response/service}/nota_fiscal.rb +11 -10
- data/lib/br_nfe/response/service/paths/base.rb +93 -0
- data/lib/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta.rb +22 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta.rb +25 -0
- data/lib/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta.rb +31 -0
- data/lib/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta.rb +36 -0
- data/lib/br_nfe/response/service/paths/v1/tc_nfse.rb +127 -0
- data/lib/br_nfe/service/base.rb +59 -0
- data/lib/br_nfe/service/betha/base.rb +8 -0
- data/lib/br_nfe/service/betha/v1/cancelamento_nfs.rb +39 -0
- data/lib/br_nfe/service/betha/v1/consulta_lote_rps.rb +34 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfs_por_rps.rb +32 -0
- data/lib/br_nfe/service/betha/v1/consulta_nfse.rb +32 -0
- data/lib/br_nfe/service/betha/v1/consulta_situacao_lote_rps.rb +30 -0
- data/lib/br_nfe/service/betha/v1/gateway.rb +21 -0
- data/lib/br_nfe/service/betha/v1/recepcao_lote_rps.rb +37 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta.rb +19 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta.rb +17 -0
- data/lib/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta.rb +17 -0
- data/lib/br_nfe/service/concerns/rules/cancelamento_nfs.rb +20 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfs_por_rps.rb +18 -0
- data/lib/br_nfe/service/concerns/rules/consulta_nfse.rb +29 -0
- data/lib/br_nfe/service/concerns/rules/recepcao_lote_rps.rb +50 -0
- data/lib/br_nfe/{servico → service}/intermediario.rb +1 -1
- data/lib/br_nfe/service/item.rb +70 -0
- data/lib/br_nfe/service/rps.rb +231 -0
- data/lib/br_nfe/service/sc/florianopolis/base.rb +25 -0
- data/lib/br_nfe/service/sc/florianopolis/cancellation.rb +30 -0
- data/lib/br_nfe/service/sc/florianopolis/emission_rps.rb +19 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_address.xml.slim +21 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_contact.xml.slim +3 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/_service_item.xml.slim +9 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/cancellation.xml.slim +6 -0
- data/lib/br_nfe/service/sc/florianopolis/xml/inf_requisicao.xml.slim +55 -0
- data/lib/br_nfe/service/sc/gaspar/cancela_nfse.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_nfs_por_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_nfse.rb +17 -0
- data/lib/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps.rb +13 -0
- data/lib/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado.rb +13 -0
- data/lib/br_nfe/service/thema/v1/base.rb +55 -0
- data/lib/br_nfe/service/thema/v1/cancela_nfse.rb +48 -0
- data/lib/br_nfe/service/thema/v1/consulta_lote_rps.rb +49 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfs_por_rps.rb +48 -0
- data/lib/br_nfe/service/thema/v1/consulta_nfse.rb +47 -0
- data/lib/br_nfe/service/thema/v1/consulta_situacao_lote_rps.rb +46 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps.rb +51 -0
- data/lib/br_nfe/service/thema/v1/recepcao_lote_rps_limitado.rb +30 -0
- data/lib/br_nfe/service/xml/v1/_tc_contato.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_cpf_cnpj.xml.slim +5 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_construcao_civil.xml.slim +2 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_prestador.xml.slim +15 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_servico.xml.slim +14 -0
- data/lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim +15 -0
- data/lib/br_nfe/service/xml/v1/_tc_endereco.xml.slim +13 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_intermediario_servico.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_nfse.xml.slim +7 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_orgao_gerador.xml.slim +8 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_prestador.xml.slim +3 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_rps.xml.slim +16 -0
- data/lib/br_nfe/service/xml/v1/_tc_identificacao_tomador.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_inf_rps.xml.slim +47 -0
- data/lib/br_nfe/service/xml/v1/_tc_lote_rps.xml.slim +9 -0
- data/lib/br_nfe/service/xml/v1/_tc_pedido_cancelamento.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/_tc_rps.xml.slim +8 -0
- data/lib/br_nfe/service/xml/v1/_tc_valores.xml.slim +48 -0
- data/lib/br_nfe/service/xml/v1/servico_cancelar_nfse_envio.xml.slim +9 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_lote_rps_envio.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_envio.xml.slim +19 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_nfse_rps_envio.xml.slim +5 -0
- data/lib/br_nfe/service/xml/v1/servico_consultar_situacao_lote_rps_envio.xml.slim +4 -0
- data/lib/br_nfe/service/xml/v1/servico_enviar_lote_rps_envio.xml.slim +9 -0
- data/lib/br_nfe/version.rb +2 -2
- data/lib/br_nfe/xml/_signed_info_sh1.xml.slim +9 -0
- data/lib/br_nfe/xml/signature_sh1.xml.slim +12 -0
- data/lib/br_nfe/xml/soap_env.xml.slim +3 -0
- data/lib/br_nfe.rb +72 -20
- data/test/br_nfe/base_test.rb +257 -108
- data/test/br_nfe/helper/have_intermediario_test.rb +2 -2
- data/test/br_nfe/helper/have_rps_test.rb +4 -4
- data/test/br_nfe/response/service/build_response_test.rb +377 -0
- data/test/br_nfe/response/service/default_test.rb +218 -0
- data/test/br_nfe/{servico/response → response/service}/nota_fiscal_test.rb +2 -2
- data/test/br_nfe/response/service/paths/base_test.rb +199 -0
- data/test/br_nfe/response/service/paths/v1/servico_cancelar_nfse_resposta_test.rb +25 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_lote_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_nfse_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_consultar_situacao_lote_rps_resposta_test.rb +30 -0
- data/test/br_nfe/response/service/paths/v1/servico_enviar_lote_rps_resposta_test.rb +34 -0
- data/test/br_nfe/response/service/paths/v1/tc_nfse_test.rb +122 -0
- data/test/br_nfe/service/base_test.rb +138 -0
- data/test/br_nfe/service/betha/base_test.rb +9 -0
- data/test/br_nfe/service/betha/v1/cancelamento_nfs_test.rb +60 -0
- data/test/br_nfe/service/betha/v1/consulta_lote_rps_test.rb +55 -0
- data/test/br_nfe/service/betha/v1/consulta_nfs_por_rps_test.rb +55 -0
- data/test/br_nfe/service/betha/v1/consulta_nfse_test.rb +53 -0
- data/test/br_nfe/service/betha/v1/consulta_situacao_lote_rps_test.rb +49 -0
- data/test/br_nfe/service/betha/v1/gateway_test.rb +35 -0
- data/test/br_nfe/service/betha/v1/recepcao_lote_rps_test.rb +84 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_lote_rps_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/response_paths/servico_consultar_nfse_rps_resposta_test.rb +16 -0
- data/test/br_nfe/service/betha/v1/xsd/TiposNFe_v01.xsd +583 -0
- data/test/br_nfe/service/betha/v1/xsd/nfse_v01.xsd +652 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_cancelar_nfse_envio_v01.xsd +17 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_lote_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_envio_v01.xsd +28 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_nfse_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_consultar_situacao_lote_rps_envio_v01.xsd +16 -0
- data/test/br_nfe/service/betha/v1/xsd/servico_enviar_lote_rps_envio_v01.xsd +17 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema.xsd +308 -0
- data/test/br_nfe/service/betha/v1/xsd/xmldsig-core-schema_v01.xsd +95 -0
- data/test/br_nfe/service/concerns/rules/cancelamento_nfs_test.rb +15 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfs_por_rps_test.rb +36 -0
- data/test/br_nfe/service/concerns/rules/consulta_nfse_test.rb +42 -0
- data/test/br_nfe/{servico/base_test.rb → service/concerns/rules/recepcao_lote_rps_test.rb} +12 -4
- data/test/br_nfe/{servico → service}/intermediario_test.rb +1 -1
- data/test/br_nfe/service/item_test.rb +34 -0
- data/test/br_nfe/{servico → service}/rps_test.rb +191 -43
- data/test/br_nfe/service/sc/florianopolis/XSD/TiposNFSe_v2.0.xsd +863 -0
- data/test/br_nfe/service/sc/florianopolis/XSD/xmldsig-core-schema.xsd +309 -0
- data/test/br_nfe/service/sc/florianopolis/base_test.rb +20 -0
- data/test/br_nfe/service/sc/florianopolis/cancellation_test.rb +36 -0
- data/test/br_nfe/service/sc/florianopolis/emission_rps_test.rb +145 -0
- data/test/br_nfe/service/sc/gaspar/cancela_nfse_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_nfs_por_rps_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_nfse_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/consulta_situacao_lote_rps_test.rb +21 -0
- data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_limitado_test.rb +22 -0
- data/test/br_nfe/service/sc/gaspar/recepcao_lote_rps_test.rb +22 -0
- data/test/br_nfe/service/thema/v1/base_test.rb +65 -0
- data/test/br_nfe/service/thema/v1/cancela_nfse_test.rb +56 -0
- data/test/br_nfe/service/thema/v1/consulta_lote_rps_test.rb +47 -0
- data/test/br_nfe/service/thema/v1/consulta_nfs_por_rps_test.rb +50 -0
- data/test/br_nfe/service/thema/v1/consulta_nfse_test.rb +50 -0
- data/test/br_nfe/service/thema/v1/consulta_situacao_lote_rps_test.rb +47 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test.rb +62 -0
- data/test/br_nfe/service/thema/v1/recepcao_lote_rps_test_limitado.rb +50 -0
- data/test/br_nfe/service/thema/v1/xsd/nfse.xsd +656 -0
- data/test/br_nfe/service/thema/v1/xsd/xmldsig-core-schema20020212.xsd +318 -0
- data/test/br_nfe/service/xsd/v1/nfse.xsd +779 -0
- data/test/br_nfe/service/xsd/v1/xmldsig-core-schema20020212.xsd +316 -0
- data/test/cert.pfx +0 -0
- data/test/factories/base.rb +2 -0
- data/test/factories/destinatario.rb +3 -3
- data/test/factories/response/service/build_response.rb +5 -0
- data/test/factories/response/service/default.rb +10 -0
- data/test/factories/{servico/response → response/service}/nota_fiscal.rb +9 -9
- data/test/factories/service/base.rb +6 -0
- data/test/factories/service/betha/base.rb +4 -0
- data/test/factories/service/betha/v1/cancelamento_nfs.rb +9 -0
- data/test/factories/{servico → service}/betha/v1/consulta_lote_rps.rb +2 -2
- data/test/factories/{servico → service}/betha/v1/consulta_nfs_por_rps.rb +1 -1
- data/test/factories/service/betha/v1/consulta_nfse.rb +8 -0
- data/test/factories/{servico → service}/betha/v1/consulta_situacao_lote_rps.rb +2 -2
- data/test/factories/{servico → service}/betha/v1/gateway.rb +1 -1
- data/test/factories/service/betha/v1/recepcao_lote_rps.rb +8 -0
- data/test/factories/{servico → service}/intermediario.rb +2 -2
- data/test/factories/service/item.rb +12 -0
- data/test/factories/service/rps.rb +50 -0
- data/test/factories/service/sc/florianopolis/base.rb +5 -0
- data/test/factories/service/sc/florianopolis/cancellation.rb +7 -0
- data/test/factories/service/sc/florianopolis/emission_rps.rb +7 -0
- data/test/factories/service/sc/gaspar/cancela_nfse.rb +9 -0
- data/test/factories/service/sc/gaspar/consulta_lote_rps.rb +7 -0
- data/test/factories/service/sc/gaspar/consulta_nfs_por_rps.rb +6 -0
- data/test/factories/service/sc/gaspar/consulta_nfse.rb +8 -0
- data/test/factories/service/sc/gaspar/consulta_situacao_lote_rps.rb +6 -0
- data/test/factories/service/sc/gaspar/recepcao_lote_rps.rb +9 -0
- data/test/factories/service/sc/gaspar/recepcao_lote_rps_limitado.rb +9 -0
- data/test/factories/service/thema/v1/base.rb +7 -0
- data/test/factories/service/thema/v1/cancela_nfse.rb +9 -0
- data/test/factories/service/thema/v1/consulta_lote_rps.rb +7 -0
- data/test/factories/service/thema/v1/consulta_nfs_por_rps.rb +6 -0
- data/test/factories/service/thema/v1/consulta_nfse.rb +8 -0
- data/test/factories/service/thema/v1/consulta_situacao_lote_rps.rb +6 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps.rb +9 -0
- data/test/factories/service/thema/v1/recepcao_lote_rps_limitado.rb +8 -0
- data/test/test_helper.rb +42 -0
- metadata +338 -121
- data/lib/br_nfe/servico/base.rb +0 -35
- data/lib/br_nfe/servico/betha/base.rb +0 -85
- data/lib/br_nfe/servico/betha/build_response.rb +0 -141
- data/lib/br_nfe/servico/betha/v1/build_response.rb +0 -121
- data/lib/br_nfe/servico/betha/v1/cancelamento_nfs.rb +0 -52
- data/lib/br_nfe/servico/betha/v1/consulta_lote_rps.rb +0 -33
- data/lib/br_nfe/servico/betha/v1/consulta_nfs_por_rps.rb +0 -37
- data/lib/br_nfe/servico/betha/v1/consulta_nfse.rb +0 -51
- data/lib/br_nfe/servico/betha/v1/consulta_situacao_lote_rps.rb +0 -18
- data/lib/br_nfe/servico/betha/v1/gateway.rb +0 -125
- data/lib/br_nfe/servico/betha/v1/recepcao_lote_rps.rb +0 -97
- data/lib/br_nfe/servico/betha/v2/build_response.rb +0 -159
- data/lib/br_nfe/servico/betha/v2/cancelamento_nfs.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/consulta_lote_rps.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/consulta_nfse_por_rps.rb +0 -27
- data/lib/br_nfe/servico/betha/v2/envio_lote_rps_sincrono.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/gateway.rb +0 -230
- data/lib/br_nfe/servico/betha/v2/gera_nfse.rb +0 -30
- data/lib/br_nfe/servico/betha/v2/recepcao_lote_rps.rb +0 -52
- data/lib/br_nfe/servico/betha/v2/substituicao_nfse.rb +0 -43
- data/lib/br_nfe/servico/response/default.rb +0 -34
- data/lib/br_nfe/servico/rps.rb +0 -108
- data/test/br_nfe/servico/betha/base_test.rb +0 -135
- data/test/br_nfe/servico/betha/v1/build_response_test.rb +0 -557
- data/test/br_nfe/servico/betha/v1/cancelamento_nfs_test.rb +0 -72
- data/test/br_nfe/servico/betha/v1/consulta_lote_rps_test.rb +0 -46
- data/test/br_nfe/servico/betha/v1/consulta_nfs_por_rps_test.rb +0 -68
- data/test/br_nfe/servico/betha/v1/consulta_nfse_test.rb +0 -74
- data/test/br_nfe/servico/betha/v1/consulta_situacao_lote_rps_test.rb +0 -27
- data/test/br_nfe/servico/betha/v1/gateway_test.rb +0 -151
- data/test/br_nfe/servico/betha/v1/recepcao_lote_rps_test.rb +0 -249
- data/test/br_nfe/servico/betha/v2/cancelamento_nfs_test.rb +0 -44
- data/test/br_nfe/servico/betha/v2/consulta_lote_rps_test.rb +0 -38
- data/test/br_nfe/servico/betha/v2/consulta_nfse_por_rps_test.rb +0 -36
- data/test/br_nfe/servico/betha/v2/envio_lote_rps_sincrono_test.rb +0 -51
- data/test/br_nfe/servico/betha/v2/gateway_test.rb +0 -372
- data/test/br_nfe/servico/betha/v2/gera_nfse_test.rb +0 -62
- data/test/br_nfe/servico/betha/v2/recepcao_lote_rps_test.rb +0 -108
- data/test/br_nfe/servico/betha/v2/substituicao_nfse_test.rb +0 -84
- data/test/br_nfe/servico/response/default_test.rb +0 -54
- data/test/factories/servico/base.rb +0 -5
- data/test/factories/servico/betha/base.rb +0 -5
- data/test/factories/servico/betha/v1/build_response.rb +0 -6
- data/test/factories/servico/betha/v1/cancelamento_nfs.rb +0 -7
- data/test/factories/servico/betha/v1/consulta_nfse.rb +0 -8
- data/test/factories/servico/betha/v1/recepcao_lote_rps.rb +0 -6
- data/test/factories/servico/betha/v2/cancelamento_nfs.rb +0 -7
- data/test/factories/servico/betha/v2/consulta_lote_rps.rb +0 -6
- data/test/factories/servico/betha/v2/consulta_nfse_por_rps.rb +0 -6
- data/test/factories/servico/betha/v2/envio_lote_rps_sincrono.rb +0 -5
- data/test/factories/servico/betha/v2/gateway.rb +0 -5
- data/test/factories/servico/betha/v2/gera_nfse.rb +0 -6
- data/test/factories/servico/betha/v2/recepcao_lote_rps.rb +0 -5
- data/test/factories/servico/betha/v2/substituicao_nfse.rb +0 -8
- data/test/factories/servico/response/default.rb +0 -10
- data/test/factories/servico/rps.rb +0 -44
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
|
9
|
+
<xs:element name="CancelarNfseEnvio">
|
10
|
+
<xs:complexType>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="Pedido" type="tipos:tcPedidoCancelamento"/>
|
13
|
+
</xs:sequence>
|
14
|
+
</xs:complexType>
|
15
|
+
</xs:element>
|
16
|
+
|
17
|
+
</xs:schema>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
<xs:element name="ConsultarLoteRpsEnvio">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1" />
|
12
|
+
<xs:element name="Protocolo" type="tipos:tsNumeroProtocolo" minOccurs="1" maxOccurs="1" />
|
13
|
+
</xs:sequence>
|
14
|
+
</xs:complexType>
|
15
|
+
</xs:element>
|
16
|
+
</xs:schema>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
|
9
|
+
<xs:element name="ConsultarNfseEnvio">
|
10
|
+
<xs:complexType>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1" />
|
13
|
+
<xs:element name="NumeroNfse" type="tipos:TsNumeroNfse" minOccurs="0" maxOccurs="1" />
|
14
|
+
<xs:element name="PeriodoEmissao" minOccurs="0" maxOccurs="1">
|
15
|
+
<xs:complexType>
|
16
|
+
<xs:sequence minOccurs="0" maxOccurs="1">
|
17
|
+
<xs:element name="DataInicial" type="xs:date" minOccurs="1" maxOccurs="1" />
|
18
|
+
<xs:element name="DataFinal" type="xs:date" minOccurs="1" maxOccurs="1" />
|
19
|
+
</xs:sequence>
|
20
|
+
</xs:complexType>
|
21
|
+
</xs:element>
|
22
|
+
<xs:element name="Tomador" type="tipos:tcIdentificacaoTomador" minOccurs="0" maxOccurs="1" />
|
23
|
+
<xs:element name="IntermediarioServico" type="tipos:TcIdentificacaoIntermediarioServico" minOccurs="0" maxOccurs="1" />
|
24
|
+
</xs:sequence>
|
25
|
+
</xs:complexType>
|
26
|
+
</xs:element>
|
27
|
+
|
28
|
+
</xs:schema>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
<xs:element name="ConsultarNfseRpsEnvio">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="IdentificacaoRps" type="tipos:tcIdentificacaoRps" minOccurs="1" maxOccurs="1" />
|
12
|
+
<xs:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1" />
|
13
|
+
</xs:sequence>
|
14
|
+
</xs:complexType>
|
15
|
+
</xs:element>
|
16
|
+
</xs:schema>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
<xs:element name="ConsultarSituacaoLoteRpsEnvio">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="Prestador" type="tipos:tcIdentificacaoPrestador" minOccurs="1" maxOccurs="1" />
|
12
|
+
<xs:element name="Protocolo" type="tipos:tsNumeroProtocolo" minOccurs="1" maxOccurs="1" />
|
13
|
+
</xs:sequence>
|
14
|
+
</xs:complexType>
|
15
|
+
</xs:element>
|
16
|
+
</xs:schema>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.betha.com.br/e-nota-contribuinte-ws"
|
3
|
+
xmlns:tipos="http://www.betha.com.br/e-nota-contribuinte-ws/tipos"
|
4
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
5
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
6
|
+
<xs:import namespace="http://www.betha.com.br/e-nota-contribuinte-ws/tipos" schemaLocation="TiposNFe_v01.xsd" />
|
7
|
+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v01.xsd" />
|
8
|
+
|
9
|
+
<xs:element name="EnviarLoteRpsEnvio">
|
10
|
+
<xs:complexType>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="LoteRps" type="tipos:tcLoteRps" minOccurs="1" maxOccurs="1" />
|
13
|
+
<xs:element ref="ds:Signature" maxOccurs="1"/>
|
14
|
+
</xs:sequence>
|
15
|
+
</xs:complexType>
|
16
|
+
</xs:element>
|
17
|
+
</xs:schema>
|
@@ -0,0 +1,308 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" [
|
3
|
+
<!ATTLIST schema
|
4
|
+
xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
|
5
|
+
<!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
|
6
|
+
<!ENTITY % p ''>
|
7
|
+
<!ENTITY % s ''>
|
8
|
+
]>
|
9
|
+
<!-- Schema for XML Signatures
|
10
|
+
http://www.w3.org/2000/09/xmldsig#
|
11
|
+
$Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
|
12
|
+
|
13
|
+
Copyright 2001 The Internet Society and W3C (Massachusetts Institute
|
14
|
+
of Technology, Institut National de Recherche en Informatique et en
|
15
|
+
Automatique, Keio University). All Rights Reserved.
|
16
|
+
http://www.w3.org/Consortium/Legal/
|
17
|
+
|
18
|
+
This document is governed by the W3C Software License [1] as described
|
19
|
+
in the FAQ [2].
|
20
|
+
|
21
|
+
[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
|
22
|
+
[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
|
23
|
+
-->
|
24
|
+
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.w3.org/2000/09/xmldsig#" version="0.1" elementFormDefault="qualified">
|
25
|
+
|
26
|
+
<!-- Basic Types Defined for Signatures -->
|
27
|
+
|
28
|
+
<simpleType name="CryptoBinary">
|
29
|
+
<restriction base="base64Binary">
|
30
|
+
</restriction>
|
31
|
+
</simpleType>
|
32
|
+
|
33
|
+
<!-- Start Signature -->
|
34
|
+
|
35
|
+
<element name="Signature" type="ds:SignatureType"/>
|
36
|
+
<complexType name="SignatureType">
|
37
|
+
<sequence>
|
38
|
+
<element ref="ds:SignedInfo"/>
|
39
|
+
<element ref="ds:SignatureValue"/>
|
40
|
+
<element ref="ds:KeyInfo" minOccurs="0"/>
|
41
|
+
<element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
|
42
|
+
</sequence>
|
43
|
+
<attribute name="Id" type="ID" use="optional"/>
|
44
|
+
</complexType>
|
45
|
+
|
46
|
+
<element name="SignatureValue" type="ds:SignatureValueType"/>
|
47
|
+
<complexType name="SignatureValueType">
|
48
|
+
<simpleContent>
|
49
|
+
<extension base="base64Binary">
|
50
|
+
<attribute name="Id" type="ID" use="optional"/>
|
51
|
+
</extension>
|
52
|
+
</simpleContent>
|
53
|
+
</complexType>
|
54
|
+
|
55
|
+
<!-- Start SignedInfo -->
|
56
|
+
|
57
|
+
<element name="SignedInfo" type="ds:SignedInfoType"/>
|
58
|
+
<complexType name="SignedInfoType">
|
59
|
+
<sequence>
|
60
|
+
<element ref="ds:CanonicalizationMethod"/>
|
61
|
+
<element ref="ds:SignatureMethod"/>
|
62
|
+
<element ref="ds:Reference" maxOccurs="unbounded"/>
|
63
|
+
</sequence>
|
64
|
+
<attribute name="Id" type="ID" use="optional"/>
|
65
|
+
</complexType>
|
66
|
+
|
67
|
+
<element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
|
68
|
+
<complexType name="CanonicalizationMethodType" mixed="true">
|
69
|
+
<sequence>
|
70
|
+
<any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
|
71
|
+
<!-- (0,unbounded) elements from (1,1) namespace -->
|
72
|
+
</sequence>
|
73
|
+
<attribute name="Algorithm" type="anyURI" use="required"/>
|
74
|
+
</complexType>
|
75
|
+
|
76
|
+
<element name="SignatureMethod" type="ds:SignatureMethodType"/>
|
77
|
+
<complexType name="SignatureMethodType" mixed="true">
|
78
|
+
<sequence>
|
79
|
+
<element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
|
80
|
+
<any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
|
81
|
+
<!-- (0,unbounded) elements from (1,1) external namespace -->
|
82
|
+
</sequence>
|
83
|
+
<attribute name="Algorithm" type="anyURI" use="required"/>
|
84
|
+
</complexType>
|
85
|
+
|
86
|
+
<!-- Start Reference -->
|
87
|
+
|
88
|
+
<element name="Reference" type="ds:ReferenceType"/>
|
89
|
+
<complexType name="ReferenceType">
|
90
|
+
<sequence>
|
91
|
+
<element ref="ds:Transforms" minOccurs="0"/>
|
92
|
+
<element ref="ds:DigestMethod"/>
|
93
|
+
<element ref="ds:DigestValue"/>
|
94
|
+
</sequence>
|
95
|
+
<attribute name="Id" type="ID" use="optional"/>
|
96
|
+
<attribute name="URI" type="anyURI" use="optional"/>
|
97
|
+
<attribute name="Type" type="anyURI" use="optional"/>
|
98
|
+
</complexType>
|
99
|
+
|
100
|
+
<element name="Transforms" type="ds:TransformsType"/>
|
101
|
+
<complexType name="TransformsType">
|
102
|
+
<sequence>
|
103
|
+
<element ref="ds:Transform" maxOccurs="unbounded"/>
|
104
|
+
</sequence>
|
105
|
+
</complexType>
|
106
|
+
|
107
|
+
<element name="Transform" type="ds:TransformType"/>
|
108
|
+
<complexType name="TransformType" mixed="true">
|
109
|
+
<choice minOccurs="0" maxOccurs="unbounded">
|
110
|
+
<any namespace="##other" processContents="lax"/>
|
111
|
+
<!-- (1,1) elements from (0,unbounded) namespaces -->
|
112
|
+
<element name="XPath" type="string"/>
|
113
|
+
</choice>
|
114
|
+
<attribute name="Algorithm" type="anyURI" use="required"/>
|
115
|
+
</complexType>
|
116
|
+
|
117
|
+
<!-- End Reference -->
|
118
|
+
|
119
|
+
<element name="DigestMethod" type="ds:DigestMethodType"/>
|
120
|
+
<complexType name="DigestMethodType" mixed="true">
|
121
|
+
<sequence>
|
122
|
+
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
123
|
+
</sequence>
|
124
|
+
<attribute name="Algorithm" type="anyURI" use="required"/>
|
125
|
+
</complexType>
|
126
|
+
|
127
|
+
<element name="DigestValue" type="ds:DigestValueType"/>
|
128
|
+
<simpleType name="DigestValueType">
|
129
|
+
<restriction base="base64Binary"/>
|
130
|
+
</simpleType>
|
131
|
+
|
132
|
+
<!-- End SignedInfo -->
|
133
|
+
|
134
|
+
<!-- Start KeyInfo -->
|
135
|
+
|
136
|
+
<element name="KeyInfo" type="ds:KeyInfoType"/>
|
137
|
+
<complexType name="KeyInfoType" mixed="true">
|
138
|
+
<choice maxOccurs="unbounded">
|
139
|
+
<element ref="ds:KeyName"/>
|
140
|
+
<element ref="ds:KeyValue"/>
|
141
|
+
<element ref="ds:RetrievalMethod"/>
|
142
|
+
<element ref="ds:X509Data"/>
|
143
|
+
<element ref="ds:PGPData"/>
|
144
|
+
<element ref="ds:SPKIData"/>
|
145
|
+
<element ref="ds:MgmtData"/>
|
146
|
+
<any processContents="lax" namespace="##other"/>
|
147
|
+
<!-- (1,1) elements from (0,unbounded) namespaces -->
|
148
|
+
</choice>
|
149
|
+
<attribute name="Id" type="ID" use="optional"/>
|
150
|
+
</complexType>
|
151
|
+
|
152
|
+
<element name="KeyName" type="string"/>
|
153
|
+
<element name="MgmtData" type="string"/>
|
154
|
+
|
155
|
+
<element name="KeyValue" type="ds:KeyValueType"/>
|
156
|
+
<complexType name="KeyValueType" mixed="true">
|
157
|
+
<choice>
|
158
|
+
<element ref="ds:DSAKeyValue"/>
|
159
|
+
<element ref="ds:RSAKeyValue"/>
|
160
|
+
<any namespace="##other" processContents="lax"/>
|
161
|
+
</choice>
|
162
|
+
</complexType>
|
163
|
+
|
164
|
+
<element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
|
165
|
+
<complexType name="RetrievalMethodType">
|
166
|
+
<sequence>
|
167
|
+
<element ref="ds:Transforms" minOccurs="0"/>
|
168
|
+
</sequence>
|
169
|
+
<attribute name="URI" type="anyURI"/>
|
170
|
+
<attribute name="Type" type="anyURI" use="optional"/>
|
171
|
+
</complexType>
|
172
|
+
|
173
|
+
<!-- Start X509Data -->
|
174
|
+
|
175
|
+
<element name="X509Data" type="ds:X509DataType"/>
|
176
|
+
<complexType name="X509DataType">
|
177
|
+
<sequence maxOccurs="unbounded">
|
178
|
+
<choice>
|
179
|
+
<element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
|
180
|
+
<element name="X509SKI" type="base64Binary"/>
|
181
|
+
<element name="X509SubjectName" type="string"/>
|
182
|
+
<element name="X509Certificate" type="base64Binary"/>
|
183
|
+
<element name="X509CRL" type="base64Binary"/>
|
184
|
+
<any namespace="##other" processContents="lax"/>
|
185
|
+
</choice>
|
186
|
+
</sequence>
|
187
|
+
</complexType>
|
188
|
+
|
189
|
+
<complexType name="X509IssuerSerialType">
|
190
|
+
<sequence>
|
191
|
+
<element name="X509IssuerName" type="string"/>
|
192
|
+
<element name="X509SerialNumber" type="integer"/>
|
193
|
+
</sequence>
|
194
|
+
</complexType>
|
195
|
+
|
196
|
+
<!-- End X509Data -->
|
197
|
+
|
198
|
+
<!-- Begin PGPData -->
|
199
|
+
|
200
|
+
<element name="PGPData" type="ds:PGPDataType"/>
|
201
|
+
<complexType name="PGPDataType">
|
202
|
+
<choice>
|
203
|
+
<sequence>
|
204
|
+
<element name="PGPKeyID" type="base64Binary"/>
|
205
|
+
<element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
|
206
|
+
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
207
|
+
</sequence>
|
208
|
+
<sequence>
|
209
|
+
<element name="PGPKeyPacket" type="base64Binary"/>
|
210
|
+
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
|
211
|
+
</sequence>
|
212
|
+
</choice>
|
213
|
+
</complexType>
|
214
|
+
|
215
|
+
<!-- End PGPData -->
|
216
|
+
|
217
|
+
<!-- Begin SPKIData -->
|
218
|
+
|
219
|
+
<element name="SPKIData" type="ds:SPKIDataType"/>
|
220
|
+
<complexType name="SPKIDataType">
|
221
|
+
<sequence maxOccurs="unbounded">
|
222
|
+
<element name="SPKISexp" type="base64Binary"/>
|
223
|
+
<any namespace="##other" processContents="lax" minOccurs="0"/>
|
224
|
+
</sequence>
|
225
|
+
</complexType>
|
226
|
+
|
227
|
+
<!-- End SPKIData -->
|
228
|
+
|
229
|
+
<!-- End KeyInfo -->
|
230
|
+
|
231
|
+
<!-- Start Object (Manifest, SignatureProperty) -->
|
232
|
+
|
233
|
+
<element name="Object" type="ds:ObjectType"/>
|
234
|
+
<complexType name="ObjectType" mixed="true">
|
235
|
+
<sequence minOccurs="0" maxOccurs="unbounded">
|
236
|
+
<any namespace="##any" processContents="lax"/>
|
237
|
+
</sequence>
|
238
|
+
<attribute name="Id" type="ID" use="optional"/>
|
239
|
+
<attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
|
240
|
+
<attribute name="Encoding" type="anyURI" use="optional"/>
|
241
|
+
</complexType>
|
242
|
+
|
243
|
+
<element name="Manifest" type="ds:ManifestType"/>
|
244
|
+
<complexType name="ManifestType">
|
245
|
+
<sequence>
|
246
|
+
<element ref="ds:Reference" maxOccurs="unbounded"/>
|
247
|
+
</sequence>
|
248
|
+
<attribute name="Id" type="ID" use="optional"/>
|
249
|
+
</complexType>
|
250
|
+
|
251
|
+
<element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
|
252
|
+
<complexType name="SignaturePropertiesType">
|
253
|
+
<sequence>
|
254
|
+
<element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
|
255
|
+
</sequence>
|
256
|
+
<attribute name="Id" type="ID" use="optional"/>
|
257
|
+
</complexType>
|
258
|
+
|
259
|
+
<element name="SignatureProperty" type="ds:SignaturePropertyType"/>
|
260
|
+
<complexType name="SignaturePropertyType" mixed="true">
|
261
|
+
<choice maxOccurs="unbounded">
|
262
|
+
<any namespace="##other" processContents="lax"/>
|
263
|
+
<!-- (1,1) elements from (1,unbounded) namespaces -->
|
264
|
+
</choice>
|
265
|
+
<attribute name="Target" type="anyURI" use="required"/>
|
266
|
+
<attribute name="Id" type="ID" use="optional"/>
|
267
|
+
</complexType>
|
268
|
+
|
269
|
+
<!-- End Object (Manifest, SignatureProperty) -->
|
270
|
+
|
271
|
+
<!-- Start Algorithm Parameters -->
|
272
|
+
|
273
|
+
<simpleType name="HMACOutputLengthType">
|
274
|
+
<restriction base="integer"/>
|
275
|
+
</simpleType>
|
276
|
+
|
277
|
+
<!-- Start KeyValue Element-types -->
|
278
|
+
|
279
|
+
<element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
|
280
|
+
<complexType name="DSAKeyValueType">
|
281
|
+
<sequence>
|
282
|
+
<sequence minOccurs="0">
|
283
|
+
<element name="P" type="ds:CryptoBinary"/>
|
284
|
+
<element name="Q" type="ds:CryptoBinary"/>
|
285
|
+
</sequence>
|
286
|
+
<element name="G" type="ds:CryptoBinary" minOccurs="0"/>
|
287
|
+
<element name="Y" type="ds:CryptoBinary"/>
|
288
|
+
<element name="J" type="ds:CryptoBinary" minOccurs="0"/>
|
289
|
+
<sequence minOccurs="0">
|
290
|
+
<element name="Seed" type="ds:CryptoBinary"/>
|
291
|
+
<element name="PgenCounter" type="ds:CryptoBinary"/>
|
292
|
+
</sequence>
|
293
|
+
</sequence>
|
294
|
+
</complexType>
|
295
|
+
|
296
|
+
<element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
|
297
|
+
<complexType name="RSAKeyValueType">
|
298
|
+
<sequence>
|
299
|
+
<element name="Modulus" type="ds:CryptoBinary"/>
|
300
|
+
<element name="Exponent" type="ds:CryptoBinary"/>
|
301
|
+
</sequence>
|
302
|
+
</complexType>
|
303
|
+
|
304
|
+
<!-- End KeyValue Element-types -->
|
305
|
+
|
306
|
+
<!-- End Signature -->
|
307
|
+
|
308
|
+
</schema>
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Schema específico para assinaturas XML a partir de certificados do padrão ICP-Brasil (X509) -->
|
3
|
+
<xs:schema targetNamespace="http://www.w3.org/2000/09/xmldsig#"
|
4
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
5
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
6
|
+
elementFormDefault="qualified"
|
7
|
+
attributeFormDefault="unqualified" version="0.1">
|
8
|
+
<xs:element name="Signature" type="ds:SignatureType"/>
|
9
|
+
<xs:complexType name="SignatureType">
|
10
|
+
<xs:sequence>
|
11
|
+
<xs:element name="SignedInfo" type="ds:SignedInfoType"/>
|
12
|
+
<xs:element name="SignatureValue" type="ds:SignatureValueType"/>
|
13
|
+
<xs:element name="KeyInfo" type="ds:KeyInfoType"/>
|
14
|
+
</xs:sequence>
|
15
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
16
|
+
</xs:complexType>
|
17
|
+
<xs:complexType name="SignatureValueType">
|
18
|
+
<xs:simpleContent>
|
19
|
+
<xs:extension base="xs:base64Binary">
|
20
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
21
|
+
</xs:extension>
|
22
|
+
</xs:simpleContent>
|
23
|
+
</xs:complexType>
|
24
|
+
<xs:complexType name="SignedInfoType">
|
25
|
+
<xs:sequence>
|
26
|
+
<xs:element name="CanonicalizationMethod">
|
27
|
+
<xs:complexType>
|
28
|
+
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
|
29
|
+
</xs:complexType>
|
30
|
+
</xs:element>
|
31
|
+
<xs:element name="SignatureMethod">
|
32
|
+
<xs:complexType>
|
33
|
+
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
|
34
|
+
</xs:complexType>
|
35
|
+
</xs:element>
|
36
|
+
<xs:element name="Reference" type="ds:ReferenceType" maxOccurs="unbounded"/>
|
37
|
+
</xs:sequence>
|
38
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
39
|
+
</xs:complexType>
|
40
|
+
<xs:complexType name="ReferenceType">
|
41
|
+
<xs:sequence>
|
42
|
+
<xs:element name="Transforms" type="ds:TransformsType"/>
|
43
|
+
<xs:element name="DigestMethod">
|
44
|
+
<xs:complexType>
|
45
|
+
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
|
46
|
+
</xs:complexType>
|
47
|
+
</xs:element>
|
48
|
+
<xs:element name="DigestValue" type="ds:DigestValueType"/>
|
49
|
+
</xs:sequence>
|
50
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
51
|
+
<xs:attribute name="URI" type="xs:anyURI" use="optional"/>
|
52
|
+
<xs:attribute name="Type" type="xs:anyURI" use="optional"/>
|
53
|
+
</xs:complexType>
|
54
|
+
<xs:complexType name="TransformsType">
|
55
|
+
<xs:sequence>
|
56
|
+
<xs:element name="Transform" type="ds:TransformType" maxOccurs="unbounded"/>
|
57
|
+
</xs:sequence>
|
58
|
+
</xs:complexType>
|
59
|
+
<xs:complexType name="TransformType">
|
60
|
+
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
61
|
+
<xs:element name="XPath" type="xs:string"/>
|
62
|
+
</xs:sequence>
|
63
|
+
<xs:attribute name="Algorithm" type="xs:anyURI" use="required"/>
|
64
|
+
</xs:complexType>
|
65
|
+
<xs:complexType name="KeyInfoType">
|
66
|
+
<xs:sequence>
|
67
|
+
<xs:element name="X509Data" type="ds:X509DataType"/>
|
68
|
+
</xs:sequence>
|
69
|
+
<xs:attribute name="Id" type="xs:ID" use="optional"/>
|
70
|
+
</xs:complexType>
|
71
|
+
<xs:complexType name="KeyValueType">
|
72
|
+
<xs:sequence>
|
73
|
+
<xs:element name="RSAKeyValue">
|
74
|
+
<xs:complexType>
|
75
|
+
<xs:sequence>
|
76
|
+
<xs:element name="Modulus" type="ds:CryptoBinary"/>
|
77
|
+
<xs:element name="Exponent" type="ds:CryptoBinary"/>
|
78
|
+
</xs:sequence>
|
79
|
+
</xs:complexType>
|
80
|
+
</xs:element>
|
81
|
+
</xs:sequence>
|
82
|
+
</xs:complexType>
|
83
|
+
<xs:complexType name="X509DataType">
|
84
|
+
<xs:sequence>
|
85
|
+
<xs:element name="X509Certificate" type="xs:base64Binary"/>
|
86
|
+
</xs:sequence>
|
87
|
+
</xs:complexType>
|
88
|
+
<!-- Basic Types Defined for Signatures -->
|
89
|
+
<xs:simpleType name="CryptoBinary">
|
90
|
+
<xs:restriction base="xs:base64Binary"/>
|
91
|
+
</xs:simpleType>
|
92
|
+
<xs:simpleType name="DigestValueType">
|
93
|
+
<xs:restriction base="xs:base64Binary"/>
|
94
|
+
</xs:simpleType>
|
95
|
+
</xs:schema>
|