$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.
SOAP WSDL postman ile nasıl kullanılır
12
●272
- 06-04-2023, 21:41:04
- 07-04-2023, 18:22:43Benden kaynaklı bir problem değilmiş o zaman servis de sorun vardgknbzglu adlı üyeden alıntı: mesajı görüntüle
- 07-04-2023, 18:23:53KPSPublic'i kullanmıştım o çalışıyor "epdk.gov.tr" nin servisi çalışmıyormuş o yüzden yapamamışımstrong adlı üyeden alıntı: mesajı görüntüle
- 15-08-2023, 23:19:50Kimlik 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