| gif | history | intraday | java | news | objects | options | quote | soap | spots | tickers | weather | end of day | wddx |

Request:
 Chartdata
Sample Code:
 Coldfusion
 ASP
 JSP
 PHP
 Perl
 
ASP
The ASP sample below uses a COM object called ASP tear. The code and other samples can be found at openwddx.org. In addition to the ASP Tear object there is a COM object that allows you to parse the WDDX XML packet returned from a query request. It is also included in the sample code below.

Active Server Page Example
	
Dim strSymbol
strSymbol   	= Request.Form("Symbol")

Request_POST = 	1
Set HttpObj  = Server.CreateObject("SOFTWING.AspTear")
FinwinURL 	 = "http://www.finwin.com/processct/processchartdata.cfm"

PostData = "username=myUsername&password=myPassword&id=1183&request=Quote&Symbol=" & strSymbol

content = HttpObj.Retrieve(FinwinURL, Request_POST,PostData, "", "")
Response.write(content)
<% 
  // Create a new serializer "object" to do our work for us
  var MyDeser = Server.CreateObject("WDDX.Deserializer.1");
  MyRS = MyDeser.deserialize(content);

%>
<%@ LANGUAGE=JScript %>
<%
  for (RowNum = 1; RowNum <= MyRs.RecordCount; RowNum++) 
    {
      response.write(MyRS.getField(RowNum, "symbol"))
      response.write(MyRs.getfield(RowNum,"last"))
    }
%>
    
	

DTN Market Access
9110 West Dodge Road, Suite 200   Omaha, Nebraska 68114
Copyright 2012, All rights reserved