| @@ 57-60 (lines=4) @@ | ||
| 54 | if ($this->header == NULL) {
|
|
| 55 | $headers = $this->SOAPXPath->query('//wssoap:Envelope/wssoap:Header');
|
|
| 56 | $header = $headers->item(0); |
|
| 57 | if (! $header) {
|
|
| 58 | $header = $this->soapDoc->createElementNS($this->soapNS, $this->soapPFX.':Header'); |
|
| 59 | $this->envelope->insertBefore($header, $this->envelope->firstChild); |
|
| 60 | } |
|
| 61 | $this->header = $header; |
|
| 62 | } |
|
| 63 | return $this->header; |
|
| @@ 62-65 (lines=4) @@ | ||
| 59 | if ($this->secNode == NULL) {
|
|
| 60 | $headers = $this->SOAPXPath->query('//wssoap:Envelope/wssoap:Header');
|
|
| 61 | $header = $headers->item(0); |
|
| 62 | if (! $header) {
|
|
| 63 | $header = $this->soapDoc->createElementNS($this->soapNS, $this->soapPFX.':Header'); |
|
| 64 | $this->envelope->insertBefore($header, $this->envelope->firstChild); |
|
| 65 | } |
|
| 66 | $secnodes = $this->SOAPXPath->query('./wswsse:Security', $header);
|
|
| 67 | $secnode = NULL; |
|
| 68 | foreach ($secnodes AS $node) {
|
|