6

I'm trying to send a SOAP request via PHP with the following header:

<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 the PHP SOAP functions, I've managed to create a header equivalent to above (using tag prefixes in place of the xmlns attribute) except for the SecureHeader="boolean" bit. Is this possible using PHP's functions?

1 Answer 1

1

You can try to create the headers the raw way.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.