Answer the question
In order to leave comments, you need to log in
How to correctly add attributes to a SOAP request using SoapVar?
It is necessary to generate such XML by means through SoapClient. Remote wsdl service does not provide.
<sys:Test attr1="val1" attr2="val2" xmlns:sys="http://www.test.com/schema/system_v1">
<sys:Val attr="val">blablabla</sys:Val>
</sys:Test>
$tag[]['_'] = 'yyy';
$tag[]['attr'] = 'xxx';
$tagVar = new SoapVar($tag, SOAP_ENC_OBJECT);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question