Setting the SOAP Header Tag Attribute in PHP

I am trying to send a SOAP request via PHP with the following heading:

<soap:Header> <SecureSoapHeader SecureHeader="boolean" xmlns="http://www.capitafhe.co.uk/UNIT-e/"> <settings> <Database>string</Database> <UserName>string</UserName> <Password>string</Password> </settings> <Database>string</Database> <UserName>string</UserName> <Password>string</Password> </SecureSoapHeader> </soap:Header> 

Using PHP SOAP functions, I was able to create the equivalent header above (using tag prefixes instead of the xmlns attribute), with the exception of the SecureHeader="boolean" bit. Is this possible using PHP functions?

+6
source share
1 answer

You can try to create headings in a raw way.

Here is an example: http://www.php.net/manual/en/soapheader.soapheader.php#83026

+1
source

Source: https://habr.com/ru/post/906879/


All Articles