Skip to content

Commit

Permalink
Merge pull request #7818 from afishbeck/espJavaServiceSimpleArray
Browse files Browse the repository at this point in the history
HPCC-14256 Add DynamicESDL java services support for simple arrays

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Sep 23, 2015
2 parents 9220744 + 65f64ae commit e5fd96f
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 71 deletions.
2 changes: 2 additions & 0 deletions esp/xslt/esdl2ecl.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
/*** ECL Interface generated by esdl2ecl version 1.0 from </xsl:text><xsl:copy-of select="$sourceFileName"/> <xsl:text>.xml. ***/
/*===================================================*/

import $.share;

</xsl:text>
</xsl:template>
<xsl:template match="expesdl">
Expand Down
1 change: 1 addition & 0 deletions initfiles/examples/EsdlExample/esdl_example.esdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ESPStruct NameInfo
{
string First("Joe");
string Last("Doe");
ESParray<string, Alias> Aliases;
};

ESPStruct AddressInfo
Expand Down
6 changes: 6 additions & 0 deletions initfiles/examples/EsdlExample/javarequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<Name>
<First>Joe</First>
<Last>Doe</Last>
<Aliases>
<Alias>John</Alias>
<Alias>James</Alias>
<Alias>Joseph</Alias>
<Alias>Jessy</Alias>
</Aliases>
</Name>
<Addresses>
<Address>
Expand Down
6 changes: 6 additions & 0 deletions initfiles/examples/EsdlExample/roxierequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<Name>
<First>Joe</First>
<Last>Doe</Last>
<Aliases>
<Alias>John</Alias>
<Alias>James</Alias>
<Alias>Joseph</Alias>
<Alias>Jessy</Alias>
</Aliases>
</Name>
<Addresses>
<Address>
Expand Down
11 changes: 11 additions & 0 deletions initfiles/examples/EsdlExample/share.ecl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export share := module

export t_IntegerArrayItem := record
integer value { xpath('')};
end;

export t_StringArrayItem := record
string value { xpath(''), MAXLENGTH(8192) };
end;

end;
Loading

0 comments on commit e5fd96f

Please sign in to comment.