Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kaan33's avatar

Php Soap Server Client response and request

hello, I want to do e-invoice related transactions, but I couldn't quite figure out how to do it. There is so much information pollution that I could not figure out which one is correct, how will I connect the url I specified and make a request, thanks in advance.

https://merkeztest.efatura.gov.tr/EFaturaMerkez/services/EFatura?wsdl

Turkish

https://ebelge.gib.gov.tr/dosyalar/kilavuzlar/e-FaturaTestPlani.pdf

translated document

https://docdro.id/OKe6MGe
0 likes
3 replies
Sinnbeck's avatar

Is there any documentation for that e-invoice service? Or does it just say "Connect using Soap"

Do you have any code so far?

Kaan33's avatar

@Sinnbeck You can access the documents from the address above. I've been searching for a month, but I couldn't find a solution.

Sinnbeck's avatar

@Kaan33 Sorry but I cant read that. But a simple soap call

$url = 'https://merkeztest.efatura.gov.tr/EFaturaMerkez/services/EFatura?wsdl';
$params = []; //add whatever parameters you need to send.
$client     = new SoapClient($url);
$response = $client->__soapCall("SomeFunction", array($params));
dd($response);

Please or to participate in this conversation.