You need to sign in to do that
Don't have an account?
satishch_sfdc
Saving Http Callout Xml Response as a html file in attachments
Hi All,
I need to convert a HTTP Callout XML Response into HTML using XSLT sheets and save it as a blob file in attachments.
The behaviour of the visualforce page that i incorporated this functionality is working as expected (i can view the xml response as html with all the images and styles that are being applied from xslt sheets).
But the same behaviour is missing when i am trying to create a blob file using page.getcontent().
The source code of the Vf page and the blob file is different. So, i am unable to meet the requrement to download a html file that shows the xml response with style sheets.
Looking for help...!!
Thanks in Advance,
Satish
I need to convert a HTTP Callout XML Response into HTML using XSLT sheets and save it as a blob file in attachments.
The behaviour of the visualforce page that i incorporated this functionality is working as expected (i can view the xml response as html with all the images and styles that are being applied from xslt sheets).
But the same behaviour is missing when i am trying to create a blob file using page.getcontent().
The source code of the Vf page and the blob file is different. So, i am unable to meet the requrement to download a html file that shows the xml response with style sheets.
Looking for help...!!
Thanks in Advance,
Satish
Hope it helps.
I am doing the same... plz go through my vf code...
<apex:page controller="controller" sidebar="false" showHeader="false" cache="true" wizard="true" contentType="application/xml">
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="{!URLFOR($Resource.StyleSheets, '/profile/PPR.xslt')}"?>
{!strString}
</apex:page
The Stirng "strString" contains XML response generated through Http callout. In line no 3 i am appending xslt sheets that converts xml into html.
My approcah is working fine on vf page and the source code is html.
I need this html source code but not static content as a blob file. How to acheive this?
Thank you.