OE10.2B Linux
I'm working on my first project using web services (in this case a phone app with Sprint called Telenav) and my first encountering of indeterminate arrays.
I've gotten the code from the wsdl, and can successfully send and receive xml from the web service as long as it's not an indeterminate array.
However, I'm finding I don't know how to deal with/pricess the indeterminate longchar array when it's returned. I can't find any examples where this is done using the ABL either on Progress web site or in the samples documentation for web services.
Here is the code generated by the wsdl:
All well and good there. Sending the getJobEvents is not a problem.
But no matter what I seem to try with the getJobEventsReturn, I get errors.
Does anyone have a simple example to show how to load the indeterminate longchar array return value into an XML document?
Thanks for any help, pointers et al!
I'm working on my first project using web services (in this case a phone app with Sprint called Telenav) and my first encountering of indeterminate arrays.
I've gotten the code from the wsdl, and can successfully send and receive xml from the web service as long as it's not an indeterminate array.
However, I'm finding I don't know how to deal with/pricess the indeterminate longchar array when it's returned. I can't find any examples where this is done using the ABL either on Progress web site or in the samples documentation for web services.
Here is the code generated by the wsdl:
Code:
DEFINE VARIABLE wsAdmin AS LONGCHAR NO-UNDO.
DEFINE VARIABLE jobId AS INT64 NO-UNDO.
DEFINE VARIABLE getJobEventsReturn AS LONGCHAR EXTENT NO-UNDO.
FUNCTION getJobEvents RETURNS LONGCHAR EXTENT
(INPUT wsAdmin AS LONGCHAR,
INPUT jobId AS INT64)
IN hTrack_PortType.
/* Function invocation of getJobEvents operation. */
getJobEventsReturn = getJobEvents(wsAdmin, jobId).
But no matter what I seem to try with the getJobEventsReturn, I get errors.
Does anyone have a simple example to show how to load the indeterminate longchar array return value into an XML document?
Thanks for any help, pointers et al!