Domino 9 und frühere Versionen > ND7: Entwicklung

Webservice Consumer in Notes 7 mit LotusScript

(1/1)

oson00:
Hallo,

ich suche mich tot, kann aber nicht so richtig was finden. Ich möchte einen SOAP-Webservice per LotusScript ansprechen. Das Ganze soll in einem Server-Agenten auf einem 7er Domino-Server laufen. Hier sollte nichts angepaßt werden, wenn möglich.

Gibt es eine Möglich einen Webservice per LS anzusprechen?

m3:

--- Zitat ---Stubby

This database is meant to help you create Apache Axis "stub" files that can be used to call web services. The files that are produced here can be used in Lotus Notes/Domino 7 (client or server) with NO modifications to the client or server, and NO external library dependencies.

Note that Stubby allows you to easily consume a web service in Lotus Notes 7. The ability to provide a web service in Domino 7 is available natively.
--- Ende Zitat ---
http://www.nsftools.com/stubby/

oson00:
Ja, sieht gut aus, ist nur Java. Ich benötige eigentlich LotusScript. Aber ich befürchte, dass ich mit Java leben und einen Umweg gehen muss.

it898ur:
Einen Windows-Server vorausgesetzt, gibt es die Möglichkeit in Lotus Script das XMLHTTP-Objekt von Microsoft anzusprechen.

Hier ein kleiner Auszug aus einem Testagenten von mir:

               ' --- instantiate an MSXML XMLHTTP object
   Set objHttp = CreateObject("Microsoft.XMLHTTP")
   
   ' --- open a new POST request and set the Content-type header
   
   url = doc.URL(0)
   req = doc.Request(0)
   
   objHttp.open "POST", url, False, "", ""
   objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
   
   objHttp.send(req)
   
   response = objHttp.responseText

Den Request in SOAP-Form muss man dann allerdings von Hand programmieren (was bei relativ statischen Funktionen auch kein Hexenwerk ist).

Gruß

André

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln