1 # This migration demonstrates importing from SOAP/WSDL.
3 label: SOAP service providing weather.
6 # We use the SOAP parser source plugin.
8 data_fetcher_plugin: http # Ignored - SoapClient does the fetching.
9 data_parser_plugin: soap
10 # URL of a WSDL endpoint.
11 urls: http://www.webservicex.net/globalweather.asmx?WSDL
12 # The function to call on the service, and the parameters to pass. See
13 # http://www.webservicex.net/New/Home/ServiceDetail/56 for the XML structure
14 # of this feed - how CountryName is passed within the GetCitiesByCountry
16 function: GetCitiesByCountry
19 # Responses may be returned as an XML string, an object, or an array - specify
20 # the type of response here.
22 # Looking at the XML response at http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry,
23 # we see that the data items we want are within <NewDataSet><Table>.
24 item_selector: /NewDataSet/Table
25 # For each field, 'name' is the source property name to be used in the process
26 # steps below, 'label' is optional (to document the property), and selector
27 # is an xpath (-like, for array and object returns) string relative to the
28 # item_selector for retrieving that data value.
38 # 'ids' tells us what source property ('City') holds the unique identifying
39 # value for each imported item, and what schema type to use to hold that
40 # value in the migration map an message tables.
47 default_value: migrate_example_wine_varieties
50 plugin: entity:taxonomy_term