Wolfgang Schölmberger
Member
Hi everybody,
OE11.6
i'm completely new to OpenEdge.Net.HTTP and JSon, so I would appreciate any help.
when I enter the following command in the address-line of a browser, i see the JSon-data on the screen.
http://datapad.it-park.at/projekte/...?u=connect/immoware&p=29immoware29!&anr=12345
I started with the following small test-program:
httpUrl = "http://datapad.it-park.at/projekte/...?u=connect/immoware&p=29immoware29!&anr=12345".
oRequest = RequestBuilder:Get(httpUrl):Request.
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
oEntity = oResponse:Entity.
IF TYPE-OF(oEntity, JsonObject)
THEN CAST(oEntity, JsonObject):WriteFile("d:\v10\pcs\_entity.json", true).
Result: the program runs without errors, the JSon-File is created, but it contains only "{}".
I know that i'm doing something wrong, but i have absolutely no idea where to start
TIA
Wolf
OE11.6
i'm completely new to OpenEdge.Net.HTTP and JSon, so I would appreciate any help.
when I enter the following command in the address-line of a browser, i see the JSon-data on the screen.
http://datapad.it-park.at/projekte/...?u=connect/immoware&p=29immoware29!&anr=12345
I started with the following small test-program:
httpUrl = "http://datapad.it-park.at/projekte/...?u=connect/immoware&p=29immoware29!&anr=12345".
oRequest = RequestBuilder:Get(httpUrl):Request.
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
oEntity = oResponse:Entity.
IF TYPE-OF(oEntity, JsonObject)
THEN CAST(oEntity, JsonObject):WriteFile("d:\v10\pcs\_entity.json", true).
Result: the program runs without errors, the JSon-File is created, but it contains only "{}".
I know that i'm doing something wrong, but i have absolutely no idea where to start
TIA
Wolf