• 02-12-2022, 17:29:32
    #1
    çözüldü
    çözüldü
    çözüldü
    çözüldü
    çözüldü
    çözüldü
  • 02-12-2022, 17:36:38
    #2
    Merhaba hocam. Kodunuzun en üstüne alttaki kodu yazıp dener misiniz?
    ini_set('soap.wsdl_cache_enabled',0);
    ini_set('soap.wsdl_cache_ttl',0);
  • 02-12-2022, 17:38:17
    #3
    Mhmmd adlı üyeden alıntı: mesajı görüntüle
    Merhaba hocam. Kodunuzun en üstüne alttaki kodu yazıp dener misiniz?
    ini_set('soap.wsdl_cache_enabled',0);
    ini_set('soap.wsdl_cache_ttl',0);
    hocam orayı kopyalamadım ancak bu kodlarda sayfanın en üstünde mevcut
  • 02-12-2022, 17:40:45
    #4
    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, 17:43:07
    #5
    maalesef @Mhmmd; hocam aynı hata dönüyor
  • 02-12-2022, 19:22:26
    #6
    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
    #7
    maalesef hocam halen aynı.
    SOAPUI ile hiçbir sorun yok

    Mhmmd adlı üyeden alıntı: mesajı görüntüle
    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:38:54
    #8
    Kaan adlı üyeden alıntı: mesajı görüntüle
    maalesef hocam halen aynı.
    SOAPUI ile hiçbir sorun yok
    Enteresan 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.
    https://github.com/CodeDredd/laravel-soap
  • 03-12-2022, 16:27:35
    #9
    kodunuzda problem gözükmüyor
    kullandığınız sunucudan istek yaptığınız url ye normal yollar ile istek yapabilir musunuz? bunu bir kontrol etmeniz lazım. wget curl vs ile istek düz istek yapmayı deneyin.