Skip to main content

Reduce a Web Services Definition (WSDL) down to a single file

Project description

wsdl2file - Reduce a Web Services Description down to a single file

This script walks a WSDL definition and all of its dependencies and reduces it down to a single file, being careful to not repeat the same dependency twice. It is useful when attempting to import large, complicated WSDL definitions, for example, those generated by Microsoft WCF or those that import the NIEM Schemas.

There are several other tools out there that attempt to flatten WSDL, but they usually repeat definitions in dependencies each time a dependency is referenced, resulting in very large, unruly output that can break code generators or client libraries like Zeep and Suds.

Currently, the following types of references are supported:

  • Import an XSD from a WSDL
  • Include an XSD from a WSDL
  • Include a WSDL from a WSDL

Importing a WSDL from a WSDL is not yet supported as the WSDL spec does not technically allow it (although I have a few workarounds for that I have been considering).

Usage

This package will install a utility called wsdl2file. Call that tool with the URL or pathname to your schema. It will flatten it and print the result to stdout. Eg, to generate a standalone WSDL for the State of Minnesota's Court Record Service:

wsdl2file "https://is.courts.state.mn.us/Prod/WebServices/ElectronicCourtFiling/CourtRecordService_4_0.svc?wsdl" > crs.wsdl

Ownership

Written by Tyler MacDonald <tyler@macdonald.name>

Copyright 2024 Proof Technology, Inc

This is free software released under the Apache license, Version 2.0.

https://github.com/proofserve/wsdl2file

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsdl2file-0.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wsdl2file-0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file wsdl2file-0.1.tar.gz.

File metadata

  • Download URL: wsdl2file-0.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for wsdl2file-0.1.tar.gz
Algorithm Hash digest
SHA256 a861e480c232e1a276815aa43c011e4bb294ab5174d6db99964a2de624695e08
MD5 cfde891f4db3cfc386c0479e64b357c1
BLAKE2b-256 82f267cc58a976bbc3e616420eaf94743aede92ccf478783d1db86792bc09c87

See more details on using hashes here.

File details

Details for the file wsdl2file-0.1-py3-none-any.whl.

File metadata

  • Download URL: wsdl2file-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for wsdl2file-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55b2559e9b55d9927667e9e72c9bca8788e4ffb6278414dc0e3cce869cf07db5
MD5 181a2012dd1eebd15c77b433a289ed4c
BLAKE2b-256 677285615d0829cb18f6fc9d17c9aea62c29ea0d99917a398e5f8b7715739757

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page