| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function getWSSHeader() |
||
| 32 | { |
||
| 33 | $xml = ' |
||
| 34 | <wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> |
||
| 35 | <wsse:UsernameToken atd:clientId="' . $this->client.'" xmlns:atd="http://api.atdconnect.com/atd"> |
||
| 36 | <wsse:Username>' . $this->user.'</wsse:Username> |
||
| 37 | <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">' . $this->pass.'</wsse:Password> |
||
| 38 | </wsse:UsernameToken> |
||
| 39 | </wsse:Security> |
||
| 40 | '; |
||
| 41 | |||
| 42 | return new \SoapHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', new \SoapVar($xml, XSD_ANYXML), true); |
||
| 43 | } |
||
| 46 |