esdl_example.esdl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. ////////////////////////////////////////////////////////////
  14. ESPenum AddressType : string
  15. {
  16. HOME("Home"),
  17. WORK("Work"),
  18. HOTEL("Hotel")
  19. };
  20. ESPStruct NameInfo
  21. {
  22. string First("Joe");
  23. string Last("Doe");
  24. };
  25. ESPStruct AddressInfo
  26. {
  27. ESPenum AddressType type("Home");
  28. string Line1;
  29. string Line2;
  30. string City;
  31. string State;
  32. int Zip(33487);
  33. };
  34. ESPrequest JavaEchoPersonInfoRequest
  35. {
  36. ESPstruct NameInfo Name;
  37. ESParray<ESPstruct AddressInfo, Address> Addresses;
  38. };
  39. ESPresponse JavaEchoPersonInfoResponse
  40. {
  41. int count(0);
  42. ESPstruct NameInfo Name;
  43. ESParray<ESPstruct AddressInfo, Address> Addresses;
  44. };
  45. ESPrequest RoxieEchoPersonInfoRequest
  46. {
  47. ESPstruct NameInfo Name;
  48. ESParray<ESPstruct AddressInfo, Address> Addresses;
  49. };
  50. ESPresponse RoxieEchoPersonInfoResponse
  51. {
  52. int count(0);
  53. ESPstruct NameInfo Name;
  54. ESParray<ESPstruct AddressInfo, Address> Addresses;
  55. };
  56. ESPservice [version("0.01")] EsdlExample
  57. {
  58. ESPmethod JavaEchoPersonInfo(JavaEchoPersonInfoRequest, JavaEchoPersonInfoResponse);
  59. ESPmethod RoxieEchoPersonInfo(RoxieEchoPersonInfoRequest, RoxieEchoPersonInfoResponse);
  60. };