{"id":1543,"date":"2014-10-15T22:39:40","date_gmt":"2014-10-15T22:39:40","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=1543"},"modified":"2017-08-30T23:05:18","modified_gmt":"2017-08-30T23:05:18","slug":"post-data-to-eformz-via-a-web-service-call","status":"publish","type":"post","link":"https:\/\/minisoft.com\/support\/post-data-to-eformz-via-a-web-service-call\/","title":{"rendered":"Post Data to eFORMz via a Web Service Call"},"content":{"rendered":"<div>Beginning with Version 10, eFORMz can\u00a0call a web service to post data to a queue. The following sample URL shows how to form the request:<\/div>\n<p>&nbsp;<\/p>\n<pre>https:\/\/localhost:8000\/servlet\/com.minisoft.AppServer.AppServer?APP=com.minisoft.eformz.eFORMzApp&amp;director&amp;Host=localhost&amp;Port=9996&amp;User=minisoft&amp;Password=password&amp;ConfigurationName=accessible.cfg&amp;QueueName=Accessible&amp;NameTemplate=data_.dat<\/pre>\n<p>&nbsp;<\/p>\n<div>If you include \u201c&amp;ProcessData=true\u201d, the web service wakes up the queue monitor (if it is sleeping) to process anything in the queue immediately.<\/div>\n<p>Any data sent as content is put in a file in the named queue.\u00a0The Director must\u00a0be running the named configuration and must be accessible to web services.\u00a0You can use any content type except \u201ctext\/plain\u201d.\u00a0There&#8217;s no need to specify the content type. If you use \u201ctext\/plain\u201d it tries to parse it for parameters and if you use \u201ctext\/xml\u201d it tries to parse it for a Service Configuration xml file.<\/p>\n<hr \/>\n<p><strong>base URL<\/strong><\/p>\n<pre>https:\/\/localhost:8000\/servlet\/com.minisoft.AppServer.AppServer<\/pre>\n<p><strong>parameter to AppServer<\/strong><\/p>\n<pre>?APP=com.minisoft.eformz.eFORMzApp<\/pre>\n<hr \/>\n<h4>Parameters for Director Service<\/h4>\n<p><strong>Start the Director<\/strong><\/p>\n<pre>&amp;director<\/pre>\n<p><strong>Which host<\/strong><\/p>\n<pre>&amp;Host=localhost&amp;Port=9996<\/pre>\n<p><strong>Authentication for Director<\/strong><\/p>\n<pre>&amp;User=minisoft&amp;Password=password<\/pre>\n<p><strong>Toolkit file<\/strong> <em>*Must be started with -ac parameter<\/em><\/p>\n<pre>&amp;ConfigurationName=accessible.cfg<\/pre>\n<p><strong>Queue name in toolkit file<\/strong><\/p>\n<pre>&amp;QueueName=Accessible<\/pre>\n<p><strong>File name for POSTed data<\/strong><\/p>\n<pre>&amp;NameTemplate=data_.dat<\/pre>\n<p><strong>Wake a sleeping queue<\/strong><\/p>\n<pre>&amp;ProcessData=true<\/pre>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Beginning with Version 10, eFORMz can\u00a0call a web service to post data to a queue. The following sample URL shows how to form the request: &nbsp; https:\/\/localhost:8000\/servlet\/com.minisoft.AppServer.AppServer?APP=com.minisoft.eformz.eFORMzApp&amp;director&amp;Host=localhost&amp;Port=9996&amp;User=minisoft&amp;Password=password&amp;ConfigurationName=accessible.cfg&amp;QueueName=Accessible&amp;NameTemplate=data_.dat &nbsp; If you include \u201c&amp;ProcessData=true\u201d, the web service wakes up the queue monitor (if it is sleeping) to process anything in the queue immediately. Any data sent as [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[27,25],"_links":{"self":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1543"}],"collection":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=1543"}],"version-history":[{"count":40,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1543\/revisions"}],"predecessor-version":[{"id":5092,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/1543\/revisions\/5092"}],"wp:attachment":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=1543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=1543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=1543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}