You are here

public function WSClientSOAPEndpoint::initializeMetadata in Web service client 7

Retrieve metadata from the WSDL about available data types and operations.

Parameters

boolean $reset: If TRUE, existing data types and operations will be overwritten.

File

wsclient_soap/wsclient_soap.module, line 91
Web service client SOAP support.

Class

WSClientSOAPEndpoint
A remote endpoint type for invoking SOAP services.

Code

public function initializeMetadata($reset = TRUE) {
  $client = $this
    ->client();
  $data_types = wsclient_soap_parse_types($client
    ->__getTypes());
  $operations = wsclient_soap_parse_operations($client
    ->__getFunctions());
  if ($reset) {
    $this->service->datatypes = $data_types;
    $this->service->operations = $operations;
  }
  else {
    $this->service->datatypes += $data_types;
    $this->service->operations += $operations;
  }
  $this->service
    ->clearCache();
}