<dfm name='yahoo_placefinder' namespace='http://www.genesyslab.com/modules/dfm/yahoo_placefinder/v1'> 

	<protocols>
		<protocol type='http'>
			<params>
				<param name='timeout' expr='20'/>
			</params>
			<globalevents>
				<event name='done' mapping='200'/>
				<event name='error' mapping='0,400-510'/> 
			</globalevents>
		</protocol>
	</protocols>
	
	<connections> 
		<connection name='HTTP_simple' type='http' selectionmode='simple'> 
			<servers>
				<server name='Yahoo' host='where.yahooapis.com' port='80' />   
			</servers>
		</connection> 			 		
	</connections> 
		
	<transports> 
		<transport name='HTTP_GET' conntype='HTTP_simple'>  
			<param name='method' expr='GET'/> 
			<param name='enctype' expr='application/x-www-form-urlencoded'/>
			<param name='url' expr='/geocode?'/> 
		</transport> 			  		
	</transports> 
	
	<actions> 
 		<action name='query_location' transport='HTTP_GET' > 
			<overrides> 
				<param name='url' expr='/geocode?appid=${appid}&amp;gflags=${gflags}&amp;flags=${flags}&amp;location=${lat}+${long}'/>
			</overrides>  
			<attributes> 
				<attribute name='appid' type='String' optional='true' default='yourappid' mapping='parameter'/> 
				<attribute name='gflags' type='String' optional='true' default='R' mapping='parameter'/> 
				<attribute name='flags' type='String' optional='true' default='JT' mapping='parameter'/> 
				<attribute name='lat' type='String' optional='false' /> 
				<attribute name='long' type='String' optional='false' /> 
			</attributes>
		</action> 		
	</actions> 
	
</dfm>