Zugriff auf die Kontoprüfung mit J#

Das folgende Beispiel zeigt, wie man mit J# und dem Microsoft .NET Framework auf die Konto/BLZ-Prüfung zugreift.

Für den Zugriff wird zusätzlich die WSDL-Datei benötigt aus der automatisch die Proxy-Klasse für den Zugriff erzeugt wird.

Beispiel: KontoCheckVJS.jsl

import KontoCheckService;

class App {
    public static void main() {
	String token = "IHR-ACCESS-TOKEN";
	String konto = "0306693125";
	String blz = "30020900";

	System.Console.WriteLine("Webservice Test\n");
	try {
		KontoCheckService ws = new KontoCheckService();
		String name = ws.bankname(token, blz);
		System.Console.WriteLine("BLZ " + blz + " ist " + name);
		int ok = ws.check(token, konto, blz);
		System.Console.WriteLine("Konto " + konto + " bei BLZ " + blz + " ist " + ok);
		konto = "101813000";
		blz = "20050000";
		ok = ws.check(token, konto, blz);
		System.Console.WriteLine("Konto " + konto + " bei BLZ " + blz + " ist " + ok);
	} catch (Exception ex) {
		System.Console.WriteLine("SOAP Error: " + ex.ToString());
	}
    } 
}


Erzeugen der Proxy-Klasse und compilieren des Quelltextes:
wsdl /l:vjs KontoCheck.wsdl
vjc KontoCheckVJS.jsl KontoCheckService.jsl /r:System.Web.Services.dll /r:System.xml.dll


Impressum · Datenschutz