Leaseweb/LswApiCallerBundle

Send a x-wsse header

Closed this issue · 2 comments

I want to sent a x-wsse header, how does this works?

I tried this:

api_caller.options:
    timeout: 10  # maximum transport + execution duration of the call in sec.
    ssl_verifypeer: false  # to stop cURL from verifying the peer's certificate.
    useragent: "LeaseWeb API Caller"  # contents of the "User-Agent: " header.
    followlocation: true  # to follow any "Location: " header that the server sends.
    sslversion: 3  # set to 3 to avoid any bugs that relate to automatic version selection.
    fresh_connect: false  # set to true to force full reconnect every call.
    HTTPHEADER:
        x-wsse: test

Solved!

    HTTPHEADER:
        - 'X-WSSE: UsernameToken Username="username", PasswordDigest="passworddigest", Nonce="none", Created="2014-04-29T19:48:54Z"'

Very good, sorry I did not reply fast. Glad you figured it out yourself.. Kind regards, Maurits