src/SchillingSoapWrapper.php
public function request($class, $service, $method, $arguments = [])
    {
        // Get WSDL URL
        $wsdl = $this->getWsdlUri($class);

        // Init SOAP client
        $this->client = new SoapClient($wsdl, [
            'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
            'trace' => true,
            'exceptions' => true,
            'cache_wsdl' => WSDL_CACHE_MEMORY,
        ]);

        // Add authentication to the query
        $request = $this->addAuthHeader($arguments);

        $result = $this->client->__soapcall($service, array($method => $request));

        if (!isset($result->ReturnValue)) {
            return;
        } else {
            // If more than one, return all return values
            if (is_array($result->ReturnValue) && count($result->ReturnValue) > 1) {
                return $result;
            } else {
                return $result->ReturnValue;
            }
        }
    }
public function request($class, $service, $method, $arguments = [])
    {
        // Get WSDL URL
        $wsdl = $this->getWsdlUri($class);

        // Init SOAP client
        $this->client = new SoapClient($wsdl, [
            'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
            'trace' => true,
            'exceptions' => true,
            'cache_wsdl' => WSDL_CACHE_MEMORY,
        ]);

        // Add authentication to the query
        $request = $this->addAuthHeader($arguments);

        $result = $this->client->__soapcall($service, array($method => $request));

        if (!isset($result->ReturnValue)) {
            return;
        } else {
            // If more than one, return all return values
            if (is_array($result->ReturnValue) && count($result->ReturnValue) > 1) {
                return $result;
            } else {
                return $result->ReturnValue;
            }
        }
    }
public function request ( $ class , $ service , $ method , $ arguments = [ ] ) { // Get WSDL URL
 $ wsdl = $ this -> getWsdlUri ( $ class ) ; // Init SOAP client
 $ this -> client = new SoapClient ( $ wsdl , [ 'features' => SOAP_SINGLE_ELEMENT_ARRAYS , 'trace' => true , 'exceptions' => true , 'cache_wsdl' => WSDL_CACHE_MEMORY , ] ) ; // Add authentication to the query
 $ request = $ this -> addAuthHeader ( $ arguments ) ; $ result = $ this -> client -> __soapcall ( $ service , array ( $ method => $ request ) ) ; if ( ! isset ( $ result -> ReturnValue ) ) { return ; } else { // If more than one, return all return values
 if ( is_array ( $ result -> ReturnValue ) && count ( $ result -> ReturnValue ) > 1 ) { return $ result ; } else { return $ result -> ReturnValue ; } } }
Forms and send a Web Service request to Schilling.

@param string $class
@param string $service
@param string $method
@param array  $arguments

@return array
Forms and send a Web Service request to Schilling .