<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to pass multiple parameters to webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113658#M31614</link>
    <description>&lt;P&gt;When you pass parameters as a JSON request body, you can use pre-parsed request objects instead of having to create a JSONObject yourself. The req.parseContent() will give you access to the request body - if in JSON, it will be JSONObject, if form-data, it will be the appropriate object for that.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 07:20:34 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-04-09T07:20:34Z</dc:date>
    <item>
      <title>How to pass multiple parameters to webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113654#M31610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am able to pass 2 arguments to get webscript using below code:&lt;/P&gt;&lt;P&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;lt;shortname&amp;gt;FileFolderService Test Sample Webscript&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Uses the FileFolderService to create a folder and a file&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;/sample/filefolderservicetest?partname={partname}&amp;amp;amp;type={type}&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;lt;format default="html"&amp;gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;lifecycle&amp;gt;sample&amp;lt;/lifecycle&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;/P&gt;&lt;P&gt;But I want to pass 29 to 30 parameters which i want to access in java conrtoller . so is there any way to pass n numbers of arguments efficiently.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 12:59:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113654#M31610</guid>
      <dc:creator>Isha</dc:creator>
      <dc:date>2020-04-08T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple parameters to webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113655#M31611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80752"&gt;@Isha&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Would the &lt;A href="https://docs.alfresco.com/6.0/references/api-wsdl-args.html" target="_self" rel="nofollow noopener noreferrer"&gt;args&lt;/A&gt;&amp;nbsp;element work for you?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 13:17:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113655#M31611</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-04-08T13:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple parameters to webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113656#M31612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible can you please share one dummy code snippet&amp;nbsp; where I can get how to use args.&lt;/P&gt;&lt;P&gt;I have refered below url but still it requires name of all 30 arguments. Can' I pass list or array of arguments??&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.0/references/api-wsdl-args.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.0/references/api-wsdl-args.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 13:20:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113656#M31612</guid>
      <dc:creator>Isha</dc:creator>
      <dc:date>2020-04-08T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple parameters to webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113657#M31613</link>
      <description>&lt;P&gt;You could pass these 30 parameters as a json object in the http body, instead of using url args.&lt;/P&gt;&lt;P&gt;You can then retrieve them in java controller this way:&lt;/P&gt;&lt;PRE&gt;new JSONObject(req.getContent().getContent())&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 06:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113657#M31613</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-04-09T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple parameters to webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113658#M31614</link>
      <description>&lt;P&gt;When you pass parameters as a JSON request body, you can use pre-parsed request objects instead of having to create a JSONObject yourself. The req.parseContent() will give you access to the request body - if in JSON, it will be JSONObject, if form-data, it will be the appropriate object for that.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 07:20:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-multiple-parameters-to-webscript/m-p/113658#M31614</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-04-09T07:20:34Z</dc:date>
    </item>
  </channel>
</rss>

