|
@@ 7896-7903 (lines=8) @@
|
| 7893 |
|
if ($style === 'rpc') { |
| 7894 |
|
if ($use === 'literal') { |
| 7895 |
|
$this->debug('wrapping RPC request with literal method element'); |
| 7896 |
|
if ($namespace) { |
| 7897 |
|
// http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html R2735 says rpc/literal accessor elements should not be in a namespace |
| 7898 |
|
$payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . $payload . "</$nsPrefix:$operation>"; |
| 7899 |
|
} else { |
| 7900 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7901 |
|
} |
| 7902 |
|
} else { |
| 7903 |
|
$this->debug('wrapping RPC request with encoded method element'); |
| 7904 |
|
if ($namespace) { |
| 7905 |
|
$payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . $payload . "</$nsPrefix:$operation>"; |
| 7906 |
|
} else { |
|
@@ 7902-7913 (lines=12) @@
|
| 7899 |
|
} else { |
| 7900 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7901 |
|
} |
| 7902 |
|
} else { |
| 7903 |
|
$this->debug('wrapping RPC request with encoded method element'); |
| 7904 |
|
if ($namespace) { |
| 7905 |
|
$payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . $payload . "</$nsPrefix:$operation>"; |
| 7906 |
|
} else { |
| 7907 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7908 |
|
} |
| 7909 |
|
} |
| 7910 |
|
} |
| 7911 |
|
// serialize envelope |
| 7912 |
|
$soapmsg = $this->serializeEnvelope($payload, $this->requestHeaders, $usedNamespaces, $style, $use, $encodingStyle); |
| 7913 |
|
$this->debug("endpoint=$this->endpoint, soapAction=$soapAction, namespace=$namespace, style=$style, use=$use, encodingStyle=$encodingStyle"); |
| 7914 |
|
$this->debug('SOAP message length=' . strlen($soapmsg) . ' contents (max 1000 bytes)=' . substr($soapmsg, 0, 1000)); |
| 7915 |
|
// send |
| 7916 |
|
$return = $this->send($this->getHTTPBody($soapmsg), $soapAction, $this->timeout, $this->response_timeout); |