Personal Oops, Good Afternoon!
I'm having a hard time consuming a webservice.
Fis is a basic program to consume but is displaying the following error message: "The Request must be informed".
I could not understand what this request would be.
Could you help me?
Follow my source:
$mensagem = array('Emitir' =>array('Aliquota'=>0,
'Atividade'=>1.03,
'CEPPrestacaoServico'=>'',
'ChaveAutenticacao'=>'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
'CidadePrestacaoServico'=>'',
'EnderecoPrestacaoServico'=>'',
'EstadoPrestacaoServico'=>'',
'Homologacao'=>true,
'InformacoesAdicionais'=>'teste de geracao de nota webservice',
'NotificarTomadorPorEmail'=>false,
'NumeroCei'=>0,
'SimplesNacional'=>false,
'SubstituicaoTributaria'=>false,
'CNPJ'=>'',
'CPF'=>'22702816835',
'DDD'=>'11',
'Email'=>'[email protected]',
'Bairro'=>'presidente altino',
'CEP'=>'06216280',
'Cidade'=>'Osasco',
'Complemento'=>'casa',
'Estado'=>'SP',
'Logradouro'=>'teste',
'Numero'=>'123',
'Pais'=>'Brasil',
'TipoLogradouro'=>'Rua',
'InscricaoMunicipal'=>0,
'Nome'=>'Samuel de Vincenzo',
'Telefone'=>'972858650',
'TomadorEstrangeiro'=>false,
'Valor'=>100.00,
'ValorCSLL'=>0.00,
'ValorCofins'=>0.00,
'ValorDeducao'=>0.00,
'ValorINSS'=>0.00,
'ValorIR'=>0.00,
'ValorOutrosImpostos'=>0.00,
'ValorPisPasep'=>0.00,
'ValorRepasse'=>0.00));
$function = 'Emitir';
$options = array('location' => 'https://nfe.osasco.sp.gov.br/EISSNFEWebServices/NotaFiscalEletronica.svc');
$client = new SoapClient('https://nfe.osasco.sp.gov.br/EISSNFEWebServices/NotaFiscalEletronica.svc?Wsdl');
$result = $client->__soapCall($function,$mensagem,$options);
echo 'Response: ';
print_r($result);
Thank you
Samuel