Hello,
We are creating a Requestor call to a windows server. One of the directories in the URL is a variable that we are trying to set via a program.
The example of a working example is /CustomerHistory/api/changehistory/postFieldChanges/ bpid=000028477 but when we execute the program we get /CustomerHistory/api/changehistory/postFieldChanges . The variable does not resolve. I have included the copybooks from the program, is there anything special that needs to be done to populate a variable in the URL or what? Is there a better way to generate a URL? If I can provide more information, please let me know that also. Below are the copybooks involved.
Thanks
Garrett
This is the API info Copybook03 BAQ-APINAME PIC X(255)
VALUE 'BusinessPartner.WebApi.CustomerHistory_v1'.
03 BAQ-APINAME-LEN PIC S9(9) COMP-5 SYNC
VALUE 41.
03 BAQ-APIPATH PIC X(255)
VALUE '%2FCustomerHistory%2Fapi%2Fchangehistory%2FpostFiel
- 'dChanges'.
03 BAQ-APIPATH-LEN PIC S9(9) COMP-5 SYNC
VALUE 59.
03 BAQ-APIMETHOD PIC X(255)
VALUE 'POST'.
03 BAQ-APIMETHOD-LEN PIC S9(9) COMP-5 SYNC
VALUE 4.
This is the Request structure copybook
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* This file contains the generated language structure(s) for
* request JSON schema
* 'CustomerHistory_api_changehist_1_request.json'.
* This structure was generated using 'DFHJS2LS' at mapping level
* '4.3'.
*
*
* 06 ReqQueryParameters.
*
*
* JSON schema keyword 'ReqQueryParameters->bpId' is optional.
* The number of instances present is indicated in field
* 'bpId-num'.
* There should be at least '0' instance(s).
* There should be at most '1' instance(s).
* 09 bpId-num PIC S9(9) COMP-5 SYNC.
*
*
* 09 bpId.
*
* Comments for field 'bpId2':
* This field represents the value of JSON schema keyword
* 'ReqQueryParameters->bpId'.
* JSON schema type: 'string'.
* This field contains a varying length array of characters or
* binary data.
* 12 bpId2-length PIC S9999 COMP-5
* SYNC.
* 12 bpId2 PIC X(255).
*
*
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
06 ReqQueryParameters.
09 bpId-num PIC S9(9) COMP-5 SYNC.
09 bpId.
12 bpId2-length PIC S9999 COMP-5
SYNC.
12 bpId2 PIC X(255).
------------------------------
Garrett Shaw
Sr System Programmer
Ingram
La Vergne TN
404-964-2032
------------------------------