PHP SoapClient Call Method set parameter attributes


I am working on a soap project.
When I test with soap UI I get successful results.
If you look at the codes below, I think I can tell you what I want to do.
But I’m having a problem when I do the operation with PHP. I define the values I send as Array, but I need to define 2 as an XML attribute for a value. I couldn’t do that with Array I wonder if there is another way to do it.

WSDL address
Transaction address

XML I send with Soap UI
    <soapenv:Envelope xmlns:soapenv="......envelope/" xmlns:wsdl="" xmlns:xm="......mlmime">
             <RECEIVER vkn="2930059278" alias="..................."/>

PHP code
        $req = [
                            "REQUEST_HEADER" => [
                                "SESSION_ID" => $sid,
                                "COMPRESSED" => "N"
                                    '_' => '',
        $send = $c->SendInvoice($req);

I can’t figure out how to do the above XML with array in PHP. I searched a lot. I guess PHP doesn’t support it.



I think you answered the message before reading it. Give me the first look at the link you provided and there is no answer regarding this problem.


I did miss a portion. How are you building the XML structure?