diff --git a/src/main/edu/wisc/doit/RpcNetidClientSoap.php b/src/main/edu/wisc/doit/RpcNetidClientSoap.php index 1680ab20badbbef5c33cafb8bb213ed365372982..1e21501d309384a303e51c247936342469858398 100644 --- a/src/main/edu/wisc/doit/RpcNetidClientSoap.php +++ b/src/main/edu/wisc/doit/RpcNetidClientSoap.php @@ -297,11 +297,11 @@ class RpcNetidClientSoap implements RpcNetidClient { } if( $result->result === 400){ - return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason ); + return new RpcNetidStructValidationResponse(false, $result->Reasons ); } if( $result->result === 401){ - return new RpcNetidStructValidationResponse(false, $result->Reasons->Reason ); + return new RpcNetidStructValidationResponse(false, $result->Reasons ); } throw new RpcNetidClientSoapException("Unexpected status code: {$result->result}", diff --git a/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php b/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php index 729d61cd4b996a0e2cbbdab13d9b0eac75a29f5d..48b6741f3ff3bdd0abab55d4df889981adccb80a 100644 --- a/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php +++ b/src/main/edu/wisc/doit/RpcNetidStructValidationResponse.php @@ -22,7 +22,7 @@ class RpcNetidStructValidationResponse { /** * @param bool $isValid - * @param string $reason + * @param array $reasons the array of Reason(s) for why the SOAP Call failed */ function __construct( $isValid, array $reasons ) { $this->setIsValid( $isValid );