DFHPI9027E XML parser error
You are using DFHWS2LS to create a COBOL copybook from a vendor supplied WSDL for an outbound Web service. You receive error message DFHPI9027E The XML parser error has found an error.
DFHPI9027E The XML parser error has found an error: "XSD: Element reference 'http://www.w3.org/2001/XMLSchema#schema' is unresolved" at line "296" and column "2319" in document "name.wsdl".
The statement causing the error message is <s:element ref="s:schema" />
Diagnosing the problem
The WSDL was evaluated with the ECLIPSE Validation Tool and it pointed to the line below as being incorrect, just as the DFHPI9027E message stated: line 296 column 19. The <s:element ref="s:schema"/> statement is causing the error:
000296 <s:element ref="s:schema" /> <-- Bad Line
000297 <s:any />
The error issued by the Validation Tool reads as follows:
Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document "wsdlname.wsdl". If this is the incorrect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'wsdlname.wsdl'.
Resolving the problem
You need to replace the <s:element ref="s:schema"/> with an <s:any/> element. If that is done in this WSDL then there would be 2 s:any elements in the same scope and CICS does not support this. However, you can use a minOccurs and maxOccurs to get around this problem, as shown below:
The original XML:
<s:element ref="s schema />
Would be replaced with:
<s:any maxOccurs="2" minOccurs="2"/>
With MAPPING-LEVEL=2.1 or higher this will be processed by CICS. The application in CICS will receive raw XML in a container that is the content of the s:any elements. The application is responsible for processing the contents of the container.
CICS/TS CICS TS CICS Transaction Server