@@ 7525-7532 (lines=8) @@ | ||
7522 | if ($style == 'rpc') { |
|
7523 | if ($use == 'literal') { |
|
7524 | $this->debug("wrapping RPC request with literal method element"); |
|
7525 | if ($namespace) { |
|
7526 | // 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 |
|
7527 | $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . |
|
7528 | $payload . |
|
7529 | "</$nsPrefix:$operation>"; |
|
7530 | } else { |
|
7531 | $payload = "<$operation>" . $payload . "</$operation>"; |
|
7532 | } |
|
7533 | } else { |
|
7534 | $this->debug("wrapping RPC request with encoded method element"); |
|
7535 | if ($namespace) { |
|
@@ 7533-7544 (lines=12) @@ | ||
7530 | } else { |
|
7531 | $payload = "<$operation>" . $payload . "</$operation>"; |
|
7532 | } |
|
7533 | } else { |
|
7534 | $this->debug("wrapping RPC request with encoded method element"); |
|
7535 | if ($namespace) { |
|
7536 | $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" . |
|
7537 | $payload . |
|
7538 | "</$nsPrefix:$operation>"; |
|
7539 | } else { |
|
7540 | $payload = "<$operation>" . |
|
7541 | $payload . |
|
7542 | "</$operation>"; |
|
7543 | } |
|
7544 | } |
|
7545 | } |
|
7546 | // serialize envelope |
|
7547 | $soapmsg = $this->serializeEnvelope($payload,$this->requestHeaders,$usedNamespaces,$style,$use,$encodingStyle); |