Topic
  • 25 replies
  • Latest Post - ‏2013-02-13T12:02:27Z by SystemAdmin
devdp
devdp
37 Posts

Pinned topic How to update the local file?

‏2012-10-31T05:59:59Z |
Hi All,

Could anyone please let me know is there any easy way to update the file which is in local.(Eg local:///testmanifest.xml)?
I want to update the file using xslt/DPservice..

dp
Updated on 2013-02-13T12:02:27Z at 2013-02-13T12:02:27Z by SystemAdmin
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-10-31T08:35:14Z  
    Hello

    If you want to update file in local:/// directory, the only way is to use SOMA call

    Here is an exemple

    <env:Envelope xmlns:dpquery="http://www.datapower.com/param/query" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/management">
            <env:Body>
                    <dp:request domain="yourDomain">
                            <dp:set-file name="local:///yourFile">yourfileBase64</dp:set-file>
                    </dp:request>
            </env:Body>
    </env:Envelope>
    


    you can test with curl

    curl -k -u user:PassWord -d @yourXmlFileWithSomaRequest.xml https://dataPowerAdress:5550/service/mgmt/current
    
    Updated on 2014-03-25T02:46:37Z at 2014-03-25T02:46:37Z by iron-man
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-10-31T08:46:32Z  
    here is an example in a styleSheet

    
    <?xml version=
    "1.0" encoding=
    "UTF-8"?> <xsl:stylesheet version=
    "1.0" xmlns:xsl=
    "http://www.w3.org/1999/XSL/Transform" xmlns:dp=
    "http://www.datapower.com/extensions" extension-element-prefixes=
    "dp" xmlns:dpquery=
    "http://www.datapower.com/param/query"> <xsl:template match=
    "/"> <xsl:variable name=
    "somaurl" select=
    "'https://adressDatapower:5550/service/mgmt/current'"/> <xsl:variable name=
    "pwd64" select=
    "dp:encode('user:Password','base-64')"/> <xsl:variable name=
    "basicAuth" select=
    "concat('Basic ',$pwd64)"/> <xsl:variable name=
    "domaine" select=
    "yourDomaine"/> <xsl:variable name=
    "pathDatapower" select=
    "'local:///'"/> <xsl:variable name=
    "httpHeaders"> <header name=
    "Content-Type">application/soap+xml</header> <header name=
    "Authorization"> <xsl:value-of select=
    "$basicAuth"/> </header> </xsl:variable> <xsl:variable name=
    "setFile"> <env:Envelope xmlns:dpquery=
    "http://www.datapower.com/param/query" xmlns:env=
    "http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp=
    "http://www.datapower.com/schemas/management"> <env:Body> <dp:request domain=
    "{$domaine}"> <dp:set-file name=
    "{$pathDatapower}"> <xsl:value-of select=
    "$fileBase64"/> </dp:set-file> </dp:request> </env:Body> </env:Envelope> </xsl:variable> <!-- execution de la requete SOMA pour copier le wsdl dans le rep local:
    ///dt01 --> <xsl:variable name=
    "result" select=
    "dp:soap-call($somaurl, $setFile
    /*, 'xslt-ssl', 0, '', $httpHeaders/* )"/> </xsl:template> </xsl:stylesheet>
    


    You see a SSL-proxy-profil called xslt-ssl. So Previsously you have to follow the Hermann Post : https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/entry/accessing_xml_management_interface_from_within_a_stylesheet38?lang=en
  • devdp
    devdp
    37 Posts

    Re: How to update the local file?

    ‏2012-10-31T09:10:37Z  
    • Daviiid
    • ‏2012-10-31T08:46:32Z
    here is an example in a styleSheet

    <pre class="jive-pre"> <?xml version= "1.0" encoding= "UTF-8"?> <xsl:stylesheet version= "1.0" xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" xmlns:dp= "http://www.datapower.com/extensions" extension-element-prefixes= "dp" xmlns:dpquery= "http://www.datapower.com/param/query"> <xsl:template match= "/"> <xsl:variable name= "somaurl" select= "'https://adressDatapower:5550/service/mgmt/current'"/> <xsl:variable name= "pwd64" select= "dp:encode('user:Password','base-64')"/> <xsl:variable name= "basicAuth" select= "concat('Basic ',$pwd64)"/> <xsl:variable name= "domaine" select= "yourDomaine"/> <xsl:variable name= "pathDatapower" select= "'local:///'"/> <xsl:variable name= "httpHeaders"> <header name= "Content-Type">application/soap+xml</header> <header name= "Authorization"> <xsl:value-of select= "$basicAuth"/> </header> </xsl:variable> <xsl:variable name= "setFile"> <env:Envelope xmlns:dpquery= "http://www.datapower.com/param/query" xmlns:env= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp= "http://www.datapower.com/schemas/management"> <env:Body> <dp:request domain= "{$domaine}"> <dp:set-file name= "{$pathDatapower}"> <xsl:value-of select= "$fileBase64"/> </dp:set-file> </dp:request> </env:Body> </env:Envelope> </xsl:variable> <!-- execution de la requete SOMA pour copier le wsdl dans le rep local: ///dt01 --> <xsl:variable name= "result" select= "dp:soap-call($somaurl, $setFile /*, 'xslt-ssl', 0, '', $httpHeaders/* )"/> </xsl:template> </xsl:stylesheet> </pre>

    You see a SSL-proxy-profil called xslt-ssl. So Previsously you have to follow the Hermann Post : https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/entry/accessing_xml_management_interface_from_within_a_stylesheet38?lang=en
    Thanks David for the quick response..
    Is there any other way to achieve without using the SOMA call/CLI?
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-10-31T09:27:55Z  
    • devdp
    • ‏2012-10-31T09:10:37Z
    Thanks David for the quick response..
    Is there any other way to achieve without using the SOMA call/CLI?
    There is another way.

    You can use file Management. But i think you want to create/update automotically your files

    There is a function called dp:dump-nodes . This function copy a file in the temporary: directory

    But, I think you want to create/update in local directory. If it's this case, there is only one way to do this automatically : SOMA Calls

    Sorry
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-21T15:45:17Z  
    I tried the way you mentioned. But, one thing file getting loaded as encode file which is not in xml format.
    Is there any way load/update XML file without being encrypted.
    Thanks.
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-11-21T16:42:02Z  
    I tried the way you mentioned. But, one thing file getting loaded as encode file which is not in xml format.
    Is there any way load/update XML file without being encrypted.
    Thanks.
    Hello

    You tried dp:dumpnode? Or SOMA call?
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-21T16:52:19Z  
    I tried with SOMA call.

    Also I tried with <dp:dump-nodes> load xml file only into dp temporary directory. But my requirement load/update file into local dir in xml format.
    Thanks
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-11-21T17:14:36Z  
    I tried with SOMA call.

    Also I tried with <dp:dump-nodes> load xml file only into dp temporary directory. But my requirement load/update file into local dir in xml format.
    Thanks
    Can you upload both? SOMA call and dp:dump-node?
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-21T17:51:42Z  
    Yes able to uploads file in both SOMA and <dp:dumpnode>. But, problem upload file using SOMA call is encrypt xml content and save it which remove xml structure.Incase of <dp:dumpnode> it load xml file only to dp temp directory.

    Please see below cods,

    For SOMA Call:

    <xsl:variable name="somaurl" select="string('https://127.0.0.1:5550/service/mgmt/current')"/>
    <xsl:variable name="pwd64" select="dp:encode('test:test','base-64')"/>
    <xsl:variable name="basicAuth" select="concat('Basic ',$pwd64)"/>
    <xsl:variable name="domain" select="string('Development')"/>
    <xsl:variable name="pathDatapower" select="'local:///test.xml'"/>
    <xsl:variable name="httpHeaders">
    <header name="Content-Type">application/soap+xml</header>
    <header name="Authorization">
    <xsl:value-of select="$basicAuth"/>
    </header>
    </xsl:variable>
    <xsl:variable name="fileBase64" select="dp:encode($updatepartnerresult,'base-64')"/>
    <xsl:variable name="setFile">
    <env:Envelope xmlns:dpquery="http://www.datapower.com/param/query" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/management">
    <env:Body>
    <dp:request domain="{$domain}">
    <dp:set-file name="{$pathDatapower}">
    <xsl:copy-of select="$fileBase64"/>
    </dp:set-file>
    </dp:request>
    </env:Body>
    </env:Envelope>
    </xsl:variable>
    <xsl:variable name="result" select="dp:soap-call($somaurl,$setFile/*,'xslt-ssl',0,'',$httpHeaders/*)"/>
    For <dp:dumpnode> node:

    <xsl:variable name="path" select="string('local:///CodeTest/Common/test.xml')"/>

    <dp:dump-nodes file="$path" nodes="$updatedres"/>

    Above code unable load xml node into the given path.
    Appreciated your early response.

    Thanks,
  • HermannSW
    HermannSW
    4654 Posts

    Re: How to update the local file?

    ‏2012-11-21T19:00:02Z  
    Yes able to uploads file in both SOMA and <dp:dumpnode>. But, problem upload file using SOMA call is encrypt xml content and save it which remove xml structure.Incase of <dp:dumpnode> it load xml file only to dp temp directory.

    Please see below cods,

    For SOMA Call:

    <xsl:variable name="somaurl" select="string('https://127.0.0.1:5550/service/mgmt/current')"/>
    <xsl:variable name="pwd64" select="dp:encode('test:test','base-64')"/>
    <xsl:variable name="basicAuth" select="concat('Basic ',$pwd64)"/>
    <xsl:variable name="domain" select="string('Development')"/>
    <xsl:variable name="pathDatapower" select="'local:///test.xml'"/>
    <xsl:variable name="httpHeaders">
    <header name="Content-Type">application/soap+xml</header>
    <header name="Authorization">
    <xsl:value-of select="$basicAuth"/>
    </header>
    </xsl:variable>
    <xsl:variable name="fileBase64" select="dp:encode($updatepartnerresult,'base-64')"/>
    <xsl:variable name="setFile">
    <env:Envelope xmlns:dpquery="http://www.datapower.com/param/query" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/management">
    <env:Body>
    <dp:request domain="{$domain}">
    <dp:set-file name="{$pathDatapower}">
    <xsl:copy-of select="$fileBase64"/>
    </dp:set-file>
    </dp:request>
    </env:Body>
    </env:Envelope>
    </xsl:variable>
    <xsl:variable name="result" select="dp:soap-call($somaurl,$setFile/*,'xslt-ssl',0,'',$httpHeaders/*)"/>
    For <dp:dumpnode> node:

    <xsl:variable name="path" select="string('local:///CodeTest/Common/test.xml')"/>

    <dp:dump-nodes file="$path" nodes="$updatedres"/>

    Above code unable load xml node into the given path.
    Appreciated your early response.

    Thanks,
    > Yes able to uploads file in both SOMA and <dp:dumpnode>. But, problem upload file using SOMA call is encrypt xml content and save it which remove xml structure.
    >
    Please clarify what is the problem.
    What do you mean by "encrypt xml", do you mean base64 encoded?
    Please let us know the value of "$updatepartnerresult".

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-22T11:22:22Z  
    Hi Hermann,

    Exact problem is when I am uploading xml file into dp local directory using SOMA call its not uploading in xml format.

    I mean encrypted xml is base64 encoded.

    Variable - $updatepartnerresult value is xml.
    Thanks,
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-11-22T11:25:11Z  
    Hi Hermann,

    Exact problem is when I am uploading xml file into dp local directory using SOMA call its not uploading in xml format.

    I mean encrypted xml is base64 encoded.

    Variable - $updatepartnerresult value is xml.
    Thanks,
    Hello

    You have to parse $updatepartnerresult in base 64 value
  • HermannSW
    HermannSW
    4654 Posts

    Re: How to update the local file?

    ‏2012-11-22T12:35:43Z  
    • Daviiid
    • ‏2012-11-22T11:25:11Z
    Hello

    You have to parse $updatepartnerresult in base 64 value
    Please copy in a sample of your $updatepartnerresult.
    If $updatepartnerresult is the serialized string of an XML document, then this base64 encoding is needed for the SOMA call:
    <xsl:variable name="fileBase64" select="dp:encode($updatepartnerresult,'base-64')"/>
    


    Is $updatepartnerresult as string? (serialized by <dp:serialize .../>)
    Or is XML?

     
    Hermann <myXsltBlog/> <myXsltTweets/>
    Updated on 2014-03-25T02:45:47Z at 2014-03-25T02:45:47Z by iron-man
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-22T12:48:35Z  
    Value of $updatepartnerresult

    <PartnerProperties>
    <Partner>
    <PartnerKey>12</PartnerKey>
    <LifeCycleState>1</LifeCycleState>
    <PartnerName></PartnerName>
    <PartnerInfo>
    <DeliveryStatus>true</DeliveryStatus>
    <RetryInterval>10</RetryInterval>
    <RetryLimit>3</RetryLimit>
    <PartnerIP>sibcsariip</PartnerIP>
    <PartnerPort>7001</PartnerPort>
    </PartnerInfo>
    <Services>
    <ServiceInfo>
    <MessageCode>SIBCSARI-1</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    <ServiceInfo>
    <MessageCode>SIBCSARI-2</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    <ServiceInfo>
    <MessageCode>SIBCSARI-3</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    </Services>
    </Partner>
    </PartnerProperties>

    But above xml loads in dp local directory in below format
    SIBCSARI00000012 Investment Banktrue103sibcsariip7001XADDRQhttp://10.11.101.106:5555falsetrue1true4.5BCUTRQhttp://10.11.101.106:5555falsetrue1true4.5XADDRQhttp://10.11.101.106:5555falsetrue1true4.5BKRCRQhttp://10.11.101.106:5555falsetrue1true4.5XADRRQhttp://10.11.45.21:5285/invoke/FeequeryTest:XADRRQ_Ackfalsetrue1true4.5XACRRQhttp://10.11.101.106:5555falsetrue1true4.5BSRLRQhttp://10.11.101.106:5555falsetrue1true4.5BINQRQfalsetrue1true4.5PVALRQfalsetrue1true4.5PADVRQfalsetrue1true4.5PMDVRQfalsetrue1true4.5BSPLRQfalsetrue1true4.5XRESRQfalsetrue1true4.5BSRLRQfalsetrue1true4.5XFRRRQfalsetrue1true4.5CINQRQfalsetrue1true4.5CADDRQfalsetrue1true4.5CDLDRQfalsetrue1true4.5BIDNRQfalsetrue1true4.5RCANRQfalsetrue1true4.5RINQRQfalsetrue1true4.5RVALRQfalsetrue1true4.5RADVRQfalsetrue1true4.5FINQRQfalsetrue1true4.5CRINRQfalsetrue1true4.5PCONRSfalsetrue1true4.5XFCRRQfalsetrue1true4.5XRESRQfalsetrue1true4.5XFRRRQfalsetrue1true4.5
  • Daviiid
    Daviiid
    284 Posts

    Re: How to update the local file?

    ‏2012-11-22T13:02:48Z  
    Value of $updatepartnerresult

    <PartnerProperties>
    <Partner>
    <PartnerKey>12</PartnerKey>
    <LifeCycleState>1</LifeCycleState>
    <PartnerName></PartnerName>
    <PartnerInfo>
    <DeliveryStatus>true</DeliveryStatus>
    <RetryInterval>10</RetryInterval>
    <RetryLimit>3</RetryLimit>
    <PartnerIP>sibcsariip</PartnerIP>
    <PartnerPort>7001</PartnerPort>
    </PartnerInfo>
    <Services>
    <ServiceInfo>
    <MessageCode>SIBCSARI-1</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    <ServiceInfo>
    <MessageCode>SIBCSARI-2</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    <ServiceInfo>
    <MessageCode>SIBCSARI-3</MessageCode>
    <OutboundURL>http://10.11.101.106:5555</OutboundURL>
    <Compression>false</Compression>
    <MessagePersistense>true</MessagePersistense>
    <Priority>1</Priority>
    <Subscription>true</Subscription>
    <XSDVersion>4.5</XSDVersion>
    </ServiceInfo>
    </Services>
    </Partner>
    </PartnerProperties>

    But above xml loads in dp local directory in below format
    SIBCSARI00000012 Investment Banktrue103sibcsariip7001XADDRQhttp://10.11.101.106:5555falsetrue1true4.5BCUTRQhttp://10.11.101.106:5555falsetrue1true4.5XADDRQhttp://10.11.101.106:5555falsetrue1true4.5BKRCRQhttp://10.11.101.106:5555falsetrue1true4.5XADRRQhttp://10.11.45.21:5285/invoke/FeequeryTest:XADRRQ_Ackfalsetrue1true4.5XACRRQhttp://10.11.101.106:5555falsetrue1true4.5BSRLRQhttp://10.11.101.106:5555falsetrue1true4.5BINQRQfalsetrue1true4.5PVALRQfalsetrue1true4.5PADVRQfalsetrue1true4.5PMDVRQfalsetrue1true4.5BSPLRQfalsetrue1true4.5XRESRQfalsetrue1true4.5BSRLRQfalsetrue1true4.5XFRRRQfalsetrue1true4.5CINQRQfalsetrue1true4.5CADDRQfalsetrue1true4.5CDLDRQfalsetrue1true4.5BIDNRQfalsetrue1true4.5RCANRQfalsetrue1true4.5RINQRQfalsetrue1true4.5RVALRQfalsetrue1true4.5RADVRQfalsetrue1true4.5FINQRQfalsetrue1true4.5CRINRQfalsetrue1true4.5PCONRSfalsetrue1true4.5XFCRRQfalsetrue1true4.5XRESRQfalsetrue1true4.5XFRRRQfalsetrue1true4.5
    you have to serialize your input
    <xsl:variable name="serializedupdatepartnerresult ">
                            <dp:serialize select="$updatepartnerresult "/>
                    </xsl:variable>
    <xsl:variable name="fileBase64" select="dp:encode($serializedupdatepartnerresult ,'base-64')"/>
    
    Updated on 2014-03-25T02:45:42Z at 2014-03-25T02:45:42Z by iron-man
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-22T13:27:07Z  
    Excellent its working fine now.Great Help.

    Thank you
  • HermannSW
    HermannSW
    4654 Posts

    Re: How to update the local file?

    ‏2012-11-22T14:25:05Z  
    Excellent its working fine now.Great Help.

    Thank you
    Hi Asif,

    > Excellent its working fine now.Great Help.
    >
    that is good.

    But one word of caution here -- you do the SOMA call from within a stylesheet, which means it will by done by "normal" transactions.

    "local:///" folder resides on DataPower flash memory, and that may "wear out" if written to too often, see:
    http://en.wikipedia.org/wiki/Flash_memory#Memory_wear

    Flash memory is not FRU (Field Replaceable Unit), please make sure that you have operational procedures in place avoiding wear out by your new service.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-22T15:00:31Z  
    • HermannSW
    • ‏2012-11-22T14:25:05Z
    Hi Asif,

    > Excellent its working fine now.Great Help.
    >
    that is good.

    But one word of caution here -- you do the SOMA call from within a stylesheet, which means it will by done by "normal" transactions.

    "local:///" folder resides on DataPower flash memory, and that may "wear out" if written to too often, see:
    http://en.wikipedia.org/wiki/Flash_memory#Memory_wear

    Flash memory is not FRU (Field Replaceable Unit), please make sure that you have operational procedures in place avoiding wear out by your new service.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Its strange.This updating xml file operation through SOMA is not often and daily count will be around 5 to 6 times.
    Operations Add/Update/Delete nodes and values of dp local XML file through SOMA call is advisable or not.

    If not can you pls. provide other way.
    Thanks
  • RCW
    RCW
    232 Posts

    Re: How to update the local file?

    ‏2012-11-22T15:16:16Z  
    Its strange.This updating xml file operation through SOMA is not often and daily count will be around 5 to 6 times.
    Operations Add/Update/Delete nodes and values of dp local XML file through SOMA call is advisable or not.

    If not can you pls. provide other way.
    Thanks
    Hi, I would highly recommend you to store these config files on an external HTTP server and reference them. Although if you do not do anything else but the mentioned operations, your device should not encounter any problems. Another possibility is to store the config files on your local:///harddisk/ folder on the raid. By this you will never see issues with your flash.
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2012-11-22T15:28:20Z  
    • RCW
    • ‏2012-11-22T15:16:16Z
    Hi, I would highly recommend you to store these config files on an external HTTP server and reference them. Although if you do not do anything else but the mentioned operations, your device should not encounter any problems. Another possibility is to store the config files on your local:///harddisk/ folder on the raid. By this you will never see issues with your flash.
    Thank you for advise. I will suggest to architect of project.
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2013-02-12T07:41:16Z  
    Thank you for advise. I will suggest to architect of project.
    Hi,

    In single Datapower-XI52 box I am successfully add/update/delete nodes in a xml file located under local directory through SOMA call.

    But, in production environment multiple datapower boxes present then how to sync xml files.

    Can you pls. help me on this.
    Thank you in advance.
  • HermannSW
    HermannSW
    4654 Posts

    Re: How to update the local file?

    ‏2013-02-12T10:36:07Z  
    Hi,

    In single Datapower-XI52 box I am successfully add/update/delete nodes in a xml file located under local directory through SOMA call.

    But, in production environment multiple datapower boxes present then how to sync xml files.

    Can you pls. help me on this.
    Thank you in advance.
    If you need to synchronize "local:" files on a group of appliances, then YOU are responsible to implement a reliable mechanism for it.

    Or alternatively, as Rolf (RCW) recommended above, put the file on a (highly available) HTTP server, WSRR server, ...

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: How to update the local file?

    ‏2013-02-12T14:38:21Z  
    • HermannSW
    • ‏2013-02-12T10:36:07Z
    If you need to synchronize "local:" files on a group of appliances, then YOU are responsible to implement a reliable mechanism for it.

    Or alternatively, as Rolf (RCW) recommended above, put the file on a (highly available) HTTP server, WSRR server, ...

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Dear Hermann,

    Project design is not allowing keeping file in a webserver. So, I have to find reliable mechanism.
    Could you please let me know how to implement this?

    Thank you in advance.
  • HermannSW
    HermannSW
    4654 Posts

    Re: How to update the local file?

    ‏2013-02-12T15:00:26Z  
    Dear Hermann,

    Project design is not allowing keeping file in a webserver. So, I have to find reliable mechanism.
    Could you please let me know how to implement this?

    Thank you in advance.
    Your service can update one box after the other with SOMA calls.
    You can check the response you get for each and verify that "OK" is returned for each.
    If not, then you must retry the file copying for those updates that failed.

     
    Hermann<myXsltBlog/> <myXsltTweets/>