瀏覽代碼

Merge branch 'candidate-5.4.6' into candidate-6.0.0

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 年之前
父節點
當前提交
8df66f07a5

+ 19 - 2
docs/ECLLanguageReference/ECLR_mods/BltInFunc-HTTPCALL.xml

@@ -143,6 +143,15 @@
             <entry>Specifies all trailing spaces are removed from strings
             <entry>Specifies all trailing spaces are removed from strings
             before output.</entry>
             before output.</entry>
           </row>
           </row>
+
+          <row>
+            <entry><emphasis role="bold">HTTPHEADER<indexterm>
+                <primary>HTTPHEADER</primary>
+              </indexterm></emphasis></entry>
+
+            <entry>Specifies header information to be passed to the
+            service.</entry>
+          </row>
         </tbody>
         </tbody>
       </tgroup>
       </tgroup>
     </informaltable></para>
     </informaltable></para>
@@ -157,7 +166,15 @@ OutRec1 := RECORD
   DATASET(worldBankSource) Fred{XPATH('/source')};
   DATASET(worldBankSource) Fred{XPATH('/source')};
 END;
 END;
 
 
-raw := HTTPCALL('http://api.worldbank.org/sources', 'GET', 'text/xml', OutRec1);
+raw := HTTPCALL('http://api.worldbank.org/sources', 'GET', 'text/xml', OutRec1, );
+
+OUTPUT(raw);
+
+////Using HTTPHEADER to pass Authorization info
+raw2 := HTTPCALL('http://api.worldbank.org/sources', 'GET', 'text/xml', 
+                 OutRec1, HTTPHEADER('Authorization','Basic dXNlcm5hbWU6cGFzc3dvcmQ='));
+
+OUTPUT(raw2);
 
 
-OUTPUT(raw);</programlisting>
+</programlisting>
 </sect1>
 </sect1>

+ 14 - 0
docs/ECLLanguageReference/ECLR_mods/BltInFunc-SOAPCALL.xml

@@ -325,6 +325,15 @@
             different message format, where type information is embedded in
             different message format, where type information is embedded in
             the XML.</entry>
             the XML.</entry>
           </row>
           </row>
+
+          <row>
+            <entry><emphasis role="bold">HTTPHEADER<indexterm>
+                <primary>HTTPHEADER</primary>
+              </indexterm></emphasis></entry>
+
+            <entry>Specifies header information to be passed to the
+            service.</entry>
+          </row>
         </tbody>
         </tbody>
       </tgroup>
       </tgroup>
     </informaltable></para>
     </informaltable></para>
@@ -410,6 +419,11 @@ DATASET(outRecord), ONFAIL(genDefault1())));
 OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(genDefault2(LEFT))));
 OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(genDefault2(LEFT))));
 
 
 OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP)));
 OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP)));
+
+//Using HTTPHEADER to pass Authorization info
+OUTPUT(SOAPCALL(ds, ip, svc, inRecord, t(LEFT),DATASET(outRecord), ONFAIL(SKIP),
+                HTTPHEADER('Authorization','Basic dXNlcm5hbWU6cGFzc3dvcmQ=')))
+
 </programlisting>
 </programlisting>
   </sect2>
   </sect2>
 
 

+ 10 - 0
docs/ECLLanguageReference/ECLR_mods/Templ-OPTION.xml

@@ -964,6 +964,16 @@
 
 
               <entry>If true, enables ASSERT checking.</entry>
               <entry>If true, enables ASSERT checking.</entry>
             </row>
             </row>
+
+            <row>
+              <entry><emphasis>soapTraceLevel</emphasis></entry>
+
+              <entry>Default: 1</entry>
+
+              <entry>The level of detail in reporting SOAPCALL or HTTPCALL
+              information (set to 0 for none, 1 for normal, 2 - 8 for more
+              detail)</entry>
+            </row>
           </tbody>
           </tbody>
         </tgroup>
         </tgroup>
       </informaltable></para>
       </informaltable></para>

+ 2 - 1
docs/ECLStandardLibraryReference/SLR-Mods/Find.xml

@@ -78,7 +78,8 @@
   </emphasis>string. If the <emphasis>target</emphasis> is not found or the
   </emphasis>string. If the <emphasis>target</emphasis> is not found or the
   specified <emphasis>instance</emphasis> is greater than the number of
   specified <emphasis>instance</emphasis> is greater than the number of
   occurrences of the <emphasis>target</emphasis> in the
   occurrences of the <emphasis>target</emphasis> in the
-  <emphasis>source</emphasis>, StringFind returns zero (0).</para>
+  <emphasis>source</emphasis>, <emphasis role="bold">Find</emphasis> returns
+  zero (0).</para>
 
 
   <para>Example:</para>
   <para>Example:</para>
 
 

+ 3 - 2
esp/files/scripts/configmgr/navtree.js

@@ -2565,8 +2565,9 @@ function promptVerifyPwd(category, params, attrName, oldValue, newValue, recordI
       xmlArgs += "\" attrName=\"" + attrName;
       xmlArgs += "\" attrName=\"" + attrName;
       xmlArgs += "\" viewType=\"password";
       xmlArgs += "\" viewType=\"password";
       xmlArgs += "\" rowIndex=\"" + recordIndex;
       xmlArgs += "\" rowIndex=\"" + recordIndex;
-      xmlArgs += "\" oldValue=\"" + escape(oldValue);
-      xmlArgs += "\" newValue=\"" + escape(pwd) + "\"/></XmlArgs>";
+      xmlArgs += "\" oldValue=\"" + oldValue;
+      xmlArgs += "\" newValue=\"" + pwd + "\"/></XmlArgs>";
+      xmlArgs = encodeURIComponent(xmlArgs);
 
 
       YAHOO.util.Connect.asyncRequest('POST', '/WsDeploy/SaveSetting', {
       YAHOO.util.Connect.asyncRequest('POST', '/WsDeploy/SaveSetting', {
         success: function(o) {
         success: function(o) {