new page Test 1
function show_form($fields) { $res = '"; } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); if ($result->done == "no") { print show_form($result->fields); } else { print "Das war der letzte Schritt. Jetzt können wir die Funktion calculate_iban mit folgenden Parametern aufrufen:
"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; } } $params = array(); foreach (array_keys($_REQUEST) as $key) { $item = new item($key, $_REQUEST[$key]); array_push($params, $item); } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); stdClass Object ( [done] => yes [fields] => Array ( [0] => stdClass Object ( [id] => country [type] => hidden [value] => DE [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [1] => stdClass Object ( [id] => bankcode [type] => hidden [value] => 50010517 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [2] => stdClass Object ( [id] => account [type] => hidden [value] => 064847930 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [3] => stdClass Object ( [id] => bic [type] => hidden [value] => [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [4] => stdClass Object ( [id] => legacy_mode [type] => hidden [value] => [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) ) )
"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; $par[$f->id] = $f->value; } $res2 = $client->calculate_iban($par["country"], $par["bankcode"], $par["account"], $userid, $password, $par["bic"], $par["legacy_mode"]); print "
"; print_r($res2); print ""; } print "
"; print_r($result); print ""; # print "Request :\n".$client->__getLastRequest()."\n"; # print "Response:\n".$client->__getLastResponse()."\n"; } ?> function show_form($fields) { $res = '"; } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); if ($result->done == "no") { print show_form($result->fields); } else { print "Das war der letzte Schritt. Jetzt können wir die Funktion calculate_iban mit folgenden Parametern aufrufen:
"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; } } class item { public $key; public $value; public function __construct($key, $value) { $this->key = $key; $this->value = $value; } } $client = new SoapClient('https://ssl.ibanrechner.de/soap2/?wsdl',array ( "trace" => 1, "classmap" => array("Map"=> "Map", "item" => "item") )); $params = array(); array_push($params, new item("country", "DE")); array_push($params, new item("language", "1")); $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); print_r($result); ============ stdClass Object ( [done] => no [fields] => Array ( [0] => stdClass Object ( [id] => country [type] => hidden [value] => DE [label] => [optionids] => Array ( ) [options] => Array ( ) [length] => 0 [newline] => no ) [1] => stdClass Object ( [id] => language [type] => hidden [value] => 1 [label] => [optionids] => Array ( ) [options] => Array () [length] => 0 [newline] => no ) [2] => stdClass Object ( [id] => step [type] => hidden [value] => 1 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [3] => stdClass Object ( [id] => _ob_blz_cb_ [type] => text [value] => [label] => Bankleitzahl [optionids] => Array ( ) [options] => Array() [length] => 8 [newline] => yes ) [4] => stdClass Object ( [id] => _ob_kontonr_cb_ [type] => text [value] => [label] => Kontonummer [optionids] => Array ( ) [options] => Array() [length] => 10 [newline] => yes ) [5] => stdClass Object ( [id] => _ob_a_cb_ [type] => submit [value] => [label] => IBAN berechnen [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => yes ) ) ) -----------------