çözüldü
çözüldü
çözüldü
çözüldü
çözüldü
çözüldü
php soap Could not connect to host hatası
11
●326
- 02-12-2022, 17:38:17hocam orayı kopyalamadım ancak bu kodlarda sayfanın en üstünde mevcutMhmmd adlı üyeden alıntı: mesajı görüntüle
- 02-12-2022, 17:40:45
try { $opts = array( 'http' => array( 'user_agent' => 'PHPSoapClient' ) ); $context = stream_context_create($opts); $wsdlUrl = 'https://www.n11faturam.com/integrationservicewithoutmtom/IntegrationService.asmx?WSDL'; $client = new SoapClient($wsdlUrl, array( 'trace' => 1, 'cache_wsdl' => WSDL_CACHE_NONE, 'stream_context' => stream_context_create(array( 'ssl' => array( 'ciphers'=>'AES256-SHA', // eklediğim kısım burası 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) )) )); $CorporateCode = 'xxx'; $LoginName = 'xxx'; $Password = 'xxx'; $result = $client->GetFormsAuthenticationTicket($CorporateCode,$LoginName,$Password); print_r($result); } catch(Exception $e) { echo $e->getMessage();bunu dener misiniz hocam? - 02-12-2022, 19:22:26
try { $opts = array( 'http' => array( 'user_agent' => 'PHPSoapClient' ) ); $context = stream_context_create($opts); $wsdlUrl = 'https://www.n11faturam.com/integrationservicewithoutmtom/IntegrationService.asmx?WSDL'; $client = new SoapClient($wsdlUrl, array( 'ssl_method' => SOAP_SSL_METHOD_TLS, 'encoding'=>'UTF-8', 'cache_wsdl' => WSDL_CACHE_NONE, 'stream_context'=> stream_context_create( array( 'ssl'=> array( 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, 'ciphers' => 'SHA256', 'verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed' => true ) ) ) ) ); $CorporateCode = 'xxx'; $LoginName = 'xxx'; $Password = 'xxx'; $result = $client->GetFormsAuthenticationTicket($CorporateCode,$LoginName,$Password); print_r($result); } catch(Exception $e) { echo $e->getMessage(); }bir de bunu deneyin hocam. - 02-12-2022, 19:24:27
- 02-12-2022, 19:38:54Enteresan hocam. başka bir çözüm önerim yok maalesef. Ben son zamanlarda soap ile ilgili işlemler için laravel'de aşağıdaki paket ile yapıyorum genelde sorun olmuyor.Kaan adlı üyeden alıntı: mesajı görüntüle
https://github.com/CodeDredd/laravel-soap