Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag for Netherlands asked on

RPG-source with WSDL2RPG.SH

Hi Experts,

After generating a RPG-source with WSDL2RPG.SH, I have an unknown element.
I like to know why the generator added this and what to do with it.

Simplified Example:
<xsd:element name="Lines" minOccurs="0" maxOccurs="unbounded">
      <xsd:complexType>
            <xsd:sequence>
                  <xsd:element name="Line" type="xsd:string"/>
            </xsd:sequence>
      </xsd:complexType>
</xsd:element>

The program generates the variables:
Lines.Array.Line
Lines.Size
Lines.Type


I realy don't know what the .Type field is (it's a Int(10) field), its not part of the wsdl
And I don't know what to do with it (not in the manual)
On this moment I can fill the .Size field with the required repeats, but its excluded from the XML with:

<ns1:Lines xsi:nil="true"></ns1:Lines>

While debuging I see that the elements are filled and the size is set to the required value.
In the logging I checked and  its not part of the XML.
* RPGLE* IBMiIBM System i

Avatar of undefined
Last Comment
Theo Kouwenhoven

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gary Patterson, CISSP

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Theo Kouwenhoven

ASKER
Hi Gary,

I already generated several webservices, and never used this .Type value.
So I checked and until now all XML's where String only fields, so value zero seems to work.
In my example it was ony string information, in the real program there also Date and Time types :-(

So using XSDC_USER_TYPE was the solution.
So why making all these types when XSDC_USER_TYPE is working for all alements?

Thanks !!!!
Theo Kouwenhoven

ASKER
Thanks !!!!!!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy