Re: [sbis_l] Re: Integração CADSUS PIX/PDQ

quarta-feira, 26 de abril de 2017
Vou ser bem especifico, você teve alguns problemas com a estrutura da pesquisa, alguns campos são obrigatorios outros não são umas regras internas deles, talvez você precise omitir algumas tags na pesquisa ou preenchelas

no trecho a seguir vc encontra todos os seus erros pois manteve as tags com ? no request

  <fault:attribute name="xsd.errors" value="[cvc-datatype-valid.1.2.1: '?' is not a valid value for 'date'., cvc-type.3.1.3: The value '?' of element 'fil:dataNascimento' is not valid., cvc-pattern-valid: Value '?' is not facet-valid with respect to pattern '[0-9]*' for type '#AnonType_numeroCPFCPFType'., cvc-type.3.1.3: The value '?' of element 'cpf:numeroCPF' is not valid., cvc-pattern-valid: Value '?' is not facet-valid with respect to pattern '[0-9]*' for type '#AnonType_codigoMunicipioMunicipioType'., cvc-type.3.1.3: The value '?' of element 'mun:codigoMunicipio' is not valid., cvc-enumeration-valid: Value '?' is not facet-valid with respect to enumeration '[01, 02, 03, 04, 05, 06, 19, 91, 92, 93, 95]'. It must be a value from the enumeration., cvc-type.3.1.3: The value '?' of element 'tip:tipoDocumento' is not valid., cvc-enumeration-valid: Value '?' is not facet-valid with respect to enumeration '[IDENTICA, APROXIMADA, FONETICA]'. It must be a value from the enumeration., cvc-type.3.1.3: The value '?' of element 'fil:tipoPesquisa' is not valid., cvc-datatype-valid.1.2.1: '?' is not a valid value for 'boolean'., cvc-type.3.1.3: The value '?' of element 'fil:situacao' is not valid., cvc-datatype-valid.1.2.1: '?' is not a valid value for 'boolean'., cvc-type.3.1.3: The value '?' of element 'cad:higienizar' is not valid.]"></fault:attribute>

[]s
DiReis (Diego Reis Carvalho)
www.direis.net

Em 24 de abril de 2017 15:40, <rafael.ferreira.anacleto@gmail.com> escreveu:
Pessoal estou na fase de implementação de Produção do projeto CADSUS, mas estou com muitos erros de autenticação logo abaixo coloquei meu xml de retorno do SOAP UI onde faço os testes:

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header></env:Header>
   <env:Body>
      <env:Fault>
         <env:Code>
            <env:Value>env:Receiver</env:Value>
            <env:Subcode>
               <env:Value xmlns:fault="http://tempuri.org/soapfaults">fault:MessageBlocked</env:Value>
            </env:Subcode>
         </env:Code>
         <env:Reason>
            <env:Text xml:lang="en">Forced circuit exception</env:Text>
         </env:Reason>
         <env:Detail fault:type="faultDetails" fault:messageId="Id-2a3dfe58fa6adbd6dbbcaf46" xmlns:fault="http://tempuri.org/soapfaults">
            <fault:path policy="/cadsus/CadsusService/v5r0">
               <fault:filter status="Fail" name="Service Handler for 'CadsusService'">
                  <fault:path policy="/cadsus/CadsusService/v5r0">
                     <fault:filter status="Fail" name="1. Request from Client">
                        <fault:path policy="/cadsus/CadsusService/v5r0">
                           <fault:filter status="Pass" name="Before Operation-specific Policy">
                              <fault:path policy="Filtro Conteudo">
                                 <fault:filter status="Pass" name="Bloquear conteudo non-SOAP/XML"></fault:filter>
                                 <fault:filter status="Pass" name="Threatening Content"></fault:filter>
                                 <fault:filter status="Pass" name="If SOAP 1.1"></fault:filter>
                                 <fault:filter status="Pass" name="Validacao Schema 1.1"></fault:filter>
                                 <fault:filter status="Pass" name="Complexidade do XML"></fault:filter>
                                 <fault:filter status="Pass" name="Remover Elementos Inapropriados do WS-Security"></fault:filter>
                                 <fault:filter status="Pass" name="HTTP 200"></fault:filter>
                              </fault:path>
                           </fault:filter>
                           <fault:filter status="Pass" name="SOAP Action Processor"></fault:filter>
                           <fault:filter status="Fail" name="Schema Validation Filter"></fault:filter>
                        </fault:path>
                     </fault:filter>
                  </fault:path>
               </fault:filter>
               <fault:filter status="Fail" name="SOAP Fault"></fault:filter>
            </fault:path>
            <fault:attributes>
               <fault:attribute name="content.body" value="com.vordel.mime.XMLBody@24ef74c6"></fault:attribute>
               <fault:attribute name="failure.reason" value="Service Handler for 'CadsusService' filter failed"></fault:attribute>
               <fault:attribute name="http.client" value="com.vordel.dwe.http.ServerTransaction@64db861b"></fault:attribute>
               <fault:attribute name="http.headers" value="{Client-ip=[189.28.129.91], ECID-Context=[1.m3pu20EjB00000000;kXjE], Host=[servicos.saude.gov.br], Proxy-agent=[Oracle-Traffic-Director/11.1.1.9], Proxy-jroute=[lBuFa6NGwWZEGBBS], Proxy-ssl=[False], Soapaction=[&quot;&quot;], Surrogate-capability=[otd=&quot;Surrogate/1.0&quot;], User-agent=[Apache-HttpClient/4.1.1 (java 1.5)], Via=[1.1 net-otd-web-admin.saude.gov], X-forwarded-for=[200.102.115.106,189.28.129.91]}"></fault:attribute>
               <fault:attribute name="http.querystring" value="com.vordel.mime.QueryStringHeaderSet@8418a58"></fault:attribute>
               <fault:attribute name="http.raw.querystring" value="null"></fault:attribute>
               <fault:attribute name="http.request.uri" value="/cadsus/CadsusService/v5r0"></fault:attribute>
               <fault:attribute name="http.response.info" value="ERROR"></fault:attribute>
               <fault:attribute name="http.response.status" value="500"></fault:attribute>
               <fault:attribute name="id" value="Id-2a3dfe58fa6adbd6dbbcaf46"></fault:attribute>
               <fault:attribute name="leg0" value="[ &quot;http&quot;, [0,1493056810745,0,&quot;2a3dfe58fa6adbd6dbbcaf46&quot;,null,null,null,&quot;http&quot;,null,0,0,&quot;172.16.0.102&quot;,&quot;172.16.0.102&quot;,&quot;172.16.0.122&quot;,&quot;52837&quot;,&quot;4173&quot;,null,&quot;/cadsus/CadsusService/v5r0&quot;,0,null,null,null,0]]"></fault:attribute>
               <fault:attribute name="message.source" value="4173"></fault:attribute>
               <fault:attribute name="monitoring.enabled" value="true"></fault:attribute>
               <fault:attribute name="resolved.to.path" value="CadsusService"></fault:attribute>
               <fault:attribute name="service.name" value="CadsusService"></fault:attribute>
               <fault:attribute name="soap.request.action" value=""></fault:attribute>
               <fault:attribute name="soap.request.method" value="requestPesquisar"></fault:attribute>
               <fault:attribute name="soap.request.method.QName" value="{http://servicos.saude.gov.br/cadsus/v5r0/cadsusservice}requestPesquisar"></fault:attribute>
               <fault:attribute name="soap.version" value="http://schemas.xmlsoap.org/soap/envelope/"></fault:attribute>
               <fault:attribute name="statistics" value="com.vordel.statistics.MessageMetrics@6e19ba4"></fault:attribute>
               <fault:attribute name="webservice.context" value="CadsusService [ESPK:&lt;key type='WebServiceRepository'>&lt;id field='name' value='Web Service Repository'/>&lt;key type='WebServiceGroup'>&lt;id field='name' value='CADSUS50'/>&lt;key type='WebService'>&lt;id field='name' value='CadsusService'/>&lt;/key>&lt;/key>&lt;/key>]"></fault:attribute>
               <fault:attribute name="xsd.errors" value="[cvc-datatype-valid.1.2.1: '?' is not a valid value for 'date'., cvc-type.3.1.3: The value '?' of element 'fil:dataNascimento' is not valid., cvc-pattern-valid: Value '?' is not facet-valid with respect to pattern '[0-9]*' for type '#AnonType_numeroCPFCPFType'., cvc-type.3.1.3: The value '?' of element 'cpf:numeroCPF' is not valid., cvc-pattern-valid: Value '?' is not facet-valid with respect to pattern '[0-9]*' for type '#AnonType_codigoMunicipioMunicipioType'., cvc-type.3.1.3: The value '?' of element 'mun:codigoMunicipio' is not valid., cvc-enumeration-valid: Value '?' is not facet-valid with respect to enumeration '[01, 02, 03, 04, 05, 06, 19, 91, 92, 93, 95]'. It must be a value from the enumeration., cvc-type.3.1.3: The value '?' of element 'tip:tipoDocumento' is not valid., cvc-enumeration-valid: Value '?' is not facet-valid with respect to enumeration '[IDENTICA, APROXIMADA, FONETICA]'. It must be a value from the enumeration., cvc-type.3.1.3: The value '?' of element 'fil:tipoPesquisa' is not valid., cvc-datatype-valid.1.2.1: '?' is not a valid value for 'boolean'., cvc-type.3.1.3: The value '?' of element 'fil:situacao' is not valid., cvc-datatype-valid.1.2.1: '?' is not a valid value for 'boolean'., cvc-type.3.1.3: The value '?' of element 'cad:higienizar' is not valid.]"></fault:attribute>
            </fault:attributes>
         </env:Detail>
      </env:Fault>
   </env:Body>
</env:Envelope>

--
--
----------------------------------------------------------
Seja associado da SBIS!
Visite o site www.sbis.org.br
---
Você recebeu essa mensagem porque está inscrito no grupo "Sociedade Brasileira de Informática em Saúde - Lista de Discussão" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para sbis_l+unsubscribe@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

--
--
----------------------------------------------------------
Seja associado da SBIS!
Visite o site www.sbis.org.br
---
Você recebeu essa mensagem porque está inscrito no grupo "Sociedade Brasileira de Informática em Saúde - Lista de Discussão" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para sbis_l+unsubscribe@googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

0 comentários: