soapcall.ecl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //##############################################################################
  2. //
  3. // HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. ############################################################################## */
  17. //proxypath :=
  18. //myname :=
  19. //proxyname := 'dispatch';
  20. //proxyname := 'log';
  21. url := proxypath + 'soap' + proxyname + '.cgi';
  22. ns := 'urn:TestSOAP/TestService';
  23. namerec := {STRING10 name := myname};
  24. greetrec := RECORD,MAXLENGTH(100)
  25. STRING salutation{xpath('greetingResponse/salutation')};
  26. UNSIGNED4 time{xpath('_call_latency')};
  27. END;
  28. greeting := SOAPCALL(url, 'greeting', namerec, greetrec, LITERAL, NAMESPACE(ns));
  29. listset := DATASET([{'cat dog pig'}, {'hello world'}], {STRING11 list});
  30. espsplitrec := RECORD,MAXLENGTH(100)
  31. STRING args{xpath('item')};
  32. UNSIGNED4 time{xpath('_call_latency')};
  33. END;
  34. espsplit := SOAPCALL(listset, url, 'espsplit', {listset.list}, DATASET(espsplitrec), NAMESPACE(ns));
  35. //OUTPUT(greeting);
  36. //OUTPUT(espsplit);