About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Troubleshooting
Problem
Complex Web service parameters in the WSDL (Web Services Definition Language) generated by the IWS (Integrated Web Services) server may not match the parameters in the PCML (Program Call Markup Language).
Resolving The Problem
Problem
Complex Web service parameters in the WSDL (Web Services Definition Language) generated by the IWS (Integrated Web Services) server may not match the parameters in the PCML (Program Call Markup Language). For example, a portion of the PCML from an ILE application looks like the following:
PCML:
<struct name="PARMS">
<data name="ONE" type="char" length="10" usage="inherit" />
<data name="TWO" type="char" length="10" usage="inherit" />
<data name="THREE" type="packed" length="10" precision="0" usage="inherit" />
In the resulting WSDL, the same structure looks like the following:
WSDL:
<xs:complexType name="PARMS">
<xs:sequence>
<xs:element minOccurs="0" name="_ONE" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="_THREE" nillable="true" type="xs:decimal"/>
<xs:element minOccurs="0" name="_TWO" nillable="true" type="xs:string"/>
Resolution
This is working as designed. There is not a direct correlation between final generated WSDL/Java Beans and the initial ILE procedure. The Axis 2 engine uses a type of alphabetization algorithm for the parameters of complex objects. When it generates the Java Beans and resulting WSDL, the fields may appear to be out of order. The generated Java code representing the ILE Web service knows the order of the parameters expected by the ILE program/service program and will handle the parameters appropriately.
Complex Web service parameters in the WSDL (Web Services Definition Language) generated by the IWS (Integrated Web Services) server may not match the parameters in the PCML (Program Call Markup Language). For example, a portion of the PCML from an ILE application looks like the following:
PCML:
<struct name="PARMS">
<data name="ONE" type="char" length="10" usage="inherit" />
<data name="TWO" type="char" length="10" usage="inherit" />
<data name="THREE" type="packed" length="10" precision="0" usage="inherit" />
In the resulting WSDL, the same structure looks like the following:
WSDL:
<xs:complexType name="PARMS">
<xs:sequence>
<xs:element minOccurs="0" name="_ONE" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="_THREE" nillable="true" type="xs:decimal"/>
<xs:element minOccurs="0" name="_TWO" nillable="true" type="xs:string"/>
Resolution
This is working as designed. There is not a direct correlation between final generated WSDL/Java Beans and the initial ILE procedure. The Axis 2 engine uses a type of alphabetization algorithm for the parameters of complex objects. When it generates the Java Beans and resulting WSDL, the fields may appear to be out of order. The generated Java code representing the ILE Web service knows the order of the parameters expected by the ILE program/service program and will handle the parameters appropriately.
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CUYAA2","label":"Web Services-\u003EWeb Services Client"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
632687488
Was this topic helpful?
Document Information
More support for:
IBM i
Component:
Web Services->Web Services Client
Software version:
All Versions
Operating system(s):
IBM i
Document number:
684501
Modified date:
07 April 2025
UID
nas8N1011003
Manage My Notification Subscriptions