Pessoal,
Tenho o seguinte script:
[code]try {
$Client = new SoapClient($ws_url,$ws_options);
$resultado = $Client->__soapCall($funcao, $array_final);
} catch (SoapFault $ex) {
echo ‘
’;’;
var_dump($ex);
echo ‘
}
[/code]
Ao executar, apresenta o erro abaixo, indicando que algo está errado.
Em princípio os parâmetros estão corretos.
Olhando para a listagem abaixo tem como vr algo que indique o que está faltando?
object(SoapFault)#17 (9) {
["message":protected]=>
string(30) "java.lang.NullPointerException"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(118) "C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\cdv\erp_defap_itens_importa\erp_defap_itens_importa_apl.php"
["line":protected]=>
int(2616)
["trace":"Exception":private]=>
array(4) {
[0]=>
array(6) {
["file"]=>
string(118) "C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\cdv\erp_defap_itens_importa\erp_defap_itens_importa_apl.php"
["line"]=>
int(2616)
["function"]=>
string(10) "__soapCall"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(19) "consultarEstoqueGid"
[1]=>
array(1) {
["CONSULTAR_ESTOQUE"]=>
array(3) {
["@attributes"]=>
array(1) {
["Id"]=>
string(8) "CDV00062"
}
["infEstoque"]=>
array(2) {
["CDV"]=>
array(6) {
["COD_CREDENCIADO"]=>
string(8) "CDV00062"
["SENHA_CREDENCIADO"]=>
string(1) "1"
["CNPJ_CREDENCIADO"]=>
string(14) "06350721000108"
["COD_AMBIENTE"]=>
string(1) "2"
["MATR_OPER"]=>
string(1) "1"
["VERSAO_LEIAUTE"]=>
string(1) "1"
}
["COD_ESTOQUE"]=>
string(4) "4176"
}
["Signature"]=>
array(3) {
["SignedInfo"]=>
array(3) {
["CanonicalizationMethod"]=>
array(1) {
["@attributes"]=>
array(1) {
["Algorithm"]=>
string(47) "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
}
}
["SignatureMethod"]=>
array(1) {
["@attributes"]=>
array(1) {
["Algorithm"]=>
string(42) "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
}
}
["Reference"]=>
array(4) {
["@attributes"]=>
array(1) {
["URI"]=>
string(9) "#CDV00062"
}
["Transforms"]=>
array(1) {
["Transform"]=>
array(2) {
[0]=>
array(1) {
["@attributes"]=>
array(1) {
["Algorithm"]=>
string(53) "http://www.w3.org/2000/09/xmldsig#enveloped-signature"
}
}
[1]=>
array(1) {
["@attributes"]=>
array(1) {
["Algorithm"]=>
string(47) "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
}
}
}
}
["DigestMethod"]=>
array(1) {
["@attributes"]=>
array(1) {
["Algorithm"]=>
string(38) "http://www.w3.org/2000/09/xmldsig#sha1"
}
}
["DigestValue"]=>
string(28) "9zJmv3YLE0BOY/oUVrYFqHvqJe8="
}
}
["SignatureValue"]=>
string(344) "Q5X6mRU+QlrNNisiIMVarqtEkPuHdZJr+w"
["KeyInfo"]=>
array(1) {
["X509Data"]=>
array(1) {
["X509Certificate"]=>
string(2728) "MIIH+jCCBeKgAwIBAgIILeZQonbIviowDQYJ"
}
}
}
}
}
}
}
[1]=>
array(6) {
["file"]=>
string(118) "C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\cdv\erp_defap_itens_importa\erp_defap_itens_importa_apl.php"
["line"]=>
int(1495)
["function"]=>
string(7) "importa"
["class"]=>
string(28) "erp_defap_itens_importa_apl"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[2]=>
array(6) {
["file"]=>
string(118) "C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\cdv\erp_defap_itens_importa\erp_defap_itens_importa_apl.php"
["line"]=>
int(1035)
["function"]=>
string(13) "Valida_campos"
["class"]=>
string(28) "erp_defap_itens_importa_apl"
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
&NULL
[1]=>
&NULL
[2]=>
&NULL
}
}
[3]=>
array(6) {
["file"]=>
string(95) "C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\app\cdv\erp_defap_itens_importa\index.php"
["line"]=>
int(1567)
["function"]=>
string(8) "controle"
["class"]=>
string(28) "erp_defap_itens_importa_apl"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
["previous":"Exception":private]=>
NULL
["faultstring"]=>
string(30) "java.lang.NullPointerException"
["faultcode"]=>
string(11) "soap:Server"
Obs: para não ficar muito extenso o código, eu cortei os dados da assinatura/certificado