Das Notes Forum

Domino 9 und frühere Versionen => ND7: Entwicklung => Thema gestartet von: oson00 am 19.12.08 - 12:12:52

Titel: Webservice Consumer in Notes 7 mit LotusScript
Beitrag von: oson00 am 19.12.08 - 12:12:52
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?
Titel: Re: Webservice Consumer in Notes 7 mit LotusScript
Beitrag von: m3 am 19.12.08 - 12:40:33
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.
http://www.nsftools.com/stubby/
Titel: Re: Webservice Consumer in Notes 7 mit LotusScript
Beitrag von: oson00 am 19.12.08 - 12:43:18
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.
Titel: Re: Webservice Consumer in Notes 7 mit LotusScript
Beitrag von: it898ur am 19.12.08 - 12:53:43
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é