Im building a SOAP client that consumes from a SOAP web services in a Drupal 8 module.
I need to generate this final XML:
$inpunt_data = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:qual="http://websoap.com/">
<soapenv:Header/>
<soapenv:Body>
<qual:myMethod>
<!--Optional:-->
<qual:xmlMethod><![CDATA[
<Tag>
</Tag>
</qual:Method>';
How do I generate soapenv headers?
I'm using simplexml:
$getXML = new SimpleXMLElement($input_data);
$urlTarifa = 'http://soapurl.com?wsdl';
$client = new SoapClient($urlTarifa);