• 06-04-2023, 21:41:04
    #10
    $xml = '<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:envgen="http://soapenvelopegenerator.eduardocastro.info/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'
    .'<soapenv:Header />'
    .'<soapenv:Body>'
    .'<S_AUTHENTICATE_V002Request xmlns="http://www.gubse.com/IFS/SihotServices01.xsd">'
    .'<TransactionID></TransactionID>'
    .'<AuthenticationInfos>'
    .'<user>'.$this->user_name.'</user>'
    .'<password>'.$this->pass.'</password>'
    .'<hotel>1</hotel>'
    .'<hoteldate></hoteldate>'
    .'<useldap></useldap>'
    .'<product></product>'
    .' </AuthenticationInfos>'
    .'</S_AUTHENTICATE_V002Request>'
    .'</soapenv:Body>'
    .'</soapenv:Envelope>';


    $ch = curl_init();
    curl_setopt( $ch, CURLOPT_URL, $this->url );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
    curl_setopt( $ch, CURLOPT_POST, 1 );
    curl_setopt( $ch, CURLOPT_POSTFIELDS, $xml );
    curl_setopt( $ch, CURLOPT_HTTPHEADER,
    [
    "Content-Type: text/xml; charset=UTF-8"
    ]
    );
    $output = curl_exec( $ch );
    return $output;

    Gibi.
  • 07-04-2023, 18:22:43
    #11
    dgknbzglu adlı üyeden alıntı: mesajı görüntüle
    Bu servis şu an çalışmıyor. Test ettim sonuç yok.
    Benden kaynaklı bir problem değilmiş o zaman servis de sorun var
  • 07-04-2023, 18:23:53
    #12
    strong adlı üyeden alıntı: mesajı görüntüle
    Bir örnek paylaşayım, mantığını anladığında her veride kullanabilirsin.

    if (extension_loaded("soap")) {
        echo "SOAP kurulu.";
    } else {
        echo "SOAP kurulu değil.";
    }
    try {
        $request = new SoapClient('https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL');
        $response = $request->TCKimlikNoDogrula(
            array(
                'TCKimlikNo' => 11111111111,
                'Ad' => 'Yxxxxx',
                'Soyad' => 'Axxxx',
                'DogumYili' => 1111
            )
        );
        if ($response->TCKimlikNoDogrulaResult) {
            echo "Bilgiler doğru";
        } else {
            echo "Bilgiler hatalı";
        }
    } catch (Exception $exc) {
        echo $exc->getMessage();
    }
    KPSPublic'i kullanmıştım o çalışıyor "epdk.gov.tr" nin servisi çalışmıyormuş o yüzden yapamamışım
  • 15-08-2023, 23:19:50
    #13
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Üstad bu konuyu bende arastırıyorum epdk servisleri doğru link ler burayı kullanabilirsiniz ama php ile çalışan bir kod örneği bulabilirseniz benimlede paylasırsanız cok sevinirim.
    WSDL adresi için: https://lisansws.epdk.gov.tr/services/bildirimPetrolAkaryakitFiyatlari?wsdl Endpoint adresi için :https://lisansws.epdk.gov.tr/service...Soap11Endpoint