DFHPI1008 ARRAY_TOO_LARGE received on webservice call

Technote (troubleshooting)


Problem(Abstract)

You are using a newly defined requester webservice, and the WSDL contains several maxOccurs statements. After generating a copybook with DFHWS2LS, the call to the webservice results in message:
DFHPI1008 XML GENERATION FAILED BECAUSE OF INCORRECT INPUT (ARRAY_TOO_LARGE elementname) FOR WEBSERVICE webservname

Symptom

DFHPI1008 XML GENERATION FAILED BECAUSE OF INCORRECT INPUT (ARRAY_TOO_LARGE elementname) FOR WEBSERVICE webservname
Trace will have trace point: PI 0F0B PIII *EXC* INPUT_ERROR ARRAY_TOO_LARGE


Cause

The CICS web services assistant (DFHWS2LS and DFHLS2WS) usually map WSDL strings to fixed length COBOL character arrays. Furthermore, the number of occurrences field for maxOccurs is required to be aligned on a fullword boundary. If the structure happens to start at a non-fullword alignment, then padding will be added to the previous field so that the number field will be correctly aligned. This enlarges the array and results in the error.

Diagnosing the problem

Compare the data in the commarea to the DFHWS-DATA. You will see there is a 1-3 byte shift.

Resolving the problem

The language structures created by DFHWS2LS are assumed to be added into their own 01 level structure that is not shared with anything else. Define the request structure in its own 01 level to create the proper fullword alignment.

Product Alias/Synonym

CICS/TS CICS TS CICS Transaction Server

Rate this page:

(0 users)Average rating

Document information


More support for:

CICS Transaction Server
Web Services

Software version:

3.1, 3.2, 4.1, 4.2, 5.1

Operating system(s):

z/OS

Reference #:

1620857

Modified date:

2013-02-19

Translate my page

Machine Translation

Content navigation