Definition at line 14 of file SOAP.php.
◆ getInputStream()
SAML2\SOAP::getInputStream |
( |
| ) |
|
|
protected |
Definition at line 101 of file SOAP.php.
103 return file_get_contents(
'php://input');
◆ getOutputToSend()
SAML2\SOAP::getOutputToSend |
( |
Message |
$message | ) |
|
Definition at line 16 of file SOAP.php.
References $header, $response, SAML2\Message\getDestination(), and SAML2\Message\toSignedXML().
19 <?xml version=
"1.0" encoding=
"utf-8"?>
20 <SOAP-ENV:Envelope xmlns:SOAP-ENV=
"%s">
28 $doc->loadXML($envelope);
52 $body->appendChild($doc->importNode(
$message->toSignedXML(),
true));
54 return $doc->saveXML();
const NS_SOAP
The namespace for the SOAP protocol.
getDestination()
Retrieve the destination of a message.
catch(Exception $e) $message
◆ receive()
Receive a SAML 2 message sent using the HTTP-POST binding.
Throws an exception if it is unable receive the message.
- Returns
- The received message.
- Exceptions
-
Definition at line 85 of file SOAP.php.
References $results, and $xml.
89 if (empty($postText)) {
90 throw new \Exception(
'Invalid message received to AssertionConsumerService endpoint.');
94 $xml = $document->firstChild;
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
static fromXML(\DOMElement $xml)
Convert an XML element into a message.
◆ send()
SAML2\SOAP::send |
( |
Message |
$message | ) |
|
Send a SAML 2 message using the SOAP binding.
Note: This function never returns.
- Parameters
-
\SAML2\Message | $message | The message we should send. |
(PHPMD.ExitExpression)
Definition at line 66 of file SOAP.php.
References $xml, exit, and header.
68 header(
'Content-Type: text/xml',
true);
catch(Exception $e) $message
getOutputToSend(Message $message)
Add a drawing to the header
The documentation for this class was generated from the following file:
- libs/composer/vendor/simplesamlphp/saml2/src/SAML2/SOAP.php