ListAllowedAttachmentTypes

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 AddAllowedAttachmentTypes operation or removed through the RemovedAlloweAttachmentTypes operation.

Here is an example of the soap request which only expects one username as a parameter.

<ListAllowedAttachmentTypesRequest xsi:type="ListAllowedAttachmentTypesRequest">johndoe</ListAllowedAttachmentTypesRequest>

If the operation is successful, it will return the list of service categories.

<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>

If the operation failed, it should return a soap response similar to the one below.

<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>
 
dev/refnet_list_allowed_attachment_types.txt · Last modified: 2014/01/06 00:26 by glennz