2
I’m having the following problem to carry out the issuance of invoice:
Unable to handle request. The action 'https://nfe.prefeitura.sp.gov.br/ws/lotenfe.asmx?WSDL' was not recognized.
This is my upload XML:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TesteEnvioLoteRPS xmlns="http://www.prefeitura.sp.gov.br/nfe">
<MensagemXML>...</MensagemXML>
</TesteEnvioLoteRPS>
</soap:Body>
</soap:Envelope>
And these are my CURL settings
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $params['CURLOPT_URL']);
curl_setopt($ch, CURLOPT_PORT , 443);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSLCERT, $params['CURLOPT_SSLCERT']);
curl_setopt($ch, CURLOPT_SSLKEY, $params['CURLOPT_SSLKEY']);
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $params['CURLOPT_SSLCERTPASSWD']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params['CURLOPT_POSTFIELDS']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $params['CURLOPT_HTTPHEADER']);
$output = curl_exec($ch);
Any idea?
What problems?
– rray
When sending is returned: Unable to Handle request. The action 'https://nfe.prefeitura.sp.gov.br/ws/lotenfe.x?WSDL' was not recognized.
– Pablo
how is authentication done in this web service? when I access the url via post in Postman, I get a 403 error, you may need to authenticate yourself
– Renato Tavares
Uhnnn I think I’m missing at this point, but it’s not sure. I’ll check and return.
– Pablo
@Renatotavares, probably the same signature. But I tried another approach using a ready example. Which didn’t solve much, I’m standing here: [http://answall.com/questions/102780/1057-rejei%C3%A7%C3%A3o-signature-differs-do-calculated]
– Pablo