Fri Aug 17, 2018 10:39 pm
Login Register Lost Password? Contact Us


GetDFUWorkunits SOAP call fails while calling from ECL

Comments and questions related to the Enterprise Control Language

Wed Mar 22, 2017 2:46 pm Change Time Zone

Can someone help me with this.I am getting error while calling from ECL but works fine while calling from R.

Code,error message and version below:


Code: Select all
STRING URL := 'http://192.168.56.101:8010/FileSpray/';


rWUQuery   :=    RECORD
   
   STRING     Wuid{XPATH('Wuid'),MAXLENGTH(20)}        :=   '';
   STRING     Owner{XPATH('Owner'),MAXLENGTH(30)}        :=   '';
   STRING     Cluster{XPATH('Cluster'),MAXLENGTH(30)}    :=   '';
   STRING     StateReq{XPATH('StateReq'),MAXLENGTH(40)}        :=    '';
   STRING     Type{XPATH('Type'),MAXLENGTH(40)}        :=    '';
   STRING     Jobname{XPATH('Jobname'),MAXLENGTH(30)}    :=   '';
  UNSIGNED  PageSize{XPATH('PageSize')} := 2147483647;
   UNSIGNED  CurrentPage{XPATH('CurrentPage')} := 32716;
   INTEGER   PageStartFrom{XPATH('PageStartFrom')} := -1;
   STRING     Sortby{XPATH('Sortby'),MAXLENGTH(30)}    :=   '';
   BOOLEAN     Descending{XPATH('Descending'),MAXLENGTH(30)}    :=   FALSE;
   INTEGER   CacheHint{XPATH('CacheHint')} := -1;

END;

rEspException   :=    RECORD
      STRING      Code{XPATH('Code'),maxlength(10)};
      STRING      Audience{XPATH('Audience'),maxlength(50)};
      STRING      Source{XPATH('Source'),maxlength(30)};
      STRING      Message{XPATH('Message'),maxlength(200)};
END;

rDFUWorkunit :=      RECORD
   STRING       Workunits{XPATH('Wuid'),maxlength(10)};
   STRING       Owner{XPATH('Owner'),maxlength(50)};
   STRING       Jobname{XPATH('Jobname'),maxlength(30)};
   STRING       Cluster{XPATH('Cluster'),maxlength(200)};
END;


rWUQueryResponse   := RECORD
   DATASET(rESPException)      Exceptions{XPATH('Exceptions/ESPException'),maxcount(110)};
   DATASET(rDFUWorkunit)      DFUWorkunit{XPATH('results/DFUWorkunit'),maxcount(110)};
END;



DATASET(rWUQueryResponse) dWUSubmitResult   :=   SOAPCALL(URL,
             'GetDFUWorkunits',
             rWUQuery,
             DATASET(rWUQueryResponse),
             XPATH('GetDFUWorkunitResponse')
            );


dWUSubmitResult;


Error: System error: -1: <Error><text>HTTP&#32;error&#32;(500)&#32;in&#32;processQuery</text><soapresponse>&lt;?xml&#32;version=&quot;1.0&quot;&#32;encoding=&quot;utf-8&quot;?&gt;&lt;soap:Envelope&#32;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&#32;xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&#32;xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&#32;xmlns:wsse=&quot;http://schemas.xmlsoap.org/ws/2002/04/secext&quot;&gt;&lt;soap:Body&gt;&lt;soap:Fault&gt;&lt;faultcode&gt;400&lt;/faultcode&gt;&lt;faultstring&gt;[400:&#32;Bad&#32;Request&#32;[Method&#32;GetDFUWorkunitsRequest&#32;not&#32;available&#32;in&#32;service&#32;FileSpray]]&#32;&lt;/faultstring&gt;&lt;faultactor&gt;Esp&lt;/faultactor&gt;&lt;detail&gt;&lt;Exceptions&#32;xmlns=&quot;urn:hpccsystems:ws:filespray&quot;&#32;xsi:schemaLocation=&quot;urn:hpccsystems:ws:filespray&#32;http://192.168.56.101:8010/FileSpray/?xsd&quot;&gt;&lt;Source&gt;Esp&lt;/Source&gt;&lt;Exception&gt;&lt;Code&gt;400&lt;/Code&gt;&lt;Audience&gt;user&lt;/Audience&gt;&lt;Message&gt;Bad&#32;Request&#32;[Method&#32;GetDFUWorkunitsRequest&#32;not&#32;available&#32;in&#32;service&#32;FileSpray]&lt;/Message&gt;&lt;/Exception&gt;&lt;/Exceptions&gt;&lt;/detail&gt;&lt;/soap:Fault&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;</soapresponse><url>http://192.168.56.101:8010/FileSpray</url></Error> (in SOAP dataset G1 E2) (0, 0), -1,
Attachments
ver.jpg
ver.jpg (51.47 KiB) Viewed 458 times
balajisampath
 
Posts: 63
Joined: Mon Jul 22, 2013 6:29 pm

Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron