Hallo Peet,
soll das ähnlich funktionieren wie diese beiden Beispiele:
Ein Datensatz kommt zurück: www.myhofi.com/expcgip/myshop01.pgm?xmid=2
mehrere Datensätze: www.myhofi.com/expcgip/myshop01.pgm?xmid=0
Dieser Webservice ist so gebaut, dass er sowohl als GET, wie auch als POST-Request angesprochen werden kann:
GET Request:
PHP-Code:
SELECT SYSTOOLS.HTTPGETCLOB
('http://www.myhofi.com/expcgip/myshop01.pgm?xmid=2','')
From SYSIBM.SYSDUMMY1;
POST Request:
PHP-Code:
Select SYSTOOLS.HTTPPOSTCLOB
('http://www.myhofi.com/expcgip/myshop01.pgm',
'<httpHeader>
<header name="Content-Type" value="application/x-www-form-urlencoded"/>
</httpHeader>',
'xmid=1'
) from SYSIBM.SYSDUMMY1;
Herzliche Grüße
Rainer
www.myhofi.com - Powered by IBM i
Bookmarks