troubleshooting Question

RPG-source with WSDL2RPG.SH

Avatar of Theo Kouwenhoven
Theo KouwenhovenFlag for Netherlands asked on
* RPGLE* IBMiIBM System i
3 Comments1 Solution151 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Gary Patterson, CISSP
Expert for hire: IBM i, AIX, Linux, Windows, DB2, Performance, Security. EDI

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros