• 26-02-2023, 22:42:30
    #1
    <?php
    ini_set('default_socket_timeout', 5000);
    // SOAP sunucusuna bağlanmak için kullanılacak WSDL adresi
    $wsdl_url = "xxx";
    // SOAP sunucusuna bağlanmak için kullanılacak parametreler
    $options = array(
        'trace' => true,
        'keep_alive' => false,
        'connection_timeout' => 5000,
        'cache_wsdl' => WSDL_CACHE_NONE,
        'compression'   => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE,
    );
    // SOAP sunucusuna bağlan
    $client = new SoapClient($wsdl_url, $options);
    // Hesap detaylarını almak için
    $account_id = 'xxxx'; // Hesap ID'si buraya girilmelidir
    $account_pass = 'xxxx'; // Hesap şifresi buraya girilmelidir
    // getHesapDetaylari yöntemi ile hesap detaylarını al
    $params = array(
        "musteriNo" => $account_id
    );
    $result = $client->__soapCall("getHesapDetaylari", array($params,$account_pass));
    print_r($result);
    arkadaşlar banka soap bağlantısı yapıyorum fakat bu hatayı bir türlü çözemedim

    hata kodu : Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php:32 Stack trace: #0 [internal function]: SoapClient->__doRequest() #1 /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php(32): SoapClient->__soapCall() #2 {main} thrown in /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php on line 32

    link : https://azuz.net/v1/testservice.php
  • 26-02-2023, 22:48:57
    #2
    sheeflamarck adlı üyeden alıntı: mesajı görüntüle
    <?php
    ini_set('default_socket_timeout', 5000);
    // SOAP sunucusuna bağlanmak için kullanılacak WSDL adresi
    $wsdl_url = "xxx";
    // SOAP sunucusuna bağlanmak için kullanılacak parametreler
    $options = array(
        'trace' => true,
        'keep_alive' => false,
        'connection_timeout' => 5000,
        'cache_wsdl' => WSDL_CACHE_NONE,
        'compression'   => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE,
    );
    // SOAP sunucusuna bağlan
    $client = new SoapClient($wsdl_url, $options);
    // Hesap detaylarını almak için
    $account_id = 'xxxx'; // Hesap ID'si buraya girilmelidir
    $account_pass = 'xxxx'; // Hesap şifresi buraya girilmelidir
    // getHesapDetaylari yöntemi ile hesap detaylarını al
    $params = array(
        "musteriNo" => $account_id
    );
    $result = $client->__soapCall("getHesapDetaylari", array($params,$account_pass));
    print_r($result);
    arkadaşlar banka soap bağlantısı yapıyorum fakat bu hatayı bir türlü çözemedim

    hata kodu : Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php:32 Stack trace: #0 [internal function]: SoapClient->__doRequest() #1 /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php(32): SoapClient->__soapCall() #2 {main} thrown in /var/www/vhosts/azuz.net/httpdocs/v1/testservice.php on line 32

    link : https://azuz.net/v1/testservice.php
    soap konusunda ki sıkıntılarınızı çözelim imzadan ulaşın
  • 26-02-2023, 22:50:44
    #3
    Bu hata genelde timeout nedeniyle kaynaklanıyor sunucu veya hostinginizde bulunan socket timeout değeri düşük muhtemelen.

    ini_set('default_socket_timeout', 800);

    Bu kodu php kodunuzun en başına ekleyip deneyin. ( PHP infodanda değerin değişip değişmediğine bakmanızı öneririm )
  • 26-02-2023, 22:53:16
    #4
    Perfection adlı üyeden alıntı: mesajı görüntüle
    Bu hata genelde timeout nedeniyle kaynaklanıyor sunucu veya hostinginizde bulunan socket timeout değeri düşük muhtemelen.

    ini_set('default_socket_timeout', 800);

    Bu kodu php kodunuzun en başına ekleyip deneyin. ( PHP infodanda değerin değişip değişmediğine bakmanızı öneririm )
    try cach de Error Fetching http headers bu hatayı verdıgını goruyoruz, 800 olarak gorukuyor hocam