Mutalyzer SOAP client

Result for '.htmlentities($variant).''; // http://www.dotvoid.com/2008/10/soap-structures-in-php/ $options = array('features' => SOAP_SINGLE_ELEMENT_ARRAYS); $client = new SoapClient($URL, $options); $result = $client->checkSyntax(array('variant' => $variant)) ->checkSyntaxResult; if ($result->valid) echo '

Valid!'; else echo '

Not valid!'; if (isset($result->messages->SoapMessage)) { echo '

Messages:

    '; foreach ($result->messages->SoapMessage as $message) { echo '
  1. '.htmlentities($message->errorcode).': '; echo htmlentities($message->message); } echo '
'; } } ?>

Check the syntax of a variant

Variant: