Пример #1
0
 /**
  * Get SOAP endpoint URL.
  *
  * @param bool $isWsdl
  * @return string
  */
 public function generateUri($isWsdl = false)
 {
     $params = [self::REQUEST_PARAM_SERVICES => $this->_request->getParam(self::REQUEST_PARAM_SERVICES)];
     if ($isWsdl) {
         $params[self::REQUEST_PARAM_WSDL] = true;
     }
     $query = http_build_query($params, '', '&');
     return $this->getEndpointUri() . '?' . $query;
 }
Пример #2
0
 /**
  * Check if current request is WSDL request. SOAP operation execution request is another type of requests.
  *
  * @return bool
  */
 protected function _isWsdlRequest()
 {
     return $this->_request->getParam(\Magento\Webapi\Model\Soap\Server::REQUEST_PARAM_WSDL) !== null;
 }