Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Web Service Problem

Empfohlene Antworten

Hallo Leute,

ich habe folgenden Code geschrieben, der ein Web Service anspricht das 4 Parameter erwartet und einen boolean liefert.

URL wsEndpoint = new URL([Serveradresse]);

String wsMethod = "HasUserAccess";

String nameSpace = "[Namespace]";


Service service = new Service();	


Call call = (Call) service.createCall();


call.setTargetEndpointAddress(wsEndpoint);

call.setOperationName(wsMethod);


//enable and add SOAPAction for use with .NET Web Service

call.setUseSOAPAction(true);

call.setSOAPActionURI(nameSpace + wsMethod);


call.addParameter("login", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("netBiosDomainName", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("application", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("resource", XMLType.XSD_STRING, ParameterMode.IN);

call.setReturnType(XMLType.XSD_BOOLEAN);


Boolean hasAccess = (Boolean) call.invoke(new Object[]{"RatzingerManuel","SBS","DataLoadWebAdmin","Administration"});

System.out.println(hasAccess);

Das Problem ist, dass folgende Exception auftritt und ich mir nicht erklären kann warum!

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException: Value cannot be null. Parameter name: netBiosDomainName

Bearbeitet von Ratzinger

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.