esdl_example.esdl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. ESParray<string, Alias> Aliases;
  25. };
  26. ESPStruct AddressInfo
  27. {
  28. ESPenum AddressType type("Home");
  29. string Line1;
  30. string Line2;
  31. string City;
  32. string State;
  33. int Zip(33487);
  34. };
  35. ESPrequest RoxieEchoPersonInfoRequest
  36. {
  37. ESPstruct NameInfo Name;
  38. ESParray<ESPstruct AddressInfo, Address> Addresses;
  39. };
  40. ESPresponse RoxieEchoPersonInfoResponse
  41. {
  42. int count(0);
  43. ESPstruct NameInfo Name;
  44. ESParray<ESPstruct AddressInfo, Address> Addresses;
  45. };
  46. ESPservice [version("0.01")] EsdlExample
  47. {
  48. ESPmethod RoxieEchoPersonInfo(RoxieEchoPersonInfoRequest, RoxieEchoPersonInfoResponse);
  49. };