Topic
  • 1 reply
  • Latest Post - ‏2013-05-28T11:26:39Z by kenhygh
muvvala_ibm
muvvala_ibm
3 Posts

Pinned topic Read a file from NFS using Datapower

‏2013-05-24T16:53:57Z |

Hi Everyone,

I am having a requirement to read a file from nfs server and print its contents.

I am new to the xslt programming and I am using the below xslt file. Where NFSrkdmn02e is my mount name and the test is the file to read which already exists in the NFS server.

Your help will be highly appreciated. 

Thanks in advance.

Chandra.

THe xslt used is:

-------------------------------------------------------------

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:dp="http://www.datapower.com/extensions"
    xmlns:dpconfig="http://www.datapower.com/param/config"
    extension-element-prefixes="dp"
    exclude-result-prefixes="dp dpconfig">
      
<xsl:template match="/"> 
<xsl:message dp:priority="notice"> The content of the file is :
<dp:url-open target="dpnfs://NFSrkdmn02e/test"> </dp:url-open>                
</xsl:message>
</xsl:template>
</xsl:stylesheet>

----------------------------------------

Please find below the DP logs.

----------------------------------------------------

current time: 12:48:44 on 2013-05-24 
time category level tid direction  client msgid message  Show last  50  100  all 
Fri May 24 2013 
12:48:33 multistep warn 21411952 response 10.210.201.7 0x00340027 mpgw (vtest): Multistep Probe enabled 
12:48:33 xsltmsg notice 21411952 request 10.210.201.7 0x80000001 mpgw (vtest): The content of the file is : 
12:48:33 network error 21411952 request 10.210.201.7 0x80e00041 mpgw (vtest): url-open: Error parsing response from 'dpnfs://NFSrkdmn02e/log1' 
12:48:33 xmlparse error 21411952 request 10.210.201.7 0x80e003aa mpgw (vtest): Duplicate xml declaration at offset 97 of dpnfs://NFSrkdmn02e/log1 
12:48:33 multistep warn 21411952 request 10.210.201.7 0x00340027 mpgw (vtest): Multistep Probe enabled 
12:47:14 multistep warn 21404352 response 10.210.201.7 0x00340027 mpgw (vtest): Multistep Probe enabled 
-----------------------------------------------------------

 

 

 

 

 

 

Updated on 2013-05-24T16:56:04Z at 2013-05-24T16:56:04Z by muvvala_ibm
  • kenhygh
    kenhygh
    1577 Posts
    ACCEPTED ANSWER

    Re: Read a file from NFS using Datapower

    ‏2013-05-28T11:26:39Z  

     

    Chandra,

    Those error messages are telling you exactly what the problem is: the file isn't well-formed XML:

    12:48:33 xmlparse error 21411952 request 10.210.201.7 0x80e003aa mpgw (vtest): Duplicate xml declaration at offset 97 of dpnfs://NFSrkdmn02e/log1 

  • kenhygh
    kenhygh
    1577 Posts

    Re: Read a file from NFS using Datapower

    ‏2013-05-28T11:26:39Z  

     

    Chandra,

    Those error messages are telling you exactly what the problem is: the file isn't well-formed XML:

    12:48:33 xmlparse error 21411952 request 10.210.201.7 0x80e003aa mpgw (vtest): Duplicate xml declaration at offset 97 of dpnfs://NFSrkdmn02e/log1