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

Actions:
 Quote
 Symbol Lookup
 Headlines
 Symbol News
 Story
 Most Actives
 
Soap (Symbol News)
If your SOAP action is SymbolNews, you must use the symbols parameter. Set the symbols node to the name of a valid ticker symbol and FSS will return up to five stories on that symbol. The return data includes a "recordcount" node that indicates the total number of records returned (in this case, the total number news storys). Of course, if FSS finds no news for your symbol, this value will be 0 and there will be no rsSymbolNews node.

If you do receive news on a symbol, the rsSymbolNews Node will contain child nodes of:
  • Date_line - descriptive date and time from pubisher (Note: this is not a date time data type - use publish_date for that).
  • Distributor - Code representing the distributor. See entry for headlines for a discription of FinWin news distributors.
  • Headline - the headline for the story.
  • Issuer - Company issuing the story (if it's a press release for example)
  • Issuer_city - location of issuer (if applicable).
  • Issuer_postal_code - zip code of isssuer (if applicable).
  • Issuer_state - state of issuer (if applicable).
  • Publish_date - dateTime that the item was published.
  • Review - this value is set to 1 if FSS suspects a problem with the submission of the story.
  • Story_id - the ID number for this story in the FSS database.
Parameters
Username - The developers username you chose when you enrolled as a FinWin developer.
Password - The developers password you chose when you enrolled as a finwin developer.
ID - The site ID issued by FinWin when you enrolled this Site to receive FinWin content. Note: If you are developing your site and do not yet havea paid FinWin ID you may use the Complimentary developers site ID of 1183.
Symbol - A symbol FSS will use to search for news.
Request Structure
A SOAPAction of symbolnews takes only one required parameter beyond the standard username, password and id. That parameter is symbol. Place a valid ticker symbol in the symbol node and FSS will search for news on that symbol. As in all FSS requests, after the standard SOAP envelope and header, a SOAP request packet must have a node titled <ContentRequest xmlns='www.finwin.com'></ContentRequest>. This node contains child nodes that allow FSS to authorize and process your reqest - as in the example:
<?xml version='1.0'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
   xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body>
       <ContentRequest xmlns='www.finwin.com'>
         <REQUEST xsi:type="xsd:string">Quote</REQUEST>
         <USERNAME xsi:type="xsd:string">Sillyname</USERNAME>
         <PASSWORD xsi:type="xsd:string">sillypassword</PASSWORD>
         <ID xsi:type="xsd:string">1183</ID>				
         <SYMBOLS xsi:type="xsd:string">msft</SYMBOLS>					
         <SEARCHSTRING xsi:type="xsd:string"></SEARCHSTRING>
         <STORYNUMBER xsi:type="xsd:string"></STORYNUMBER>		
         <PAGEID xsi:type="xsd:int"></PAGEID>	
         <ROWCOUNT xsi:type="xsd:int"></ROWCOUNT>	
       </ContentRequest>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Return Data
			
<?xml version='1.0'?>
   <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
     xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
     xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
     xmlns:xsd="http://www.w3.org/1999/XMLSchema">
     <SOAP-ENV:Body>
       <Recordcount xsi:type="xsd:int">5</Recordcount>
       <Results xmlns="http://www.finwin.com">
         <rsSymbolNews> 
           <BODY xsi:type="xsd:string">
             &lt;P CLASS=&quot;BODY&quot;&gt; (RealTimeTraders.com) 
             ...body of the story goes here...
           </BODY>
           <DATE_LINE xsi:type="xsd:string">15:12 Wednesday, March 20, 2002</DATE_LINE>
           <DISTRIBUTOR xsi:type="xsd:string">RTT</DISTRIBUTOR>
           <HEADLINE xsi:type="xsd:string">Citigroup To Utilize Microsoft`s .NET Technologies - Update</HEADLINE>
           <ISSUER xsi:type="xsd:string"></ISSUER>
           <ISSUER_CITY xsi:type="xsd:string"></ISSUER_CITY>
           <ISSUER_POSTAL_CODE xsi:type="xsd:string"></ISSUER_POSTAL_CODE>
           <ISSUER_STATE xsi:type="xsd:string"></ISSUER_STATE>
           <PUBLISH_DATE xsi:type="xsd:date">2002-03-20 15:12:00</PUBLISH_DATE>
           <REVIEW xsi:type="xsd:int">0</REVIEW>
           <STORY_ID xsi:type="xsd:int">629775</STORY_ID>
         </rsSymbolNews>
       </Results>
     </SOAP-ENV:Body></SOAP-ENV:Envelope>

			
Fault Packets
FSS returns error descriptions as a soap packet with a "<Soapfault></Soapfault>" node in the results. An FSS SOAP fault packet looks like this:
					
<?xml version='1.0'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
   xmlns:xsd="http://www.w3.org/1999/XMLSchema">
   <SOAP-ENV:Body>
     <Results xmlns="http://www.finwin.com">
        <SoapFault>
          <EXCEPTION xsi:type="xsd:string">Username or password incorrect</EXCEPTION>
        </SoapFault>
     </Results>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

				
FSS Returns the following messages as SOAPFaults:
  • Method not allowed - Returned when you use an HTTP GET rather than a POST request. This return message also generates a 405 HTTP status code in the response header.
  • Missing SOAPAction Header - returned when no header titled SOAPAction was found.
  • Invalid SOAPAction Value - n is not a valid action - returned when the SOAPAction header contains an invalid or unrecognized SOAPAction
  • Missing Content-Type Header - A header named "content-type" was not found in your HTTP request
  • Invalid Content Type - your content-type header specifies something other than text/xml
  • Username Required - You did not provide a username in the request packet.
  • password Required - You did not provide a password in the request packet.
  • id Required - You did not provide a site id in the request packet.
  • Invalid Site ID - Your site ID is either unauthorized or not found.
  • Username or password incorrect - Your username and password are unauthorized or not found.

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