Stores a BLOB in memory and returns an intern URL to directly access the data without using HTTP.
 

1 blob.toMemoryURL

It can be used for the FOP processor or to avoid using operations in ports.

<blob.toMemoryURL>
    <blob /> !
</blob.toMemoryURL>

Utility

An application of this label is in the implementation of the new Immediate Information Supply (SII) that the Tax Agency has just implemented.

Example

In the soap.call tag, the keyStoreFile attribute is the URL of an file with the form file://path/filename. It is a standard protocol and a sniffer could intercept it.

The URL which generates blob.toMemoryURL has the form blob://localhost/5282b729-1e8d-48ba-bd7d-dd48b7c9fe5. It is only interpretable by an Axional Server and when the data is in memory, the privacy of it is guaranteed.

It could be used in any tab which requires an URL as argument.

Before it should be done:

Copy
<file.bytes.write>
    <file name='${m_file_in_fs_disk}'  type='${m_path_type}' /> 
    <file name='${m_file_in_disktool}' type='disktool' /> 
</file.bytes.write>
<set name='m_canonicalpath_file'>
    <file.getCanonicalPath>
        <file name='${m_file_in_fs_disk}' type='${m_path_type}' />
    </file.getCanonicalPath>
</set>

<soap.call
    debug="false"
    url="${m_url_end_point}"
    keyStoreFile="${m_uri_keystorefile}"
    keyStorePassword="${m_keystorepassword}"
    sendGzip="false"
    encoding='NS_URI_LITERAL_XML'
>

And now:

Copy
<set name='m_cert_url'>
    <blob.toMemoryURL>
        <blob><file name='CERTS/my_cert.pfx' type='disktool' /></blob>
    </blob.toMemoryURL>
</set>

<soap.call
    debug="false"
    url="${m_url_end_point}"
    keyStoreFile="${m_uri_keystorefile}"
    keyStorePassword="${m_keystorepassword}"
    sendGzip="false"
    encoding='NS_URI_LITERAL_XML'
>