Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support one-way messages responses (Request #11220).

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP/trunk@264155 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 3ed98d6dc29d17a002f839fee6c9ba5cf3446ec4 1 parent c8bb65d
Jan Schneider authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 Transport/HTTP.php
16 Transport/HTTP.php
View
@@ -345,39 +345,41 @@ function _parseResponse()
case 100: // Continue
$this->incoming_payload = $match[2];
return $this->_parseResponse();
+ case 200:
+ case 202:
+ $this->incoming_payload = trim($match[2]);
+ if (!strlen($this->incoming_payload)) {
+ /* Valid one-way message response. */
+ return true;
+ }
+ break;
case 400:
$this->_raiseSoapFault("HTTP Response $code Bad Request");
return false;
- break;
case 401:
$this->_raiseSoapFault("HTTP Response $code Authentication Failed");
return false;
- break;
case 403:
$this->_raiseSoapFault("HTTP Response $code Forbidden");
return false;
- break;
case 404:
$this->_raiseSoapFault("HTTP Response $code Not Found");
return false;
- break;
case 407:
$this->_raiseSoapFault("HTTP Response $code Proxy Authentication Required");
return false;
- break;
case 408:
$this->_raiseSoapFault("HTTP Response $code Request Timeout");
return false;
- break;
case 410:
$this->_raiseSoapFault("HTTP Response $code Gone");
return false;
- break;
default:
if ($code >= 400 && $code < 500) {
$this->_raiseSoapFault("HTTP Response $code Not Found, Server message: $msg");
return false;
}
+ break;
}
$this->_parseEncoding($match[1]);
Please sign in to comment.
Something went wrong with that request. Please try again.