You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Enrich tuples with data from external web services.

Parameter:

  • serviceMethod: REST/SOAP
  • wsdlLocation: url to the location of the wsdl file
  • operation: operation used to call a SOAP-Webservice
  • method: GET, POST_ARGUMENTS, POST_DOCUMENT
  • url:static part of the url
  • urlSuffix: url part after argument
  • arguments: Options ...
  • datafields: the datafields received through the webservice
  • charset: the charset, e.g. UTF-8
  • parsingMethod: XML or JSON
  • keyValueOutput: boolean

 

#PARSER PQL
#QUERY
input = ACCESS({
 	source=’Source’,
	wrapper=’GenericPull’,
	transport=’File’,
	protocol=’CSV’,
	datahandler=’Tuple’,
	options=[
		[’filename’, ’C:\Users\Daniel\Desktop\Test\Testdaten\cityInf.csv’],
		[’delay’, ’1’]
	 ],
	schema=[[’id’, ’Integer’],[’data’, ’String’]]
	}
)

s01 = WSENRICH({
	 servicemethod=’REST’,
	 method=’GET’,
	 url=’http://api.geonames.org/countryInfo?lang=it&’,
	 urlsuffix=’&username=demo&style=full’,
	 arguments=[[’country’, ’data’]],
	 datafields=[
	 [’//countryCode’, ’String’],
	 [’//countryName’, ’String’],
	 [’//isoNumeric’, ’Integer’]
	 ],
	 parsingMethod=’XPATH’,
	 outerJoin=’false’,
	 caching=’true’,
	 cacheSize=100,
	 expirationTime=300000,
	 removalStrategy=’FIFO’
	 },
 input
)
  • No labels