Skip to content

Instantly share code, notes, and snippets.

View IdenGit's full-sized avatar

Den Kai IdenGit

  • Khazakhstan Almaty
View GitHub Profile
@gknapp
gknapp / wsse.php
Last active March 12, 2022 19:17
Add WSSE support to PHP's soapclient
<?php
class WsseHeader
{
const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
const NS_WSSEPSWD = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';
public function build($username, $password)
{
$header = sprintf(