nusoap_base::serializeEnvelope
serializes a message
Signature
public function serializeEnvelope(string
$body,
[boolean
$headers = false,
[array
$namespaces = ,
[string
$style = 'rpc',
[string
$use = 'encoded',
[string
$encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/']]]]] )
Parameters
$body
—
string
- the XML of the SOAP body
$headers
—
boolean
- optional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array
$namespaces
—
array
- optional the namespaces used in generating the body and headers
$style
—
string
- optional (rpc|document)
$use
—
string
- optional (encoded|literal)
$encodingStyle
—
string
- optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)
Returns
- string
- the message
Line |
Task |
692 |
add an option to automatically run utf8_encode on $body and $headers |