Web Connection
How to retrieve XML-data from client
Gravatar is a globally recognized avatar based on your email address. How to retrieve XML-data from client
  Hans-Peter Grözinger
  All
  Mar 21, 2026 @ 03:37am

Hello together,

i send in a REST API application from client to server JSON-data with

goHttp.cContentType = 'application/json'
lcReturn = goHttp.POST( gcURL + 'DeleteData.wc', lcJSONParameter )

on the server i get a parameter-object

FUNCTION GetData( loParameter AS OBJECT )

with the JSON-data.

Now i want to send XML-data

goHttp.cContentType = 'application/xml'
lcReturn = goHttp.POST( gcURL + 'SendData.wc', lcXML )

on the server i want to read the xml-data

FUNCTION SendData( loParameter AS OBJECT )

loParameter is .F.

How can I read the sended XML-data in my Server-Function?

Gravatar is a globally recognized avatar based on your email address. re: How to retrieve XML-data from client
  Hans-Peter Grözinger
  Hans-Peter Grözinger
  Mar 21, 2026 @ 07:56am

I used the debugger and found the XML-data in Request.cFormVars.

To obtain correctly formatted XML, I had to use the following:

Request.FormXML()
© 1996-2026