Ferreira,
Veja o debug do envio, colocando uma linha no ToolsNFePHP assim:
print $this->soapDebug;
Note o que destaco em vermelho: (alguma dica????)
2010-12-16 20:55:24.717526 nusoap_client: ctor wsdl=1 timeout=0 response_timeout=30
endpoint=string(83) "
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL"
2010-12-16 20:55:24.717585 nusoap_client: will use lazy evaluation of wsdl from
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL
2010-12-16 20:55:24.717650 nusoap_client: call: operation=nfeRecepcaoLote, namespace=
http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(2) {
["nfeCabecMsg"]=>
string(147) "<?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg>"
["nfeDadosMsg"]=>
string(196) "<enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe>"
}
headers=bool(false)
2010-12-16 20:55:24.717696 nusoap_client: instantiating wsdl class with doc:
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL
2010-12-16 20:55:24.717764 wsdl: ctor wsdl= timeout=0 response_timeout=30
2010-12-16 20:55:24.717801 wsdl: parse and process WSDL path=
2010-12-16 20:55:24.717848 wsdl: setCredentials username= authtype=certificate certRequest=
array(6) {
["sslkeyfile"]=>
string(65) "/Library/WebServer/Documents/nfephp_tutorial/certs/privatekey.pem"
["sslcertfile"]=>
string(64) "/Library/WebServer/Documents/nfephp_tutorial/certs/publickey.pem"
["passphrase"]=>
string(0) ""
["verifypeer"]=>
bool(false)
["verifyhost"]=>
bool(false)
["trace"]=>
int(1)
}
2010-12-16 20:55:24.717889 wsdl: parse and process WSDL path=
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL
2010-12-16 20:55:24.717922 wsdl: parse WSDL at path=
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL
2010-12-16 20:55:24.717954 wsdl: getting WSDL http(s) URL
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL
2010-12-16 20:55:24.718100 soap_transport_http: ctor url=
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL use_curl= curl_options:
array(0) {
}
2010-12-16 20:55:24.718144 soap_transport_http: parsed URL scheme = https
2010-12-16 20:55:24.718169 soap_transport_http: parsed URL host =
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:24.718193 soap_transport_http: parsed URL path = /ws/nferecepcao/NfeRecepcao.asmx
2010-12-16 20:55:24.718216 soap_transport_http: parsed URL query = WSDL
2010-12-16 20:55:24.718248 soap_transport_http: set header Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:24.718292 soap_transport_http: set header User-Agent: NuSOAP/0.7.3 (1.114)
2010-12-16 20:55:24.718332 soap_transport_http: setCredentials username= authtype=certificate digestRequest=
array(0) {
}
2010-12-16 20:55:24.718362 soap_transport_http: certRequest=
array(6) {
["sslkeyfile"]=>
string(65) "/Library/WebServer/Documents/nfephp_tutorial/certs/privatekey.pem"
["sslcertfile"]=>
string(64) "/Library/WebServer/Documents/nfephp_tutorial/certs/publickey.pem"
["passphrase"]=>
string(0) ""
["verifypeer"]=>
bool(false)
["verifyhost"]=>
bool(false)
["trace"]=>
int(1)
}
2010-12-16 20:55:24.718398 soap_transport_http: Authorization header not set for certificate
2010-12-16 20:55:24.718428 soap_transport_http: set header Accept-Encoding: gzip, deflate
2010-12-16 20:55:24.718455 soap_transport_http: set header Connection: close
2010-12-16 20:55:24.718487 soap_transport_http: entered send() with data of length: 0
2010-12-16 20:55:24.718530 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host
homologacao.nfe.sefazvirtual.rs.gov.br, port 443
2010-12-16 20:55:24.718570 soap_transport_http: connect using cURL
2010-12-16 20:55:24.718617 soap_transport_http: setCurlOption option=10002, value=
string(87) "
https://homologacao.nfe.sefazvirtual.rs.gov.br:443/ws/nferecepcao/NfeRecepcao.asmx?WSDL"
2010-12-16 20:55:24.718657 soap_transport_http: setCurlOption option=52, value=
int(1)
2010-12-16 20:55:24.718689 soap_transport_http: setCurlOption option=42, value=
int(1)
2010-12-16 20:55:24.718719 soap_transport_http: setCurlOption option=19913, value=
int(1)
2010-12-16 20:55:24.718757 soap_transport_http: setCurlOption option=13, value=
int(30)
2010-12-16 20:55:24.718787 soap_transport_http: set cURL SSL verify options
2010-12-16 20:55:24.718810 soap_transport_http: setCurlOption option=64, value=
int(0)
2010-12-16 20:55:24.718839 soap_transport_http: setCurlOption option=81, value=
int(0)
2010-12-16 20:55:24.718868 soap_transport_http: set cURL certificate options
2010-12-16 20:55:24.718894 soap_transport_http: setCurlOption option=64, value=
bool(false)
2010-12-16 20:55:24.718925 soap_transport_http: setCurlOption option=81, value=
bool(false)
2010-12-16 20:55:24.718956 soap_transport_http: setCurlOption option=10025, value=
string(64) "/Library/WebServer/Documents/nfephp_tutorial/certs/publickey.pem"
2010-12-16 20:55:24.718988 soap_transport_http: setCurlOption option=10087, value=
string(65) "/Library/WebServer/Documents/nfephp_tutorial/certs/privatekey.pem"
2010-12-16 20:55:24.719023 soap_transport_http: setCurlOption option=10026, value=
string(0) ""
2010-12-16 20:55:24.719055 soap_transport_http: cURL connection set up
2010-12-16 20:55:24.719088 soap_transport_http: set header Content-Length: 0
2010-12-16 20:55:24.719113 soap_transport_http: HTTP request: GET /ws/nferecepcao/NfeRecepcao.asmx?WSDL HTTP/1.1
2010-12-16 20:55:24.719138 soap_transport_http: HTTP header: Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:24.719161 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.3 (1.114)
2010-12-16 20:55:24.719185 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
2010-12-16 20:55:24.719207 soap_transport_http: HTTP header: Connection: close
2010-12-16 20:55:24.719231 soap_transport_http: HTTP header: Content-Length: 0
2010-12-16 20:55:24.719262 soap_transport_http: Skip cURL header Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:24.719290 soap_transport_http: Skip cURL header Connection: close
2010-12-16 20:55:24.719314 soap_transport_http: Skip cURL header Content-Length: 0
2010-12-16 20:55:24.719338 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-12-16 20:55:24.719373 soap_transport_http: set cURL HTTP headers
2010-12-16 20:55:24.719399 soap_transport_http: set cURL payload
2010-12-16 20:55:24.719436 soap_transport_http: send and receive with cURL
2010-12-16 20:55:27.240091 soap_transport_http: No cURL error, closing cURL
2010-12-16 20:55:27.240818 soap_transport_http: found proper separation of headers and document
2010-12-16 20:55:27.240851 soap_transport_http: cleaned data, stringlen: 3418
2010-12-16 20:55:27.240981 soap_transport_http: No Content-Encoding header
2010-12-16 20:55:27.241014 soap_transport_http: end of send()
2010-12-16 20:55:27.241058 wsdl: got WSDL URL
2010-12-16 20:55:27.241081 wsdl: Parse WSDL
2010-12-16 20:55:27.241408 wsdl: Parsing WSDL schema
2010-12-16 20:55:27.241481 nusoap_xmlschema: nusoap_xmlschema class instantiated, inside constructor
2010-12-16 20:55:27.241663 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing untyped element nfeRecepcaoLote type _nfeRecepcaoLote_ContainedType
2010-12-16 20:55:27.241695 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> add element nfeRecepcaoLote to elements array
2010-12-16 20:55:27.241767 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing unnamed complexType for element nfeRecepcaoLote named _nfeRecepcaoLote_ContainedType
2010-12-16 20:55:27.241897 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing typed element nfeCabecMsg of type
http://www.w3.org/2001/XMLSchema:string
2010-12-16 20:55:27.241933 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> add element nfeCabecMsg to complexType _nfeRecepcaoLote_ContainedType
2010-12-16 20:55:27.241985 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing element nfeCabecMsg
2010-12-16 20:55:27.242072 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing typed element nfeDadosMsg of type
http://www.w3.org/2001/XMLSchema:string
2010-12-16 20:55:27.242106 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> add element nfeDadosMsg to complexType _nfeRecepcaoLote_ContainedType
2010-12-16 20:55:27.242157 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing element nfeDadosMsg
2010-12-16 20:55:27.242225 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing complexType _nfeRecepcaoLote_ContainedType
2010-12-16 20:55:27.242274 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing element nfeRecepcaoLote
2010-12-16 20:55:27.242428 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing untyped element nfeRecepcaoLoteResponse type _nfeRecepcaoLoteResponse_ContainedType
2010-12-16 20:55:27.242459 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> add element nfeRecepcaoLoteResponse to elements array
2010-12-16 20:55:27.242526 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing unnamed complexType for element nfeRecepcaoLoteResponse named _nfeRecepcaoLoteResponse_ContainedType
2010-12-16 20:55:27.242650 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> processing typed element nfeRecepcaoLoteResult of type
http://www.w3.org/2001/XMLSchema:string
2010-12-16 20:55:27.242685 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> add element nfeRecepcaoLoteResult to complexType _nfeRecepcaoLoteResponse_ContainedType
2010-12-16 20:55:27.242735 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing element nfeRecepcaoLoteResult
2010-12-16 20:55:27.242802 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing complexType _nfeRecepcaoLoteResponse_ContainedType
2010-12-16 20:55:27.242851 nusoap_xmlschema: <
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao> done processing element nfeRecepcaoLoteResponse
2010-12-16 20:55:27.242899 wsdl: Parsing WSDL schema done
2010-12-16 20:55:27.243024 wsdl: msg nfeRecepcaoLoteSoapIn: found part (with element) parameters: parameters,
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote
2010-12-16 20:55:27.243157 wsdl: msg nfeRecepcaoLoteSoapOut: found part (with element) parameters: parameters,
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLoteResponse
2010-12-16 20:55:27.243274 wsdl: portType NfeRecepcaoSoap operation: nfeRecepcaoLote
2010-12-16 20:55:27.243487 wsdl: current binding: NfeRecepcaoSoap of portType:
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:NfeRecepcaoSoap
2010-12-16 20:55:27.243600 wsdl: current binding operation: nfeRecepcaoLote
2010-12-16 20:55:27.243921 wsdl: current binding: NfeRecepcaoSoap12 of portType:
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:NfeRecepcaoSoap
2010-12-16 20:55:27.244036 wsdl: current binding operation: nfeRecepcaoLote
2010-12-16 20:55:27.244329 wsdl: current service: NfeRecepcao
2010-12-16 20:55:27.244410 wsdl: current port: NfeRecepcaoSoap
2010-12-16 20:55:27.244547 wsdl: current port: NfeRecepcaoSoap12
2010-12-16 20:55:27.244672 wsdl: Parsing WSDL done
2010-12-16 20:55:27.244722 wsdl: post-parse data gathering for nfeRecepcaoLote
2010-12-16 20:55:27.244791 wsdl: post-parse data gathering for nfeRecepcaoLote
2010-12-16 20:55:27.244863 nusoap_client: checkWSDL
2010-12-16 20:55:27.244904 nusoap_client: got 1 operations from wsdl
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx?WSDL for binding type soap
2010-12-16 20:55:27.244938 nusoap_client: found operation
opData=array(9) {
["name"]=>
string(15) "nfeRecepcaoLote"
["binding"]=>
string(15) "NfeRecepcaoSoap"
["endpoint"]=>
string(78) "
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx"
["soapAction"]=>
string(67) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote"
["style"]=>
string(8) "document"
["input"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(21) "nfeRecepcaoLoteSoapIn"
["parts"]=>
array(1) {
["parameters"]=>
string(68) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote^"
}
}
["output"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(22) "nfeRecepcaoLoteSoapOut"
["parts"]=>
array(1) {
["parameters"]=>
string(76) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLoteResponse^"
}
}
["transport"]=>
string(36) "
http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2010-12-16 20:55:27.245016 nusoap_client: serializing param array for WSDL operation nfeRecepcaoLote
2010-12-16 20:55:27.245044 wsdl: in serializeRPCParameters: operation=nfeRecepcaoLote, direction=input, XMLSchemaVersion=
http://www.w3.org/2001/XMLSchema, bindingType=soap
parameters=array(2) {
["nfeCabecMsg"]=>
string(147) "<?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg>"
["nfeDadosMsg"]=>
string(196) "<enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe>"
}
2010-12-16 20:55:27.245093 wsdl: in serializeRPCParameters: opData:
array(9) {
["name"]=>
string(15) "nfeRecepcaoLote"
["binding"]=>
string(15) "NfeRecepcaoSoap"
["endpoint"]=>
string(78) "
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx"
["soapAction"]=>
string(67) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote"
["style"]=>
string(8) "document"
["input"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(21) "nfeRecepcaoLoteSoapIn"
["parts"]=>
array(1) {
["parameters"]=>
string(68) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote^"
}
}
["output"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(22) "nfeRecepcaoLoteSoapOut"
["parts"]=>
array(1) {
["parameters"]=>
string(76) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLoteResponse^"
}
}
["transport"]=>
string(36) "
http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2010-12-16 20:55:27.245150 wsdl: have 1 part(s) to serialize using document/literal
2010-12-16 20:55:27.245180 wsdl: have 2 parameter(s) provided as arrayStruct to serialize
2010-12-16 20:55:27.245203 wsdl: check whether the caller has wrapped the parameters
2010-12-16 20:55:27.245226 wsdl: check whether caller's parameters match the wrapped ones
2010-12-16 20:55:27.245250 wsdl: in parametersMatchWrapped type=
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote^, parameters=
array(2) {
["nfeCabecMsg"]=>
string(147) "<?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg>"
["nfeDadosMsg"]=>
string(196) "<enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe>"
}
2010-12-16 20:55:27.245286 wsdl: in parametersMatchWrapped: got a prefixed type: nfeRecepcaoLote^,
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245313 wsdl: in getTypeDef: type=nfeRecepcaoLote^, ns=
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245339 wsdl: in getTypeDef: have schema for namespace
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245503 wsdl: in parametersMatchWrapped: found typeDef=
array(6) {
["name"]=>
string(15) "nfeRecepcaoLote"
["form"]=>
string(9) "qualified"
["type"]=>
string(82) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:_nfeRecepcaoLote_ContainedType"
["typeClass"]=>
string(7) "element"
["phpType"]=>
string(6) "struct"
["elements"]=>
array(2) {
["nfeCabecMsg"]=>
array(5) {
["minOccurs"]=>
string(1) "0"
["maxOccurs"]=>
string(1) "1"
["name"]=>
string(11) "nfeCabecMsg"
["type"]=>
string(39) "
http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(9) "qualified"
}
["nfeDadosMsg"]=>
array(5) {
["minOccurs"]=>
string(1) "0"
["maxOccurs"]=>
string(1) "1"
["name"]=>
string(11) "nfeDadosMsg"
["type"]=>
string(39) "
http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(9) "qualified"
}
}
}
2010-12-16 20:55:27.245553 wsdl: in parametersMatchWrapped: uqType: nfeRecepcaoLote, ns:
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao, phptype: struct, arrayType:
2010-12-16 20:55:27.245587 wsdl: in parametersMatchWrapped: have parameter named nfeCabecMsg
2010-12-16 20:55:27.245611 wsdl: in parametersMatchWrapped: have parameter named nfeDadosMsg
2010-12-16 20:55:27.245635 wsdl: in parametersMatchWrapped: 2 parameter names match 2 wrapped parameter names
2010-12-16 20:55:27.245658 wsdl: wrap the parameters for the caller
2010-12-16 20:55:27.245681 wsdl: serializing part parameters of type
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote^
2010-12-16 20:55:27.245705 wsdl: calling serializeType w/named param
2010-12-16 20:55:27.245731 wsdl: in serializeType: name=parameters, type=
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote^, use=literal, encodingStyle=, unqualified=qualified
value=array(2) {
["nfeCabecMsg"]=>
string(147) "<?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg>"
["nfeDadosMsg"]=>
string(196) "<enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe>"
}
2010-12-16 20:55:27.245769 wsdl: in serializeType: got a prefixed type: nfeRecepcaoLote^,
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245796 wsdl: in getTypeDef: type=nfeRecepcaoLote^, ns=
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245819 wsdl: in getTypeDef: have schema for namespace
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao
2010-12-16 20:55:27.245876 wsdl: in serializeType: found typeDef
typeDef=array(6) {
["name"]=>
string(15) "nfeRecepcaoLote"
["form"]=>
string(9) "qualified"
["type"]=>
string(82) "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:_nfeRecepcaoLote_ContainedType"
["typeClass"]=>
string(7) "element"
["phpType"]=>
string(6) "struct"
["elements"]=>
array(2) {
["nfeCabecMsg"]=>
array(5) {
["minOccurs"]=>
string(1) "0"
["maxOccurs"]=>
string(1) "1"
["name"]=>
string(11) "nfeCabecMsg"
["type"]=>
string(39) "
http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(9) "qualified"
}
["nfeDadosMsg"]=>
array(5) {
["minOccurs"]=>
string(1) "0"
["maxOccurs"]=>
string(1) "1"
["name"]=>
string(11) "nfeDadosMsg"
["type"]=>
string(39) "
http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(9) "qualified"
}
}
}
2010-12-16 20:55:27.245925 wsdl: in serializeType: uqType: nfeRecepcaoLote, ns:
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao, phptype: struct, arrayType:
2010-12-16 20:55:27.245956 wsdl: no attributes to serialize for XML Schema type
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote
2010-12-16 20:55:27.245987 wsdl: in serializeComplexTypeElements, serialize elements for XML Schema type
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao:nfeRecepcaoLote
2010-12-16 20:55:27.246022 wsdl: in serializeType: name=nfeCabecMsg, type=
http://www.w3.org/2001/XMLSchema:string, use=literal, encodingStyle=, unqualified=qualified
value=string(147) "<?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg>"
2010-12-16 20:55:27.246058 wsdl: in serializeType: got a prefixed type: string,
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246082 wsdl: in serializeType: type namespace indicates XML Schema or SOAP Encoding type
2010-12-16 20:55:27.246125 wsdl: in getTypeDef: type=string, ns=
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246152 wsdl: in getTypeDef: do not have schema for namespace
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246177 wsdl: in serializeType: returning: <nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg>
2010-12-16 20:55:27.246209 wsdl: in serializeType: name=nfeDadosMsg, type=
http://www.w3.org/2001/XMLSchema:string, use=literal, encodingStyle=, unqualified=qualified
value=string(196) "<enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe>"
2010-12-16 20:55:27.246243 wsdl: in serializeType: got a prefixed type: string,
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246267 wsdl: in serializeType: type namespace indicates XML Schema or SOAP Encoding type
2010-12-16 20:55:27.246305 wsdl: in getTypeDef: type=string, ns=
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246331 wsdl: in getTypeDef: do not have schema for namespace
http://www.w3.org/2001/XMLSchema
2010-12-16 20:55:27.246355 wsdl: in serializeType: returning: <nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg>
2010-12-16 20:55:27.246385 wsdl: in serializeType: returning: <nfeRecepcaoLote xmlns="
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao"><nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg><nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg></nfeRecepcaoLote>
2010-12-16 20:55:27.246412 wsdl: serializeRPCParameters returning: <nfeRecepcaoLote xmlns="
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao"><nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg><nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg></nfeRecepcaoLote>
2010-12-16 20:55:27.246459 nusoap_client: In serializeEnvelope length=626 body (max 1000 characters)=<nfeRecepcaoLote xmlns="
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao"><nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg><nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg></nfeRecepcaoLote> style=document use=literal encodingStyle=
2010-12-16 20:55:27.246483 nusoap_client: headers:
bool(false)
2010-12-16 20:55:27.246511 nusoap_client: namespaces:
array(1) {
["ns3708"]=>
string(18) "
http://tempuri.org"
}
2010-12-16 20:55:27.246559 nusoap_client: endpoint=
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx, soapAction=
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote, namespace=
http://tempuri.org, style=document, use=literal, encodingStyle=
2010-12-16 20:55:27.246586 nusoap_client: SOAP message length=985 contents (max 1000 bytes)=<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3708="
http://tempuri.org"><SOAP-ENV:Body><nfeRecepcaoLote xmlns="
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao"><nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg><nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg></nfeRecepcaoLote></SOAP-ENV:Body></SOAP-ENV:Envelope>
2010-12-16 20:55:27.246621 nusoap_client: transporting via HTTP
2010-12-16 20:55:27.246988 nusoap_client: sending message, length=985
2010-12-16 20:55:27.246660 soap_transport_http: ctor url=
https://homologacao.nfe.sefazvirtual.rs.gov.br/ws/nferecepcao/NfeRecepcao.asmx use_curl= curl_options:
array(0) {
}
2010-12-16 20:55:27.246697 soap_transport_http: parsed URL scheme = https
2010-12-16 20:55:27.246721 soap_transport_http: parsed URL host =
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:27.246743 soap_transport_http: parsed URL path = /ws/nferecepcao/NfeRecepcao.asmx
2010-12-16 20:55:27.246773 soap_transport_http: set header Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:27.246810 soap_transport_http: set header User-Agent: NuSOAP/0.7.3 (1.114)
2010-12-16 20:55:27.246841 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2010-12-16 20:55:27.246869 soap_transport_http: set header SOAPAction: "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote"
2010-12-16 20:55:27.246898 soap_transport_http: setCredentials username= authtype=certificate digestRequest=
array(0) {
}
2010-12-16 20:55:27.246926 soap_transport_http: certRequest=
array(6) {
["sslkeyfile"]=>
string(65) "/Library/WebServer/Documents/nfephp_tutorial/certs/privatekey.pem"
["sslcertfile"]=>
string(64) "/Library/WebServer/Documents/nfephp_tutorial/certs/publickey.pem"
["passphrase"]=>
string(0) ""
["verifypeer"]=>
bool(false)
["verifyhost"]=>
bool(false)
["trace"]=>
int(1)
}
2010-12-16 20:55:27.246961 soap_transport_http: Authorization header not set for certificate
2010-12-16 20:55:27.247018 soap_transport_http: entered send() with data of length: 985
2010-12-16 20:55:27.247047 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host
homologacao.nfe.sefazvirtual.rs.gov.br, port 443
2010-12-16 20:55:27.247085 soap_transport_http: connect using cURL
2010-12-16 20:55:27.247129 soap_transport_http: setCurlOption option=10002, value=
string(82) "
https://homologacao.nfe.sefazvirtual.rs.gov.br:443/ws/nferecepcao/NfeRecepcao.asmx"
2010-12-16 20:55:27.247175 soap_transport_http: setCurlOption option=52, value=
int(1)
2010-12-16 20:55:27.247206 soap_transport_http: setCurlOption option=42, value=
int(1)
2010-12-16 20:55:27.247236 soap_transport_http: setCurlOption option=19913, value=
int(1)
2010-12-16 20:55:27.247267 soap_transport_http: setCurlOption option=13, value=
int(30)
2010-12-16 20:55:27.247296 soap_transport_http: set cURL SSL verify options
2010-12-16 20:55:27.247319 soap_transport_http: setCurlOption option=64, value=
int(0)
2010-12-16 20:55:27.247349 soap_transport_http: setCurlOption option=81, value=
int(0)
2010-12-16 20:55:27.247377 soap_transport_http: set cURL certificate options
2010-12-16 20:55:27.247403 soap_transport_http: setCurlOption option=64, value=
bool(false)
2010-12-16 20:55:27.247434 soap_transport_http: setCurlOption option=81, value=
bool(false)
2010-12-16 20:55:27.247465 soap_transport_http: setCurlOption option=10025, value=
string(64) "/Library/WebServer/Documents/nfephp_tutorial/certs/publickey.pem"
2010-12-16 20:55:27.247498 soap_transport_http: setCurlOption option=10087, value=
string(65) "/Library/WebServer/Documents/nfephp_tutorial/certs/privatekey.pem"
2010-12-16 20:55:27.247530 soap_transport_http: setCurlOption option=10026, value=
string(0) ""
2010-12-16 20:55:27.247562 soap_transport_http: cURL connection set up
2010-12-16 20:55:27.247602 soap_transport_http: set header Content-Length: 985
2010-12-16 20:55:27.247628 soap_transport_http: HTTP request: POST /ws/nferecepcao/NfeRecepcao.asmx HTTP/1.0
2010-12-16 20:55:27.247653 soap_transport_http: HTTP header: Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:27.247677 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.3 (1.114)
2010-12-16 20:55:27.247701 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2010-12-16 20:55:27.247725 soap_transport_http: HTTP header: SOAPAction: "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote"
2010-12-16 20:55:27.247749 soap_transport_http: HTTP header: Content-Length: 985
2010-12-16 20:55:27.247780 soap_transport_http: Skip cURL header Host:
homologacao.nfe.sefazvirtual.rs.gov.br
2010-12-16 20:55:27.247809 soap_transport_http: Skip cURL header Content-Length: 985
2010-12-16 20:55:27.247834 soap_transport_http: setCurlOption option=10023, value=
array(3) {
[0]=>
string(32) "User-Agent: NuSOAP/0.7.3 (1.114)"
[1]=>
string(37) "Content-Type: text/xml; charset=UTF-8"
[2]=>
string(81) "SOAPAction: "
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao/nfeRecepcaoLote""
}
2010-12-16 20:55:27.247870 soap_transport_http: set cURL HTTP headers
2010-12-16 20:55:27.247899 soap_transport_http: setCurlOption option=47, value=
int(1)
2010-12-16 20:55:27.247930 soap_transport_http: setCurlOption option=10015, value=
string(985) "<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3708="
http://tempuri.org"><SOAP-ENV:Body><nfeRecepcaoLote xmlns="
http://www.portalfiscal.inf.br/nfe/wsdl/NfeRecepcao"><nfeCabecMsg><?xml version="1.0" encoding="utf-8"?><cabecMsg versao="1.02" xmlns="
http://www.portalfiscal.inf.br/nfe"><versaoDados>1.10</versaoDados></cabecMsg></nfeCabecMsg><nfeDadosMsg><enviNFe xmlns="
http://www.portalfiscal.inf.br/nfe" xmlns:ds="
http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" versao="1.10"><idLote>254</idLote></enviNFe></nfeDadosMsg></nfeRecepcaoLote></SOAP-ENV:Body></SOAP-ENV:Envelope>"
2010-12-16 20:55:27.247962 soap_transport_http: set cURL POST data
2010-12-16 20:55:27.247984 soap_transport_http: set cURL payload
2010-12-16 20:55:27.248013 soap_transport_http: send and receive with cURL
2010-12-16 20:55:29.184928 soap_transport_http: No cURL error, closing cURL
2010-12-16 20:55:29.185516 soap_transport_http: found proper separation of headers and document
2010-12-16 20:55:29.185550 soap_transport_http: cleaned data, stringlen: 767
2010-12-16 20:55:29.185628 soap_transport_http: No Content-Encoding header
2010-12-16 20:55:29.185658 soap_transport_http: end of send()
2010-12-16 20:55:29.185708 nusoap_client: got response, length=767 type=text/xml; charset=utf-8
2010-12-16 20:55:29.185741 nusoap_client: Entering parseResponse() for data of length 767 headers:
array(7) {
["date"]=>
string(29) "Thu, 16 Dec 2010 22:55:29 GMT"
["server"]=>
string(17) "Microsoft-IIS/6.0"
["x-powered-by"]=>
string(7) "
ASP.NET"
["x-aspnet-version"]=>
string(9) "2.0.50727"
["cache-control"]=>
string(18) "private, max-age=0"
["content-type"]=>
string(23) "text/xml; charset=utf-8"
["content-length"]=>
string(3) "767"
}
2010-12-16 20:55:29.185794 nusoap_client: Got response encoding: utf-8
2010-12-16 20:55:29.185829 nusoap_client: Use encoding: UTF-8 when creating nusoap_parser
2010-12-16 20:55:29.185915 nusoap_parser: Charset from HTTP Content-Type matches encoding from XML declaration
2010-12-16 20:55:29.185942 nusoap_parser: Entering nusoap_parser(), length=767, encoding=UTF-8
2010-12-16 20:55:29.186142 nusoap_parser: found root struct nfeRecepcaoLoteResponse, pos 2
2010-12-16 20:55:29.186478 nusoap_parser: in buildVal() for nfeRecepcaoLoteResponse(pos 2) of type struct
2010-12-16 20:55:29.186506 nusoap_parser: in buildVal, there are children
2010-12-16 20:55:29.186538 nusoap_parser: in buildVal, adding Java Vector or generic compound type nfeRecepcaoLoteResponse
2010-12-16 20:55:29.186575 nusoap_parser: in buildVal, return:
array(1) {
["nfeRecepcaoLoteResult"]=>
&string(285) "<?xml version="1.0" encoding="utf-8"?><retEnviNFe versao="1.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tpAmb>2</tpAmb><verAplic>SVRS20100210155347</verAplic><cStat>226</cStat><xMotivo>Rejeicao: Codigo da UF do Emitente diverge da UF autorizadora</xMotivo>
<cUF>0</cUF></retEnviNFe>"
}
2010-12-16 20:55:29.186646 nusoap_parser: parsed successfully, found root struct: 2 of name nfeRecepcaoLoteResponse
2010-12-16 20:55:29.186735 nusoap_client: sent message successfully and got a(n) array
return=array(1) {
["nfeRecepcaoLoteResult"]=>
string(285) "<?xml version="1.0" encoding="utf-8"?><retEnviNFe versao="1.10" xmlns="
http://www.portalfiscal.inf.br/nfe"><tpAmb>2</tpAmb><verAplic>SVRS20100210155347</verAplic><cStat>226</cStat><xMotivo>Rejeicao: Codigo da UF do Emitente diverge da UF autorizadora</xMotivo><cUF>0</cUF></retEnviNFe>"
}
FALHA no envio !! cStat : 226Motivo : Rejeicao: Codigo da UF do Emitente diverge da UF autorizadora