WSMETHOD
WSMETHOD GET STATUS DESCRIPTION cDescription PATH cPathDeclares operations and binds their service implementation.
Overview
SOAP and REST use different forms. TOTVSTEC documents SOAP WSRECEIVE/WSSEND/WSSERVICE; REST guidance recommends verb plus ID, allowing multiple methods per verb. Implementation must match its declaration. Routing PATH differs from WSSYNTAX description. This subset adapts only the community REST declaration, without copying SQL, writes or blanket 500 error handling. (Sources: refs. 1–3.)
Syntax
WSMETHOD GET STATUS DESCRIPTION cDescription PATH cPathCommented example
#Include "RESTFUL.CH"
// Fragment inside WSRESTFUL; implement the same GET STATUS afterwards.
WSMETHOD GET STATUS DESCRIPTION "Example status" PATH "status"Declares an operation; does not implement/expose the endpoint in this subset. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Validate parameters, authorization, HTTP status and response content. A logical return is not an HTTP status.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.