How do you create a web service that returns parent-child joined database records : Customer->Order, Order->LineItems, or Customer->Order->Lineitems?
I.e. what would the ABL code look like that I would feed to proxygen?
It seemed like a DATASET would solve this but I'm getting an error when I run proxygen:
The parameter/return type DATASET is not supported from a web services client. It is currently only supported from a .NET or Java open client. (11108).
My test code below:
DEFINE TEMP-TABLE tmp-Order NO-UNDO LIKE Order.
DEFINE TEMP-TABLE tmp-OrderLine NO-UNDO LIKE OrderLine.
DEFINE DATASET dsOrderLineItem FOR tmp-Order, tmp-OrderLine
DATA-RELATION orderLineRel FOR tmp-Order, tmp-OrderLine
RELATION-FIELDS (oe-tran-num, oe-tran-num) NESTED.
DEFINE INPUT PARAMETER orderId LIKE Order.orderId NO-UNDO.
DEFINE OUTPUT PARAMETER DATASET FOR dsOrderLineItem APPEND.
I'm running currently OE 10.1C, waiting to move to 10.2A soon. Does anyone know if it will support web service generation for data sets.
Or is there another way to represent the parent-child join relation and have proxygen genrerate the proper wsdl.
TIA
I.e. what would the ABL code look like that I would feed to proxygen?
It seemed like a DATASET would solve this but I'm getting an error when I run proxygen:
The parameter/return type DATASET is not supported from a web services client. It is currently only supported from a .NET or Java open client. (11108).
My test code below:
DEFINE TEMP-TABLE tmp-Order NO-UNDO LIKE Order.
DEFINE TEMP-TABLE tmp-OrderLine NO-UNDO LIKE OrderLine.
DEFINE DATASET dsOrderLineItem FOR tmp-Order, tmp-OrderLine
DATA-RELATION orderLineRel FOR tmp-Order, tmp-OrderLine
RELATION-FIELDS (oe-tran-num, oe-tran-num) NESTED.
DEFINE INPUT PARAMETER orderId LIKE Order.orderId NO-UNDO.
DEFINE OUTPUT PARAMETER DATASET FOR dsOrderLineItem APPEND.
I'm running currently OE 10.1C, waiting to move to 10.2A soon. Does anyone know if it will support web service generation for data sets.
Or is there another way to represent the parent-child join relation and have proxygen genrerate the proper wsdl.
TIA