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.

SOAP Objekt in VBS erstellen

Empfohlene Antworten

Ich bin im Moment damit beschäftigt ein Netoptelefonbuch für meine Firma zu erstellen. Dazu werden aus dem ADS die Rechnerinformationen bezogen und sollen dann über eine SOAP Schnittstelle gespeichert werden. Dazu wurde mir auch eine wsdl-Datei zur Verfügung gestellt welche schon von einer anderen Abteilung verwendet wird. Allerdings nutzen die leider Perl was bei uns nicht in Frage kommt. Nun habe ich soweit alles konvertiert, eine SQL Datenbank als Gedächtnis eingerichtet und abgeklärt welche Daten in welcher Form für das Telefonbuch benötigt werden. Jedoch habe ich noch ein entscheidendes Problem - das Erstellen des SOAP Objekts schlägt jedes Mal fehl.

Hier erstmal der Codeschnipsel bei dem der Fehler auftritt:

set soapclient = CreateObject("MSSOAP.SOAPClient")

call soapclient.mssoapinit("http://[...]/PhBookService.wsdl.dev")

Beim call erhalte ich dann die folgende (recht lange) Fehlermeldung:

Fehler: WSDLREader:Analyzing the WSDL file failed HRESULT=0x80004005 - WSDLReader:Initialization of service failed HRESULT=0x80004005 - WSDLService:Initialization of the port for service Netop/PhBookService failed HRESULT=0x80004005 - WSDLPort:Analyzing the binding information for port PhBookServicePort failed HRESULT=0x80004005 - WSDLPort:An operation for port PhBookServicePort could not be initialized HRESULT=0x80004005 - WSDLOperation:Inizializing of the input message failed for operation update HRESULT=0x80004005 - WSDLOperation:Initialization of SoapMapper for operation update failed HRESULT=0x80004005 - SoapMapper:The SoapMapper for element NetopUpdateRecordTyoe could not be created HRESULT=0x80004005 - SoapMapper:The schame definition with a targetnamespace of http://schemas.xmlsoap.org/wsdl/ for SoapMapper NetopUpdateRecordType could not be found HRESULT=0x80004005

Code: 80020009

Quelle: Client.

Nun bekam ich den Tipp die erste Zeile abzuändern in

set soapclient = CreateObject("MSSOAP.SOAPClient30")

Dies führt jedoch leider auch wieder zu einer Fehlermeldung die mir leider nichts sagt, jedoch scheint der Fehler dann (zumindest laut Meldung) nicht mehr auf Clientseite zu liegen:

Fehler: WSDLPort:No binding section was found for port PhBookServicePort HRESULT=0x80004005: Unbekannter Fehler

-WSDLService:Initialization of the port for service Netop/PhBookService failed HRESULT=0x80004005: Unbekannter Fehler

-WSDLReader: Analyzing the WSDL file failed HRESULT=0x80004005: Unbekannter Fehler

- Client:One of the parameters supplied is invalid. HRESULT=0x80070057: Falscher Parameter

Code: 80020009

Quelle: WSDLPort

Kann Jemand etwas mit den Fehlermeldungen anfangen oder kennt einen anderen Weg das SOAP-Objekt zu erzeugen? Bin für jede Hilfe dankbar!

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.