Forum Post: RE: Mobile URIs for testing access from REST clients

  • Thread starter Thread starter Anil Kumar
  • Start date Start date
Status
Not open for further replies.
A

Anil Kumar

Guest
Hi, Sorry some how the reply mail didn't reach completely. Following is the complete reply on the same. By looking at the generated catalog and the wadl files, seems the Business Entity file has all methods with invoke as the operation as below: @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="invoke", URI="/ReadCustomer", alias="", mediaType="application/json"). METHOD PUBLIC VOID ReadCustomer( END METHOD. /*------------------------------------------------------------------------------ Purpose: Create one or more new records Notes: ------------------------------------------------------------------------------*/ @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="invoke", URI="/CreateCustomer", alias="", mediaType="application/json"). METHOD PUBLIC VOID CreateCustomer(INPUT-OUTPUT DATASET dsCustomer): END METHOD. /*------------------------------------------------------------------------------ Purpose: Update one or more records Notes: ------------------------------------------------------------------------------*/ @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="invoke", URI="/UpdateCustomer", alias="", mediaType="application/json"). METHOD PUBLIC VOID UpdateCustomer(INPUT-OUTPUT DATASET dsCustomer): END METHOD. /*------------------------------------------------------------------------------ Purpose: Delete a record Notes: ------------------------------------------------------------------------------*/ @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="invoke", URI="/DeleteCustomer", alias="", mediaType="application/json"). METHOD PUBLIC VOID DeleteCustomer(INPUT-OUTPUT DATASET dsCustomer): END METHOD. Can you please confirm if this is same with your Business Entity. By any chance you have added new annotations for the Business Entity class file using Define Service Interface wizard? The potential reason for this behavior would be when you try adding new annotations (say for any new method that got added in the Business Entity) using Define Service Interface wizard. i.e., by default Invoke annotations are selected and when we invoke Finish button without selecting respective operations in the CRUD annotations tab Define Service Interface wizard might replace all annotations with invoke operation. Invoke Annotation tab in Define Service Interface wizard: CRUD Annotation tab in Define Service Interface wizard : Thanks and Regards, Anil Kumar.

Continue reading...
 
Status
Not open for further replies.
Back
Top