NetTalk Central

Author Topic: WebWebServiceMethod Raw request data  (Read 760 times)

JHojka

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • Email
WebWebServiceMethod Raw request data
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: WebWebServiceMethod Raw request data
« Reply #1 on: September 09, 2024, 10:43:22 PM »
p_web.RequestData


JHojka

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • Email
Re: WebWebServiceMethod Raw request data
« Reply #2 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