(self)
return odm.text
Returns study metadata as an XML string
Returns study metadata as an XML string
Returns study metadata as an XML string
def get_study_metadata_string(self):
        """
        Returns study metadata as an XML string
        """
        study_client = self.get_client('study')
        study_client.set_options(retxml=True)  # Don't parse the study metadata; just give us the raw XML
        resp = study_client.service.getMetadata({'identifier': self._study_id})
        soap_env = etree.fromstring(resp)
        nsmap = {
            'SOAP-ENV': "http://schemas.xmlsoap.org/soap/envelope/",
            'OC': "http://openclinica.org/ws/study/v1"
        }
        odm = soap_env.xpath('./SOAP-ENV:Body/OC:createResponse/OC:odm', namespaces=nsmap)[0]
        return odm.text
def get_study_metadata_string ( self ) : study_client = self . get_client ( 'study' ) study_client . set_options ( retxml = True ) # Don't parse the study metadata; just give us the raw XML resp = study_client . service . getMetadata ( { 'identifier' : self . _study_id } ) soap_env = etree . fromstring ( resp ) nsmap = { 'SOAP-ENV' : "http://schemas.xmlsoap.org/soap/envelope/" , 'OC' : "http://openclinica.org/ws/study/v1" } odm = soap_env . xpath ( './SOAP-ENV:Body/OC:createResponse/OC:odm' , namespaces = nsmap ) [ 0 ] return odm . text