notfalsedev / laravel-soap

A soap client wrapper for Laravel
MIT License
634 stars 122 forks source link

Header Authentication #110

Closed nimeshc64 closed 7 years ago

nimeshc64 commented 7 years ago
<soap:Header>
    <sel:SecurityInfo>
        <!--Optional:-->
        <sel:UserID>'.$serviceUser.'</sel:UserID>
        <!--Optional:-->
        <sel:Password>'.$servicePSW.'</sel:Password>
    </sel:SecurityInfo>
</soap:Header>

i want to use this header authentication in laravel-soap how to do it ??

notfalsedev commented 7 years ago

You need a custom header for that. Here is an example of wsse: https://stackoverflow.com/questions/22361180/create-wsse-auth-soap-call-for-webservices-api-in-php-using-soapclient

Please search the closed issue's there are more examples on how to do so.