python-fedex-devs / python-fedex

A light wrapper around FedEx's SOAP API.
http://python-fedex.readthedocs.org
BSD 3-Clause "New" or "Revised" License
156 stars 139 forks source link

Possible to convert JSON to WSDL object? #149

Closed p-doyle closed 1 year ago

p-doyle commented 3 years ago

Is it possible to use JSON to, for example, populate fields in TrackSelectionDetail? I was hoping to be able to use something like the below:

{'ShipmentAccountNumber': '1234', 'PackageIdentifier': {'Type': 'SHIPPER_REFERENCE', 'Value': 'myreference'}}

I see there are helper functions to convert from WSDL to dict but didn't see anything to do the reverse... is this possible?

Thanks for the great library!

radzhome commented 3 years ago

There is no helper now, it could be done yeah.

radzhome commented 1 year ago

send a PR if you have, I will close