$url , 'proxy_host' => SOAPAPI_HOST, 'proxy_port' => SOAPAPI_PORT ) ); } else if (strcmp("https", SOAPAPI_PROTO) == 0) { // creating a new SoapApi object. A fault will be raised if unsucessul. $c = new SoapApi(SOAPAPI_WSDL_FILE, array( 'location' => $url, 'local_cert' => SOAPAPI_CLIENT_CERT, 'passphrase' => SOAPAPI_CLIENT_CERT_PASSPHRASE ) ); } else { echo "unknown protocol <" . SOAPAPI_PROTO . ">\n"; exit(1); } //echo "Retrieving SOAP API version...\n"; $rc = $c->soapGetSOAPVersion(); if (strcmp($rc->version, REQUIRED_API_VERSION) != 0) { printf("Incorrect SOAP API version found: <%s> - expecting <%s>\n", $rc->version, REQUIRED_API_VERSION ); exit(1); } printf("

AddUserAccount

"); $rc = $c->soapAddUserAccount("Test01", "123456", 1, 1); printf("
"); printf("

UpdateVirtualSCLocalUser

"); $rc = $c->soapUpdateVirtualSCLocalUser("Internetzugang","Test01","123456",60,0,1); printf("
"); exit; } catch (SoapFault $fault) { // displaying fault. printf("

Fehler im Skript!


"); printf("string: <%s>
", $fault->faultstring); printf("code: <%s>
", $fault->faultcode); printf("actor: <%s>
", $fault->error_message_prefix); printf("detail: <%s>
", $fault->userinfo); // terminating and returning an error. exit(1); } ?>