RetrieveTemplateArchive

Overview

This operation is used to retrieve the HTML form template from the ReferralNet services repository and is returned in the form of an industry standard zip archive. The templateUID of the desired template can be obtained from a preceding invocation of the RetrieveRecipientTemplates operation.

The structure of the archive basically mirrors that of a normal web site folder structure and also supports an optional META-INF folder used to house template specific metadata.

The HTML form must have an onsubmit attribute, with the returning boolean value determining whether the form is actioned.

<script language="JavaScript" type="text/javascript">
function check(){
   elem = document.getElementById("general_notes");
   if(elem!=null){
      if(elem.value.length==0){
         alert("General notes must be entered!");
	 elem.focus();
	 return false;
      }
   }
   return true;
}	
 
<form id="Sample" name="Sample" onsubmit="return check()">

Notes

  • Each form field / widget needs to have a unique "name" attribute associated to it.

Example Template Archive Structure

  • SampleTemplate.zip
    • META-INF/
      • icon.png
      • preview.png
      • manifest.xml
      • template.xslt
    • index.html
    • style.css
    • images/
      • MastHead.jpg

Example Request

<urn:RetrieveTemplateArchiveRequest>urn:template:233ab8a0-07cb-11de-8c30-0800200c9a66</urn:RetrieveTemplateArchiveRequest>

Example Response

<ns6:RetrieveTemplateArchiveResponse xmlns:ns6="urn:global-health:referralnet">
   <ns3:RegistryResponse status="Success" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"/>
   <ns6:TemplateArchive>UEsDBBQAAAAIANZTazr9KNtajhoAAAuDQAAAAA</ns6:TemplateArchive>
</ns6:RetrieveTemplateArchiveResponse>

Sample Template

 
dev/refnet_retrieve_template.txt · Last modified: 2009/07/02 02:25 by timc