ProcObject class factory methods
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
ABL prototype for a persistent procedure to implement a ProcObject
This is the ABL prototype for the persistent procedure that runs for the sample ProcObject
class factory method, CreatePO_CustomerOrder( ):
|
RETURN
statement.This is a VB.NET declaration for the ProcObject class factory method,
CreatePO_CustomerOrder( ):
|
RETURN-VALUE function.The following code snippet:
- Instantiates the ProcObject on the client, enabling access to its methods.
- Calls the CreatePO_CustomerOrder( ) method on the AppObject,
webService, to create the ProcObject, CustomerOrder, on the WSA and runCustomerOrder.ppersistently. - Copies the ProcObject ID to the ProcObject from the AppObject (
webService) that creates the ProcObject.
|
This is a Doc/Lit SOAP request generated by invoking the
CreatePO_CustomerOrder( ) method to create the ProcObject, passing in a
custNum value of 3:
|
Note the value for the request highlighted in the example, especially the AppObject ID sent
for the AppObject, OrderInfo, which is the parent of the ProcObject being
created for customer number 3.
This is a sample Doc/Lit SOAP response that is generated by the WSA from this invocation of
the CreatePO_CustomerOrder( ) method:
|
Note the value returned for the CustomerOrder ProcObject ID highlighted in
the example. The Web service returns this ProcObject ID even if it is session free, to allow
the ProcObject to access its own AppServer session context.
Thus, the SOAP response header returns the following ProcObject ID contained in the
CustomerOrderID element:
|
Finally, note the ABL RETURN-VALUE result, returned from running the
persistent procedure, which returns the customer name, "Hoops".