Skip to content

Instantly share code, notes, and snippets.

@zachbf
Last active May 18, 2023 08:16
Show Gist options
  • Save zachbf/6866a6a719e71af81a9d9685750f90e3 to your computer and use it in GitHub Desktop.
Save zachbf/6866a6a719e71af81a9d9685750f90e3 to your computer and use it in GitHub Desktop.
from zeep import Client
#https://www.airservicesaustralia.com/naips/briefing-service?wsdl
#https://www.airservicesaustralia.com/naips/briefing-service?xsd=1
def main():
endpoint = 'https://www.airservicesaustralia.com/naips/briefing-service?wsdl'
client = Client(wsdl=endpoint)
# Customize your request here
request_data = {
'requestor': 'naips_username',
'password': 'naips_password',
'source': 'atis',
'loc': ['YSSY', 'YMML'],
#'duration': '6', # Adjust the duration as per your requirement
'flags': {'met': True}
}
response = client.service['loc-brief'](**request_data)
print(response.content)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment