You are here

function wsclient_soap_wsclient_service_form_submit in Web service client 7

Submit callback for the web service form to populate operations and data types of the new SOAP service.

1 string reference to 'wsclient_soap_wsclient_service_form_submit'
wsclient_soap_form_wsclient_service_form_alter in wsclient_soap/wsclient_soap.module
Implements hook_form_FORM_ID_alter().

File

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

Code

function wsclient_soap_wsclient_service_form_submit($form, &$form_state) {
  if (($form_state['values']['type'] == 'soap' || $form_state['values']['type'] == 'soap 1.2') && $form_state['op'] == 'add') {
    $service = $form_state['wsclient_service'];
    $endpoint = $service
      ->endpoint();
    $endpoint
      ->initializeMetadata();
    $service
      ->save();
    rules_clear_cache();
    $service
      ->clearCache();
    drupal_set_message(t('Operations and data types of the SOAP service have been imported automatically. If the service expects data types with properties as lists (multiple values for the property), please check the multiple flag on those properties. This cannot be auto-detected at the moment.'));
  }
}