NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JHojka on September 09, 2024, 10:01:28 AM

Title: WebWebServiceMethod Raw request data
Post by: JHojka on September 09, 2024, 10:01:28 AM
I have a NetWebServiceMethod and would like to get access to the request information. in the example below I want access to POST and all the header and body information.

POST /database/databaseCMUSERW HTTP/1.1
Accept: application/json; charset=utf-8
...
...
...
{
   "CurrentClientVersion" : 2,
   "CurrentUserLogin" : "MARATHON"
}

If I cant have that can I get access to just the body part of the post without knowing what will be in the body section without declaring individual parameter's? I just want the entire request data as its not in xml nor json format. I am looking for something like p_web.GetRequestText I found p_web.WholeURL but thats just this part "POST /database/databaseCMUSERW HTTP/1.1".

{
   "CurrentClientVersion" : 2,
   "CurrentUserLogin" : "MARATHON"
}

Jeff
Title: Re: WebWebServiceMethod Raw request data
Post by: Bruce on September 09, 2024, 10:43:22 PM
p_web.RequestData

Title: Re: WebWebServiceMethod Raw request data
Post by: JHojka on September 10, 2024, 05:56:56 AM
Thanks. I was looking for requestData or something like that but was relying on Clarion Auto complete as all my web searches failed to find the answer. requestData doesn't show up in Auto Complete ( on my install of clarion ) but it compiles just fine. Auto complete hasn't let me down like that before. Thanks again.

Jeff