ProvideAndRegisterDocumentSetB

The ProvideAndRegisterDocumentSetB SOAP operation is used to convey metadata from the Document Repository actor to the Document Registry actor, and is the primary method with which to package, address and send a set of documents to a specified endpoint.

Although at first glance, this operation appears onerous, it is in fact quite straight forward once the concept of Packages and ExtrinsicObjects are understood. As mentioned previously, the implementation of XDR can be likened to a folder (package) that contains 1..n documents each associated with describing metadata (classification, mime-type, slots, encrypted or not encrypted, name, id etc).

Sample Request

<ProvideAndRegisterDocumentSetRequest xmlns="urn:ihe:iti:xds-b:2007">  
   <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" id="AB4A45BF_BBBD_4E26_95D4_B06D1E6D99AD">  
      <RequestSlotList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">  
         <Slot xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" name="urn:refnet:recipient">  
            <ValueList>  
               <Value>urn:refnet:timc</Value>  
            </ValueList>  
         </Slot>  
         <Slot xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" name="generated-by">  
            <ValueList>  
               <Value>timc</Value>  
            </ValueList>  
         </Slot>  
      </RequestSlotList>  
      <RegistryObjectList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">  
         <Identifiable id="SubmissionSet01" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:RegistryPackage" xsi:type="RegistryPackageType">  
            <Classification classificationNode="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd" classifiedObject="SubmissionSet" nodeRepresentation="urn:refnet:secure-message" />  
         </Identifiable>  
         <Identifiable id="ID_EA01D8FF_D58A_42CD_9C79_F41B05F93BD8" isOpaque="false" mimeType="image/jpeg" objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1" xsi:type="ExtrinsicObjectType">  
            <Slot name="urn:refnet:filename">  
               <ValueList>  
                  <Value>about.JPG</Value>  
               </ValueList>  
            </Slot>  
            <Slot name="source-filename">  
               <ValueList>  
                  <Value>\\ghper\timc$\My Pictures\about.JPG</Value>  
               </ValueList>  
            </Slot>  
            <Name>  
               <LocalizedString value="about.JPG" />  
            </Name>  
         </Identifiable>  
         <Identifiable associationType="urn:oasis:names:tc:ebxml-regrep:AssociationType:HasMember" id="ID_7FC26F56_0500_4921_811E_5F1045235A16" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Association" sourceObject="SubmissionSet01" targetObject="ID_EA01D8FF_D58A_42CD_9C79_F41B05F93BD8" xsi:type="AssociationType1" />  
      </RegistryObjectList>  
   </SubmitObjectsRequest>  
   <Document id="ID_EA01D8FF_D58A_42CD_9C79_F41B05F93BD8">/9j/4AAQSkZJRgABAQEAYABgAAD/4RB6RXhpZgAATU0AKgAAAAgAA4dpAAQAAAACiiigAooooAKKKKAP/2Q==</Document>  
</ProvideAndRegisterDocumentSetRequest>

Sample Response

 <ns3:RegistryResponse xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" status="Success" requestId="urn:529claqk" />

sample_project.zip

 
dev/submitobjectsr.txt · Last modified: 2009/11/23 09:10 by timc