endpoint_parser

sunpy.net.helio.endpoint_parser(link)[source] [edit on github]

Takes a link to a list of endpoints and parses the WSDL links.

Feeding 1 result from webservice_parser() into endpoint_parser() at a time will return a list of WSDL endpoints that are contained on the page from that link that was passed in.

Parameters:link (str) – A url to a page containing links to WSDL files.
Returns:endpoints (list or NoneType) – A list containing all of the available WSDL endpoints from the passed in url.

Examples

>>> from sunpy.net.helio import parser
>>> parser.endpoint_parser('http://msslkz.mssl.ucl.ac.uk/helio-hec/HelioService')  # doctest: +REMOTE_DATA
['http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioService?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioService1_0?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioService1_0b?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioLongQueryService?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioLongQueryService1_0?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioLongQueryService1_1?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioLongQueryService1_0b?wsdl',
'http://helio.mssl.ucl.ac.uk:80/helio-hec/HelioTavernaService?wsdl']