|
@@ 7912-7917 (lines=6) @@
|
| 7909 |
|
if ($style === 'rpc') { |
| 7910 |
|
if ($use === 'literal') { |
| 7911 |
|
$this->debug('wrapping RPC request with literal method element'); |
| 7912 |
|
if ($namespace) { |
| 7913 |
|
// 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 |
| 7914 |
|
$payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . $payload . "</$nsPrefix:$operation>"; |
| 7915 |
|
} else { |
| 7916 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7917 |
|
} |
| 7918 |
|
} else { |
| 7919 |
|
$this->debug('wrapping RPC request with encoded method element'); |
| 7920 |
|
if ($namespace) { |
|
@@ 7918-7925 (lines=8) @@
|
| 7915 |
|
} else { |
| 7916 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7917 |
|
} |
| 7918 |
|
} else { |
| 7919 |
|
$this->debug('wrapping RPC request with encoded method element'); |
| 7920 |
|
if ($namespace) { |
| 7921 |
|
$payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . $payload . "</$nsPrefix:$operation>"; |
| 7922 |
|
} else { |
| 7923 |
|
$payload = "<$operation>" . $payload . "</$operation>"; |
| 7924 |
|
} |
| 7925 |
|
} |
| 7926 |
|
} |
| 7927 |
|
// serialize envelope |
| 7928 |
|
$soapmsg = $this->serializeEnvelope($payload, $this->requestHeaders, $usedNamespaces, $style, $use, $encodingStyle); |