WSDATA
WSDATA cName AS cSoapType [OPTIONAL]Declares properties used by a service contract.
Overview
SOAP WSDATA declares a name and compatible type, with ARRAY OF/OPTIONAL when appropriate, using TOTVSWebSrv.ch. Documented legacy REST also uses WSDATA for QueryString under RESTFUL.CH. Do not transfer macro options across includes without checking them. Type declaration does not replace size/range/required-field validation or authorization. This subset is one SOAP property inside the corresponding class declaration. (Sources: refs. 1–3.)
Syntax
WSDATA cName AS cSoapType [OPTIONAL]Commented example
#Include "TOTVSWebSrv.ch"
// Fragment inside the SOAP class: fixed external contract name.
WSDATA requestCode AS STRINGDeclares requestCode as STRING; does not create/publish a full service. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Verify WSDL and actual serialization; OPTIONAL does not waive business rules.
- 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.