Differences

This shows you the differences between two versions of the page.

dev:refnet_list_allowed_attachment_types [2014/01/05 23:53]
glennz created
dev:refnet_list_allowed_attachment_types [2014/01/06 00:26] (current)
glennz
Line 1: Line 1:
====== ListAllowedAttachmentTypes ====== ====== ListAllowedAttachmentTypes ======
-Content coming soon+The ListAllowedAttachmentTypes operation returns the list of allowed services categories defined under a ReferralNet user's account. The service categories for an account can be added through the [[dev:refnet_add_allowed_attachment_types|AddAllowedAttachmentTypes ]] operation or removed through the [[dev:refnet_remove_allowed_attachment_type|RemovedAlloweAttachmentTypes ]] operation. 
 + 
 +Here is an example of the soap request which only expects one username as a parameter. 
 + 
 +<code xml> 
 +<ListAllowedAttachmentTypesRequest xsi:type="ListAllowedAttachmentTypesRequest">johndoe</ListAllowedAttachmentTypesRequest> 
 +</code> 
 + 
 +If the operation is successful, it will return the list of service categories. 
 + 
 +<code xml> 
 +<Response xsi:type="ListAttachmentTypesResponse"> 
 +  <rs:RegistryResponse status="Success" /> 
 +  <AttachmentType> 
 +    <namespace>urn:smd</namespace> 
 +    <value>http://ns.electronichealth.net.au/ack/sc/deliver/hl7Ack/2012</value> 
 +  </AttachmentType> 
 +</Response> 
 +</code> 
 + 
 +If the operation failed, it should return a soap response similar to the one below.  
 + 
 +<code xml> 
 +<Response xsi:type="ListAttachmentTypesResponse"> 
 +  <rs:RegistryResponse status="Failure"> 
 +    <rs:RegistryErrorList> 
 +      <rs:RegistryError codeContext="Invalid ReferralNet account 'unknownuser' (disabled)" errorCode="UserAccountDisabledException" severity="Error"></rs:RegistryError> 
 +    </rs:RegistryErrorList> 
 +  </rs:RegistryResponse> 
 +</Response> 
 +</code>
 
dev/refnet_list_allowed_attachment_types.txt · Last modified: 2014/01/06 00:26 by glennz