Return to releases.press.webservices documentation

PRESSRELEASES.CFM Source Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Recent VA Press Releases</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<cfscript>
Press = CreateObject("webservice", "https://#variables.ServerName#/webservices/press/releases.cfc?wsdl");
SearchQuery = Press.getPress_Query(StartDate="02/01/2004", EndDate="02/29/2004", MaxRecords="100", license="XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX");
</cfscript>
<div align="right">
	<a href="../documentation/releases.cfm" style="font-size:x-small;">Return to releases.press.webservices documentation</a>
</div>
<cfif SearchQuery.status is 0>
	<div align="center">
		<h2>Recent VA Press Releases</h2>
	</div>
	<cfoutput query="SearchQuery.results" group="press_date">
		<h4>#DateFormat(PRESS_DATE,"mmmm dd, yyyy")#</h4>
		<cfoutput>
		<cfif isdefined("url.id") and url.id is #PRESS_ID#>
			<cfinvoke webservice="https://#variables.ServerName#/webservices/press/releases.cfc?wsdl" method="getPressDetail_Query" returnvariable="ServiceResults">
				<cfinvokeargument name="press_id" value="#url.id#">
				<cfinvokeargument name="license" value="XXXXXXXX-XXXX-XXXX-XXXXXXXXXXXXXXXX">
			</cfinvoke>
			<p>
				<span style="font-family:tahoma,verdana,arial; font-size:12px; font-weight:bold; background-color:##E1E1E1">&nbsp;#UCase(PRESS_TITLE)#&nbsp;</span>			
				<br /> #ServiceResults.results.press_text#
			</p>
		<cfelse>
			<p align="left">
				<span style="font-family:tahoma,verdana,arial; font-weight:bold; font-size:12px">#PRESS_TITLE#...<a href="PressReleases.cfm?id=#PRESS_ID#" title="Full Story">Full Story Here</a></span>
			</p>
		</cfif>
		</cfoutput>
		<hr noshade>
	</cfoutput>
<cfelse>
	Sorry, an error occured while processing your request.  Please try again later.
</cfif>
</body>
</html>