Problemas para transmitir RPS

383 views
Skip to first unread message

Ricardo B.

unread,
Nov 23, 2010, 2:39:55 PM11/23/10
to nfe...@googlegroups.com
Olá Pessoal,
Comecei a desenvolver uma rotina para gerar notas de seviços aqui para são paulo, porém, estou tendo algumas dificuldades durante a comunicação com o web service. Já li diversos posts aqui, inclusive em alguns eu vi esse mesmo problema. Será que está relacionado com o meu certificado? Ele é novo.. Mas não tive nenhum problema para exportar o .pfx e gerar os dois privatekey.pem e o publickey.pem ..
 
Vejam o debug do nusoap:
*********************************************
*********************************************
2010-11-23 17:27:10.972088 nusoap_client: ctor wsdl=1 timeout=0 response_timeout=30 endpoint=string(53) "https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl" 2010-11-23 17:27:10.972173 nusoap_client: will use lazy evaluation of wsdl from https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl 2010-11-23 17:27:10.972215 nusoap_client: call: operation=PedidoEnvioRPS, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl params=array(2) { ["VersaoSchema"]=> int(1) ["MensagemXML"]=> string(4491) " 05253967000107OVhUcF2T8r/dYgxom2oMgLvTzXrzKDtW+wsjIzDXBsC7FPlQcNfuHr3lv3RIW0+nNEu1zJxtH+M6N4tdxDWlop1nFztxNQRMnVjx+42giO7893Iyn1P+O3czB29oXSXMQHBVEHuO7vTN2WsGByiO1BjRYalT/9mcOJBxoNfzuOU=31736696AAAAA1RPS2010-11-23NT29902658N30869210012RICARDORCorrego881Vila Centenaria3550308SP03433000ric...@bressan.wsReferente aos servicos prestadosGxW0W1zrdB96PFyCVlWia00tlQ4=rRdhwHWCCN8l9Wogq2GBurvbL9tBDp1S/ehfEADlOYSqxrTepCmzHSSTZHopDetiXYxNEFlu1arPTeil016oL8Dkl7ZWNCkcACvyHUM0wThsh3R37v066CFwVz27gStwpUpZJQTCdJZvfRmN1SWHF28m4kOfqkHxYrkuBwrBqjQ=MIIGtTCCBZ2gAwIBAgIQSopwRXnKOQ/9abP8UUi8OjANBgkqhkiG9w0BAQUFADB0MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDEtMCsGA1UECxMkQ2VydGlzaWduIENlcnRpZmljYWRvcmEgRGlnaXRhbCBTLkEuMSEwHwYDVQQDExhBQyBDZXJ0aXNpZ24gTXVsdGlwbGEgRzMwHhcNMTAxMTE2MDAwMDAwWhcNMTExMTE1MjM1OTU5WjCCAQAxCzAJBgNVBAYTAkJSMRMwEQYDVQQKFApJQ1AtQnJhc2lsMRUwEwYDVQQLFAxJRCAtIDExMjE2MzExODA2BgNVBAsUL0F1dGVudGljYWRvIHBvciBDZXJ0aXNpZ24gQ2VydGlmaWNhZG9yYSBEaWdpdGFsMRswGQYDVQQLFBJBc3NpbmF0dXJhIFRpcG8gQTExFDASBgNVBAsUCyhFTSBCUkFOQ08pMRQwEgYDVQQLFAsoRU0gQlJBTkNPKTEgMB4GA1UEAxMXRElUQ09NIElOVEVSTkVUIExUREEgTUUxIDAeBgkqhkiG9w0BCQEWEW5mZUBkaXRjb20uY29tLmJyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFxXBkbW1+SuRFBcp2AHOGo6Qv3rnW2VQ5XTzseiCM3PbunmvG/ysB3Z/8nvhBik3DFlMD53aeXiv/BFhgB9964Qk12Bq8BP8mVvD1L/qtvEKk3C4NVHo0uJCYYiegYRFAvgm+zhr/nDnAkTcndTFOTARA19ytGnWIaKzs+PQoowIDAQABo4IDNzCCAzMwgbIGA1UdEQSBqjCBp6A4BgVgTAEDBKAvBC0wNDExMTk4MjMxODAwNjQwODAzMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgJAYFYEwBAwKgGwQZUkFGQUVMIERPUyBTQU5UT1MgU0FOVEFOQaAZBgVgTAEDA6AQBA4wNTI1Mzk2NzAwMDEwN6AXBgVgTAEDB6AOBAwwMDAwMDAwMDAwMDCBEW5mZUBkaXRjb20uY29tLmJyMAkGA1UdEwQCMAAwHwYDVR0jBBgwFoAUhLBCMzSjQiWlKJc+g+t38OhPwlQwDgYDVR0PAQH/BAQDAgXgMFUGA1UdIAROMEwwSgYGYEwBAgELMEAwPgYIKwYBBQUHAgEWMmh0dHA6Ly9pY3AtYnJhc2lsLmNlcnRpc2lnbi5jb20uYnIvcmVwb3NpdG9yaW8vZHBjMIIBJQYDVR0fBIIBHDCCARgwXKBaoFiGVmh0dHA6Ly9pY3AtYnJhc2lsLmNlcnRpc2lnbi5jb20uYnIvcmVwb3NpdG9yaW8vbGNyL0FDQ2VydGlzaWduTXVsdGlwbGFHMy9MYXRlc3RDUkwuY3JsMFugWaBXhlVodHRwOi8vaWNwLWJyYXNpbC5vdXRyYWxjci5jb20uYnIvcmVwb3NpdG9yaW8vbGNyL0FDQ2VydGlzaWduTXVsdGlwbGFHMy9MYXRlc3RDUkwuY3JsMFugWaBXhlVodHRwOi8vcmVwb3NpdG9yaW8uaWNwYnJhc2lsLmdvdi5ici9sY3IvQ2VydGlzaWduL0FDQ2VydGlzaWduTXVsdGlwbGFHMy9MYXRlc3RDUkwuY3JsMB0GA1UdJQQWMBQGCCsGAQUFBwMEBggrBgEFBQcDAjCBoAYIKwYBBQUHAQEEgZMwgZAwKAYIKwYBBQUHMAGGHGh0dHA6Ly9vY3NwLmNlcnRpc2lnbi5jb20uYnIwZAYIKwYBBQUHMAKGWGh0dHA6Ly9pY3AtYnJhc2lsLmNlcnRpc2lnbi5jb20uYnIvcmVwb3NpdG9yaW8vY2VydGlmaWNhZG9zL0FDX0NlcnRpc2lnbl9NdWx0aXBsYV9HMy5wN2MwDQYJKoZIhvcNAQEFBQADggEBADtu1lF49nDs+WJkFasuA6EksklGKlZUZQfCLTy3zCTKtdmgiF/T84EOOiHjO47sATHRdtBPdvYJd8dwiuf44VX/KxbQoqzhOlpyQAZQnfbFRWMPyZ2+pG3sujTLkvRO46PuIRrDGvfi1iy8sPU57YAt5+jAtzToMeC0FO5V7i8gUC7sJ/bPPPfM55Z5+awwFqcmkbqo2+veAz7irsEd22RKhO10e/YJkRKIcHXYb/PedfoOxqbd2sFGEmi8Dz4NHmkh2NCtABsyf2ABcInj7Dav9VLhedJ5pNh6kuRBZSBIbKG/TjddG8ujURSiuKrTm3UtPmmVh8fxLrqm1PIc6oc= " } headers=bool(false) 2010-11-23 17:27:10.972258 nusoap_client: instantiating wsdl class with doc: https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl 2010-11-23 17:27:10.972305 wsdl: ctor wsdl= timeout=0 response_timeout=30 2010-11-23 17:27:10.972329 wsdl: parse and process WSDL path= 2010-11-23 17:27:10.972364 wsdl: setCredentials username= authtype=certificate certRequest= array(6) { ["sslkeyfile"]=> string(70) "/home/login/public_html/projetonfe/schema/Certificados/privatekey.pem" ["sslcertfile"]=> string(69) "/home/login/public_html/projetonfe/schema/Certificados/publickey.pem" ["passphrase"]=> string(10) "cc5627022*" ["verifypeer"]=> bool(false) ["verifyhost"]=> bool(false) ["trace"]=> int(1) } 2010-11-23 17:27:10.972396 wsdl: parse and process WSDL path=https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl 2010-11-23 17:27:10.972416 wsdl: parse WSDL at path=https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl 2010-11-23 17:27:10.972444 wsdl: getting WSDL http(s) URL https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl 2010-11-23 17:27:10.972486 soap_transport_http: ctor url=https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl use_curl= curl_options: array(0) { } 2010-11-23 17:27:10.972518 soap_transport_http: parsed URL scheme = https 2010-11-23 17:27:10.972545 soap_transport_http: parsed URL host = nfe.prefeitura.sp.gov.br 2010-11-23 17:27:10.972564 soap_transport_http: parsed URL path = /ws/lotenfe.asmx 2010-11-23 17:27:10.972583 soap_transport_http: parsed URL query = wsdl 2010-11-23 17:27:10.972609 soap_transport_http: set header Host: nfe.prefeitura.sp.gov.br 2010-11-23 17:27:10.972687 soap_transport_http: set header User-Agent: NuSOAP/0.7.3 (1.114) 2010-11-23 17:27:10.972713 soap_transport_http: setCredentials username= authtype=certificate digestRequest= array(0) { } 2010-11-23 17:27:10.972737 soap_transport_http: certRequest= array(6) { ["sslkeyfile"]=> string(70) "/home/login/public_html/projetonfe/schema/Certificados/privatekey.pem" ["sslcertfile"]=> string(69) "/home/login/public_html/projetonfe/schema/Certificados/publickey.pem" ["passphrase"]=> string(10) "cc5627022*" ["verifypeer"]=> bool(false) ["verifyhost"]=> bool(false) ["trace"]=> int(1) } 2010-11-23 17:27:10.972766 soap_transport_http: Authorization header not set for certificate 2010-11-23 17:27:10.972791 soap_transport_http: set header Accept-Encoding: gzip, deflate 2010-11-23 17:27:10.972814 soap_transport_http: set header Connection: close 2010-11-23 17:27:10.972843 soap_transport_http: entered send() with data of length: 0 2010-11-23 17:27:10.972869 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host nfe.prefeitura.sp.gov.br, port 443 2010-11-23 17:27:10.972901 soap_transport_http: connect using cURL 2010-11-23 17:27:10.973000 soap_transport_http: setCurlOption option=10002, value= string(57) "https://nfe.prefeitura.sp.gov.br:443/ws/lotenfe.asmx?wsdl" 2010-11-23 17:27:10.973039 soap_transport_http: setCurlOption option=52, value= int(1) 2010-11-23 17:27:10.973066 soap_transport_http: setCurlOption option=42, value= int(1) 2010-11-23 17:27:10.973092 soap_transport_http: setCurlOption option=19913, value= int(1) 2010-11-23 17:27:10.973118 soap_transport_http: setCurlOption option=13, value= int(30) 2010-11-23 17:27:10.973143 soap_transport_http: set cURL SSL verify options 2010-11-23 17:27:10.973163 soap_transport_http: setCurlOption option=64, value= int(0) 2010-11-23 17:27:10.973188 soap_transport_http: setCurlOption option=81, value= int(0) 2010-11-23 17:27:10.973213 soap_transport_http: set cURL certificate options 2010-11-23 17:27:10.973234 soap_transport_http: setCurlOption option=64, value= bool(false) 2010-11-23 17:27:10.973260 soap_transport_http: setCurlOption option=81, value= bool(false) 2010-11-23 17:27:10.973287 soap_transport_http: setCurlOption option=10025, value= string(69) "/home/login/public_html/projetonfe/schema/Certificados/publickey.pem" 2010-11-23 17:27:10.973315 soap_transport_http: setCurlOption option=10087, value= string(70) "/home/login/public_html/projetonfe/schema/Certificados/privatekey.pem" 2010-11-23 17:27:10.973342 soap_transport_http: setCurlOption option=10026, value= string(10) "cc5627022*" 2010-11-23 17:27:10.973369 soap_transport_http: cURL connection set up 2010-11-23 17:27:10.973396 soap_transport_http: set header Content-Length: 0 2010-11-23 17:27:10.973418 soap_transport_http: HTTP request: GET /ws/lotenfe.asmx?wsdl HTTP/1.1 2010-11-23 17:27:10.973438 soap_transport_http: HTTP header: Host: nfe.prefeitura.sp.gov.br 2010-11-23 17:27:10.973459 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.3 (1.114) 2010-11-23 17:27:10.973478 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate 2010-11-23 17:27:10.973496 soap_transport_http: HTTP header: Connection: close 2010-11-23 17:27:10.973516 soap_transport_http: HTTP header: Content-Length: 0 2010-11-23 17:27:10.973544 soap_transport_http: Skip cURL header Host: nfe.prefeitura.sp.gov.br 2010-11-23 17:27:10.973566 soap_transport_http: Skip cURL header Connection: close 2010-11-23 17:27:10.973585 soap_transport_http: Skip cURL header Content-Length: 0 2010-11-23 17:27:10.973605 soap_transport_http: setCurlOption option=10023, value= array(2) { [0]=> string(32) "User-Agent: NuSOAP/0.7.3 (1.114)" [1]=> string(30) "Accept-Encoding: gzip, deflate" } 2010-11-23 17:27:10.973639 soap_transport_http: set cURL HTTP headers 2010-11-23 17:27:10.973660 soap_transport_http: set cURL payload 2010-11-23 17:27:10.973682 soap_transport_http: send and receive with cURL 2010-11-23 17:27:18.419185 soap_transport_http: No cURL error, closing cURL 2010-11-23 17:27:18.420652 soap_transport_http: found proper separation of headers and document 2010-11-23 17:27:18.420680 soap_transport_http: cleaned data, stringlen: 19004 2010-11-23 17:27:18.420752 soap_transport_http: No Content-Encoding header 2010-11-23 17:27:18.420778 soap_transport_http: end of send() 2010-11-23 17:27:18.420818 wsdl: got WSDL URL 2010-11-23 17:27:18.420837 wsdl: Parse WSDL 2010-11-23 17:27:18.421242 wsdl: Parsing WSDL schema 2010-11-23 17:27:18.421317 nusoap_xmlschema: nusoap_xmlschema class instantiated, inside constructor 2010-11-23 17:27:18.421468 nusoap_xmlschema: processing untyped element EnvioRPSRequest type _EnvioRPSRequest_ContainedType 2010-11-23 17:27:18.421495 nusoap_xmlschema: add element EnvioRPSRequest to elements array 2010-11-23 17:27:18.421560 nusoap_xmlschema: processing unnamed complexType for element EnvioRPSRequest named _EnvioRPSRequest_ContainedType 2010-11-23 17:27:18.421674 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.421704 nusoap_xmlschema: add element VersaoSchema to complexType _EnvioRPSRequest_ContainedType 2010-11-23 17:27:18.421752 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.421831 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.421860 nusoap_xmlschema: add element MensagemXML to complexType _EnvioRPSRequest_ContainedType 2010-11-23 17:27:18.421905 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.421967 nusoap_xmlschema: done processing complexType _EnvioRPSRequest_ContainedType 2010-11-23 17:27:18.422011 nusoap_xmlschema: done processing element EnvioRPSRequest 2010-11-23 17:27:18.422072 nusoap_xmlschema: processing untyped element EnvioRPSResponse type _EnvioRPSResponse_ContainedType 2010-11-23 17:27:18.422097 nusoap_xmlschema: add element EnvioRPSResponse to elements array 2010-11-23 17:27:18.422158 nusoap_xmlschema: processing unnamed complexType for element EnvioRPSResponse named _EnvioRPSResponse_ContainedType 2010-11-23 17:27:18.422269 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.422299 nusoap_xmlschema: add element RetornoXML to complexType _EnvioRPSResponse_ContainedType 2010-11-23 17:27:18.422339 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.422401 nusoap_xmlschema: done processing complexType _EnvioRPSResponse_ContainedType 2010-11-23 17:27:18.422444 nusoap_xmlschema: done processing element EnvioRPSResponse 2010-11-23 17:27:18.422509 nusoap_xmlschema: processing untyped element EnvioLoteRPSRequest type _EnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.422533 nusoap_xmlschema: add element EnvioLoteRPSRequest to elements array 2010-11-23 17:27:18.422590 nusoap_xmlschema: processing unnamed complexType for element EnvioLoteRPSRequest named _EnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.422700 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.422729 nusoap_xmlschema: add element VersaoSchema to complexType _EnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.422769 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.422847 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.422875 nusoap_xmlschema: add element MensagemXML to complexType _EnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.422924 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.422986 nusoap_xmlschema: done processing complexType _EnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.423028 nusoap_xmlschema: done processing element EnvioLoteRPSRequest 2010-11-23 17:27:18.423090 nusoap_xmlschema: processing untyped element EnvioLoteRPSResponse type _EnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.423114 nusoap_xmlschema: add element EnvioLoteRPSResponse to elements array 2010-11-23 17:27:18.423173 nusoap_xmlschema: processing unnamed complexType for element EnvioLoteRPSResponse named _EnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.423283 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.423311 nusoap_xmlschema: add element RetornoXML to complexType _EnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.423351 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.423412 nusoap_xmlschema: done processing complexType _EnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.423457 nusoap_xmlschema: done processing element EnvioLoteRPSResponse 2010-11-23 17:27:18.423520 nusoap_xmlschema: processing untyped element TesteEnvioLoteRPSRequest type _TesteEnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.423544 nusoap_xmlschema: add element TesteEnvioLoteRPSRequest to elements array 2010-11-23 17:27:18.423601 nusoap_xmlschema: processing unnamed complexType for element TesteEnvioLoteRPSRequest named _TesteEnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.423710 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.423743 nusoap_xmlschema: add element VersaoSchema to complexType _TesteEnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.423794 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.423871 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.423899 nusoap_xmlschema: add element MensagemXML to complexType _TesteEnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.423939 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.424001 nusoap_xmlschema: done processing complexType _TesteEnvioLoteRPSRequest_ContainedType 2010-11-23 17:27:18.424044 nusoap_xmlschema: done processing element TesteEnvioLoteRPSRequest 2010-11-23 17:27:18.424107 nusoap_xmlschema: processing untyped element TesteEnvioLoteRPSResponse type _TesteEnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.424131 nusoap_xmlschema: add element TesteEnvioLoteRPSResponse to elements array 2010-11-23 17:27:18.424189 nusoap_xmlschema: processing unnamed complexType for element TesteEnvioLoteRPSResponse named _TesteEnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.424298 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.424327 nusoap_xmlschema: add element RetornoXML to complexType _TesteEnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.424367 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.424429 nusoap_xmlschema: done processing complexType _TesteEnvioLoteRPSResponse_ContainedType 2010-11-23 17:27:18.424475 nusoap_xmlschema: done processing element TesteEnvioLoteRPSResponse 2010-11-23 17:27:18.424537 nusoap_xmlschema: processing untyped element CancelamentoNFeRequest type _CancelamentoNFeRequest_ContainedType 2010-11-23 17:27:18.424562 nusoap_xmlschema: add element CancelamentoNFeRequest to elements array 2010-11-23 17:27:18.424619 nusoap_xmlschema: processing unnamed complexType for element CancelamentoNFeRequest named _CancelamentoNFeRequest_ContainedType 2010-11-23 17:27:18.424731 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.424760 nusoap_xmlschema: add element VersaoSchema to complexType _CancelamentoNFeRequest_ContainedType 2010-11-23 17:27:18.424812 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.424892 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.424920 nusoap_xmlschema: add element MensagemXML to complexType _CancelamentoNFeRequest_ContainedType 2010-11-23 17:27:18.424960 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.425021 nusoap_xmlschema: done processing complexType _CancelamentoNFeRequest_ContainedType 2010-11-23 17:27:18.425064 nusoap_xmlschema: done processing element CancelamentoNFeRequest 2010-11-23 17:27:18.425126 nusoap_xmlschema: processing untyped element CancelamentoNFeResponse type _CancelamentoNFeResponse_ContainedType 2010-11-23 17:27:18.425151 nusoap_xmlschema: add element CancelamentoNFeResponse to elements array 2010-11-23 17:27:18.425209 nusoap_xmlschema: processing unnamed complexType for element CancelamentoNFeResponse named _CancelamentoNFeResponse_ContainedType 2010-11-23 17:27:18.425317 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.425346 nusoap_xmlschema: add element RetornoXML to complexType _CancelamentoNFeResponse_ContainedType 2010-11-23 17:27:18.425386 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.425449 nusoap_xmlschema: done processing complexType _CancelamentoNFeResponse_ContainedType 2010-11-23 17:27:18.425495 nusoap_xmlschema: done processing element CancelamentoNFeResponse 2010-11-23 17:27:18.425557 nusoap_xmlschema: processing untyped element ConsultaNFeRequest type _ConsultaNFeRequest_ContainedType 2010-11-23 17:27:18.425582 nusoap_xmlschema: add element ConsultaNFeRequest to elements array 2010-11-23 17:27:18.425640 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeRequest named _ConsultaNFeRequest_ContainedType 2010-11-23 17:27:18.425749 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.425778 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaNFeRequest_ContainedType 2010-11-23 17:27:18.425822 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.425899 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.425927 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaNFeRequest_ContainedType 2010-11-23 17:27:18.425967 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.426029 nusoap_xmlschema: done processing complexType _ConsultaNFeRequest_ContainedType 2010-11-23 17:27:18.426072 nusoap_xmlschema: done processing element ConsultaNFeRequest 2010-11-23 17:27:18.426133 nusoap_xmlschema: processing untyped element ConsultaNFeResponse type _ConsultaNFeResponse_ContainedType 2010-11-23 17:27:18.426158 nusoap_xmlschema: add element ConsultaNFeResponse to elements array 2010-11-23 17:27:18.426233 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeResponse named _ConsultaNFeResponse_ContainedType 2010-11-23 17:27:18.426344 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.426377 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaNFeResponse_ContainedType 2010-11-23 17:27:18.426425 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.426492 nusoap_xmlschema: done processing complexType _ConsultaNFeResponse_ContainedType 2010-11-23 17:27:18.426536 nusoap_xmlschema: done processing element ConsultaNFeResponse 2010-11-23 17:27:18.426598 nusoap_xmlschema: processing untyped element ConsultaNFeRecebidasRequest type _ConsultaNFeRecebidasRequest_ContainedType 2010-11-23 17:27:18.426623 nusoap_xmlschema: add element ConsultaNFeRecebidasRequest to elements array 2010-11-23 17:27:18.426681 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeRecebidasRequest named _ConsultaNFeRecebidasRequest_ContainedType 2010-11-23 17:27:18.426797 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.426826 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaNFeRecebidasRequest_ContainedType 2010-11-23 17:27:18.426866 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.426943 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.426972 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaNFeRecebidasRequest_ContainedType 2010-11-23 17:27:18.427012 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.427074 nusoap_xmlschema: done processing complexType _ConsultaNFeRecebidasRequest_ContainedType 2010-11-23 17:27:18.427117 nusoap_xmlschema: done processing element ConsultaNFeRecebidasRequest 2010-11-23 17:27:18.427179 nusoap_xmlschema: processing untyped element ConsultaNFeRecebidasResponse type _ConsultaNFeRecebidasResponse_ContainedType 2010-11-23 17:27:18.427204 nusoap_xmlschema: add element ConsultaNFeRecebidasResponse to elements array 2010-11-23 17:27:18.427261 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeRecebidasResponse named _ConsultaNFeRecebidasResponse_ContainedType 2010-11-23 17:27:18.427371 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.427400 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaNFeRecebidasResponse_ContainedType 2010-11-23 17:27:18.427440 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.427503 nusoap_xmlschema: done processing complexType _ConsultaNFeRecebidasResponse_ContainedType 2010-11-23 17:27:18.427547 nusoap_xmlschema: done processing element ConsultaNFeRecebidasResponse 2010-11-23 17:27:18.427609 nusoap_xmlschema: processing untyped element ConsultaNFeEmitidasRequest type _ConsultaNFeEmitidasRequest_ContainedType 2010-11-23 17:27:18.427633 nusoap_xmlschema: add element ConsultaNFeEmitidasRequest to elements array 2010-11-23 17:27:18.427693 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeEmitidasRequest named _ConsultaNFeEmitidasRequest_ContainedType 2010-11-23 17:27:18.427802 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.427831 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaNFeEmitidasRequest_ContainedType 2010-11-23 17:27:18.427871 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.427948 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.427977 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaNFeEmitidasRequest_ContainedType 2010-11-23 17:27:18.428017 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.428080 nusoap_xmlschema: done processing complexType _ConsultaNFeEmitidasRequest_ContainedType 2010-11-23 17:27:18.428123 nusoap_xmlschema: done processing element ConsultaNFeEmitidasRequest 2010-11-23 17:27:18.428184 nusoap_xmlschema: processing untyped element ConsultaNFeEmitidasResponse type _ConsultaNFeEmitidasResponse_ContainedType 2010-11-23 17:27:18.428209 nusoap_xmlschema: add element ConsultaNFeEmitidasResponse to elements array 2010-11-23 17:27:18.428267 nusoap_xmlschema: processing unnamed complexType for element ConsultaNFeEmitidasResponse named _ConsultaNFeEmitidasResponse_ContainedType 2010-11-23 17:27:18.428377 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.428406 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaNFeEmitidasResponse_ContainedType 2010-11-23 17:27:18.428447 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.428511 nusoap_xmlschema: done processing complexType _ConsultaNFeEmitidasResponse_ContainedType 2010-11-23 17:27:18.428555 nusoap_xmlschema: done processing element ConsultaNFeEmitidasResponse 2010-11-23 17:27:18.428619 nusoap_xmlschema: processing untyped element ConsultaLoteRequest type _ConsultaLoteRequest_ContainedType 2010-11-23 17:27:18.428644 nusoap_xmlschema: add element ConsultaLoteRequest to elements array 2010-11-23 17:27:18.428702 nusoap_xmlschema: processing unnamed complexType for element ConsultaLoteRequest named _ConsultaLoteRequest_ContainedType 2010-11-23 17:27:18.428811 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.428841 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaLoteRequest_ContainedType 2010-11-23 17:27:18.428881 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.428958 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.428986 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaLoteRequest_ContainedType 2010-11-23 17:27:18.429026 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.429088 nusoap_xmlschema: done processing complexType _ConsultaLoteRequest_ContainedType 2010-11-23 17:27:18.429131 nusoap_xmlschema: done processing element ConsultaLoteRequest 2010-11-23 17:27:18.429193 nusoap_xmlschema: processing untyped element ConsultaLoteResponse type _ConsultaLoteResponse_ContainedType 2010-11-23 17:27:18.429217 nusoap_xmlschema: add element ConsultaLoteResponse to elements array 2010-11-23 17:27:18.429275 nusoap_xmlschema: processing unnamed complexType for element ConsultaLoteResponse named _ConsultaLoteResponse_ContainedType 2010-11-23 17:27:18.429384 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.429413 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaLoteResponse_ContainedType 2010-11-23 17:27:18.429452 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.429518 nusoap_xmlschema: done processing complexType _ConsultaLoteResponse_ContainedType 2010-11-23 17:27:18.429561 nusoap_xmlschema: done processing element ConsultaLoteResponse 2010-11-23 17:27:18.429622 nusoap_xmlschema: processing untyped element ConsultaInformacoesLoteRequest type _ConsultaInformacoesLoteRequest_ContainedType 2010-11-23 17:27:18.429647 nusoap_xmlschema: add element ConsultaInformacoesLoteRequest to elements array 2010-11-23 17:27:18.429706 nusoap_xmlschema: processing unnamed complexType for element ConsultaInformacoesLoteRequest named _ConsultaInformacoesLoteRequest_ContainedType 2010-11-23 17:27:18.429817 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.429845 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaInformacoesLoteRequest_ContainedType 2010-11-23 17:27:18.429886 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.429962 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.429991 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaInformacoesLoteRequest_ContainedType 2010-11-23 17:27:18.430030 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.430104 nusoap_xmlschema: done processing complexType _ConsultaInformacoesLoteRequest_ContainedType 2010-11-23 17:27:18.430148 nusoap_xmlschema: done processing element ConsultaInformacoesLoteRequest 2010-11-23 17:27:18.430210 nusoap_xmlschema: processing untyped element ConsultaInformacoesLoteResponse type _ConsultaInformacoesLoteResponse_ContainedType 2010-11-23 17:27:18.430235 nusoap_xmlschema: add element ConsultaInformacoesLoteResponse to elements array 2010-11-23 17:27:18.430301 nusoap_xmlschema: processing unnamed complexType for element ConsultaInformacoesLoteResponse named _ConsultaInformacoesLoteResponse_ContainedType 2010-11-23 17:27:18.430413 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.430447 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaInformacoesLoteResponse_ContainedType 2010-11-23 17:27:18.430490 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.430552 nusoap_xmlschema: done processing complexType _ConsultaInformacoesLoteResponse_ContainedType 2010-11-23 17:27:18.430595 nusoap_xmlschema: done processing element ConsultaInformacoesLoteResponse 2010-11-23 17:27:18.430657 nusoap_xmlschema: processing untyped element ConsultaCNPJRequest type _ConsultaCNPJRequest_ContainedType 2010-11-23 17:27:18.430681 nusoap_xmlschema: add element ConsultaCNPJRequest to elements array 2010-11-23 17:27:18.430739 nusoap_xmlschema: processing unnamed complexType for element ConsultaCNPJRequest named _ConsultaCNPJRequest_ContainedType 2010-11-23 17:27:18.430861 nusoap_xmlschema: processing typed element VersaoSchema of type http://www.w3.org/2001/XMLSchema:int 2010-11-23 17:27:18.430890 nusoap_xmlschema: add element VersaoSchema to complexType _ConsultaCNPJRequest_ContainedType 2010-11-23 17:27:18.430930 nusoap_xmlschema: done processing element VersaoSchema 2010-11-23 17:27:18.431007 nusoap_xmlschema: processing typed element MensagemXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.431039 nusoap_xmlschema: add element MensagemXML to complexType _ConsultaCNPJRequest_ContainedType 2010-11-23 17:27:18.431079 nusoap_xmlschema: done processing element MensagemXML 2010-11-23 17:27:18.431140 nusoap_xmlschema: done processing complexType _ConsultaCNPJRequest_ContainedType 2010-11-23 17:27:18.431183 nusoap_xmlschema: done processing element ConsultaCNPJRequest 2010-11-23 17:27:18.431244 nusoap_xmlschema: processing untyped element ConsultaCNPJResponse type _ConsultaCNPJResponse_ContainedType 2010-11-23 17:27:18.431268 nusoap_xmlschema: add element ConsultaCNPJResponse to elements array 2010-11-23 17:27:18.431326 nusoap_xmlschema: processing unnamed complexType for element ConsultaCNPJResponse named _ConsultaCNPJResponse_ContainedType 2010-11-23 17:27:18.431434 nusoap_xmlschema: processing typed element RetornoXML of type http://www.w3.org/2001/XMLSchema:string 2010-11-23 17:27:18.431469 nusoap_xmlschema: add element RetornoXML to complexType _ConsultaCNPJResponse_ContainedType 2010-11-23 17:27:18.431509 nusoap_xmlschema: done processing element RetornoXML 2010-11-23 17:27:18.431571 nusoap_xmlschema: done processing complexType _ConsultaCNPJResponse_ContainedType 2010-11-23 17:27:18.431615 nusoap_xmlschema: done processing element ConsultaCNPJResponse 2010-11-23 17:27:18.431657 wsdl: Parsing WSDL schema done 2010-11-23 17:27:18.431775 wsdl: msg EnvioRPSSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:EnvioRPSRequest 2010-11-23 17:27:18.431894 wsdl: msg EnvioRPSSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:EnvioRPSResponse 2010-11-23 17:27:18.432017 wsdl: msg EnvioLoteRPSSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:EnvioLoteRPSRequest 2010-11-23 17:27:18.432136 wsdl: msg EnvioLoteRPSSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:EnvioLoteRPSResponse 2010-11-23 17:27:18.432255 wsdl: msg TesteEnvioLoteRPSSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:TesteEnvioLoteRPSRequest 2010-11-23 17:27:18.432376 wsdl: msg TesteEnvioLoteRPSSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:TesteEnvioLoteRPSResponse 2010-11-23 17:27:18.432497 wsdl: msg CancelamentoNFeSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:CancelamentoNFeRequest 2010-11-23 17:27:18.432616 wsdl: msg CancelamentoNFeSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:CancelamentoNFeResponse 2010-11-23 17:27:18.432738 wsdl: msg ConsultaNFeSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeRequest 2010-11-23 17:27:18.432856 wsdl: msg ConsultaNFeSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeResponse 2010-11-23 17:27:18.432974 wsdl: msg ConsultaNFeRecebidasSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeRecebidasRequest 2010-11-23 17:27:18.433097 wsdl: msg ConsultaNFeRecebidasSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeRecebidasResponse 2010-11-23 17:27:18.433215 wsdl: msg ConsultaNFeEmitidasSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeEmitidasRequest 2010-11-23 17:27:18.433334 wsdl: msg ConsultaNFeEmitidasSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaNFeEmitidasResponse 2010-11-23 17:27:18.433458 wsdl: msg ConsultaLoteSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaLoteRequest 2010-11-23 17:27:18.433578 wsdl: msg ConsultaLoteSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaLoteResponse 2010-11-23 17:27:18.433698 wsdl: msg ConsultaInformacoesLoteSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaInformacoesLoteRequest 2010-11-23 17:27:18.433820 wsdl: msg ConsultaInformacoesLoteSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaInformacoesLoteResponse 2010-11-23 17:27:18.433937 wsdl: msg ConsultaCNPJSoapIn: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaCNPJRequest 2010-11-23 17:27:18.434055 wsdl: msg ConsultaCNPJSoapOut: found part (with element) parameters: parameters,http://www.prefeitura.sp.gov.br/nfe:ConsultaCNPJResponse 2010-11-23 17:27:18.434166 wsdl: portType LoteNFeSoap operation: EnvioRPS 2010-11-23 17:27:18.434329 wsdl: portType LoteNFeSoap operation: EnvioLoteRPS 2010-11-23 17:27:18.434497 wsdl: portType LoteNFeSoap operation: TesteEnvioLoteRPS 2010-11-23 17:27:18.434663 wsdl: portType LoteNFeSoap operation: CancelamentoNFe 2010-11-23 17:27:18.434825 wsdl: portType LoteNFeSoap operation: ConsultaNFe 2010-11-23 17:27:18.434989 wsdl: portType LoteNFeSoap operation: ConsultaNFeRecebidas 2010-11-23 17:27:18.435150 wsdl: portType LoteNFeSoap operation: ConsultaNFeEmitidas 2010-11-23 17:27:18.435317 wsdl: portType LoteNFeSoap operation: ConsultaLote 2010-11-23 17:27:18.435484 wsdl: portType LoteNFeSoap operation: ConsultaInformacoesLote 2010-11-23 17:27:18.435649 wsdl: portType LoteNFeSoap operation: ConsultaCNPJ 2010-11-23 17:27:18.435845 wsdl: current binding: LoteNFeSoap of portType: http://www.prefeitura.sp.gov.br/nfe:LoteNFeSoap 2010-11-23 17:27:18.435949 wsdl: current binding operation: EnvioRPS 2010-11-23 17:27:18.436223 wsdl: current binding operation: EnvioLoteRPS 2010-11-23 17:27:18.436494 wsdl: current binding operation: TesteEnvioLoteRPS 2010-11-23 17:27:18.436764 wsdl: current binding operation: CancelamentoNFe 2010-11-23 17:27:18.437031 wsdl: current binding operation: ConsultaNFe 2010-11-23 17:27:18.437298 wsdl: current binding operation: ConsultaNFeRecebidas 2010-11-23 17:27:18.437568 wsdl: current binding operation: ConsultaNFeEmitidas 2010-11-23 17:27:18.437836 wsdl: current binding operation: ConsultaLote 2010-11-23 17:27:18.438104 wsdl: current binding operation: ConsultaInformacoesLote 2010-11-23 17:27:18.438378 wsdl: current binding operation: ConsultaCNPJ 2010-11-23 17:27:18.438690 wsdl: current binding: LoteNFeSoap12 of portType: http://www.prefeitura.sp.gov.br/nfe:LoteNFeSoap 2010-11-23 17:27:18.438795 wsdl: current binding operation: EnvioRPS 2010-11-23 17:27:18.439064 wsdl: current binding operation: EnvioLoteRPS 2010-11-23 17:27:18.439340 wsdl: current binding operation: TesteEnvioLoteRPS 2010-11-23 17:27:18.439612 wsdl: current binding operation: CancelamentoNFe 2010-11-23 17:27:18.439880 wsdl: current binding operation: ConsultaNFe 2010-11-23 17:27:18.440151 wsdl: current binding operation: ConsultaNFeRecebidas 2010-11-23 17:27:18.440419 wsdl: current binding operation: ConsultaNFeEmitidas 2010-11-23 17:27:18.440690 wsdl: current binding operation: ConsultaLote 2010-11-23 17:27:18.440958 wsdl: current binding operation: ConsultaInformacoesLote 2010-11-23 17:27:18.441227 wsdl: current binding operation: ConsultaCNPJ 2010-11-23 17:27:18.441509 wsdl: current service: LoteNFe 2010-11-23 17:27:18.441580 wsdl: current port: LoteNFeSoap 2010-11-23 17:27:18.441704 wsdl: current port: LoteNFeSoap12 2010-11-23 17:27:18.441818 wsdl: Parsing WSDL done 2010-11-23 17:27:18.441863 wsdl: post-parse data gathering for EnvioRPS 2010-11-23 17:27:18.441914 wsdl: post-parse data gathering for EnvioLoteRPS 2010-11-23 17:27:18.441955 wsdl: post-parse data gathering for TesteEnvioLoteRPS 2010-11-23 17:27:18.441998 wsdl: post-parse data gathering for CancelamentoNFe 2010-11-23 17:27:18.442038 wsdl: post-parse data gathering for ConsultaNFe 2010-11-23 17:27:18.442078 wsdl: post-parse data gathering for ConsultaNFeRecebidas 2010-11-23 17:27:18.442119 wsdl: post-parse data gathering for ConsultaNFeEmitidas 2010-11-23 17:27:18.442160 wsdl: post-parse data gathering for ConsultaLote 2010-11-23 17:27:18.442201 wsdl: post-parse data gathering for ConsultaInformacoesLote 2010-11-23 17:27:18.442242 wsdl: post-parse data gathering for ConsultaCNPJ 2010-11-23 17:27:18.442284 wsdl: post-parse data gathering for EnvioRPS 2010-11-23 17:27:18.442328 wsdl: post-parse data gathering for EnvioLoteRPS 2010-11-23 17:27:18.442368 wsdl: post-parse data gathering for TesteEnvioLoteRPS 2010-11-23 17:27:18.442409 wsdl: post-parse data gathering for CancelamentoNFe 2010-11-23 17:27:18.442450 wsdl: post-parse data gathering for ConsultaNFe 2010-11-23 17:27:18.442495 wsdl: post-parse data gathering for ConsultaNFeRecebidas 2010-11-23 17:27:18.442537 wsdl: post-parse data gathering for ConsultaNFeEmitidas 2010-11-23 17:27:18.442578 wsdl: post-parse data gathering for ConsultaLote 2010-11-23 17:27:18.442618 wsdl: post-parse data gathering for ConsultaInformacoesLote 2010-11-23 17:27:18.442659 wsdl: post-parse data gathering for ConsultaCNPJ 2010-11-23 17:27:18.442758 nusoap_client: checkWSDL 2010-11-23 17:27:18.442801 nusoap_client: got 10 operations from wsdl https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?wsdl for binding type soap 2010-11-23 17:27:18.442828 nusoap_client: No data for operation: PedidoEnvioRPS 2010-11-23 17:27:18.442854 nusoap_client: operation 'PedidoEnvioRPS' not present.
*********************************************
*********************************************
 
Valeu!!
 
Ricardo

FerreiraH.

unread,
Nov 23, 2010, 8:53:26 PM11/23/10
to nfe...@googlegroups.com
Voce já percebeu que a nova classe toolsNfePhp.class.php v2 do assembla cria um terceiro certificado .pem e cria automaticamente apartir do pfx
da uma olhada la.

--
Ferreira Helder
B2Stok.net  B2Stok
Voce pode colaborar

Ricardo B.

unread,
Nov 25, 2010, 1:22:14 PM11/25/10
to nfe...@googlegroups.com
Já localizei o erro e passei dessa parte. Obrigado pela dica da v2. Agora estou com um outro problema.. A assinatura digital, aquela que fica no node <Assinatura /> não está correta. Já criei algumas funções com base no manual, mas o erro persiste. Eu vi que rolou o mesmo problema na lista, mas ninguém postou a solução. No manual da prefeitura de sp está assim:
 
...

1º - Monte a string de caracteres conforme a tabela a apresentada anteriormente.

...

Com base no trecho da mensagem XML apresentada, montamos a seguinte string de caracteres:
"31000000OL03 00000000000120070103TNN00000000205000000000000050000002658100013167474254"
 
Note que o valor dos serviços (R$ 20.500,00) foi transformado em 2050000, o valor de deduções (R$ 5.000,00) foi transformado em 500000.
 
Também foi acrescentado à série do RPS um espaço em branco à direita para preencher as 5 posições.
 
2º - Converta a cadeia de caracteres ASCII para bytes.
3º - Gere o HASH (array de bytes) utilizando SHA1.
4º - Assine o HASH (array de bytes) utilizando RSA-SHA1.
 
 
Eis os meus métodos:
 
private function get_byte ($texto) {
 
     $hex_ary = array();
     foreach (str_split($texto) as $chr) {
         $hex_ary[] = sprintf("%02X", ord($chr));
     }
     return implode('', $hex_ary);
}
 
private function assinar_rps ($assinatura) {
   
     $priv_key = file_get_contents($this->privatekey);
     $pkeyid = openssl_get_privatekey(trim($priv_key));
     $dados = $this->get_byte($assinatura);
     $dados = sha1($dados);
   
     openssl_sign($dados, $signature, $pkeyid, OPENSSL_ALGO_SHA1);
   
     return base64_encode($signature);
}
 
Inclusive eu já usei esse outro método alternativo para assinar a rps:
 
private function assinar_rps($assinatura) {
 
        $signatureValue = '';
        $pkeyId = openssl_get_privatekey(file_get_contents($this->privatekey));
       
        openssl_sign($assinatura, $signatureValue, $pkeyId, OPENSSL_ALGO_SHA1);
        openssl_free_key($pkeyId);
   
        return base64_encode($signatureValue);
}
 
E esse é o retorno do ws:
 
<?xml version="1.0" encoding="UTF-8"?>
<RetornoEnvioRPS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.prefeitura.sp.gov.br/nfe">
 <Cabecalho Versao="1" xmlns="">
  <Sucesso>false</Sucesso>
 </Cabecalho>
 <Erro xmlns="">
  <Codigo>1206</Codigo>
  <Descricao>Assinatura Digital do RPS incorreta.</Descricao>
  <ChaveRPS>
   <InscricaoPrestador>31000000</InscricaoPrestador>
   <SerieRPS>OL03</SerieRPS>
   <NumeroRPS>1</NumeroRPS>
  </ChaveRPS>
 </Erro>
</RetornoEnvioRPS>
 
 
Obrigado!
Reply all
Reply to author
Forward
0 new messages