Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brittle prefix namespaces in VIES response XML #14

Open
jakedjohnson opened this issue Sep 1, 2022 · 0 comments
Open

Brittle prefix namespaces in VIES response XML #14

jakedjohnson opened this issue Sep 1, 2022 · 0 comments

Comments

@jakedjohnson
Copy link
Contributor

Currently we have the XML namespace prefixes hard coded into our SweetXpath structs.

@check_vat_response SweetXml.sigil_x("//env:Envelope/env:Body/ns2:checkVatResponse")

This turned out to be very brittle when VIES updated their SOAP envelope unexpectedly and SweetXml no longer had a correct path to access values in the responses.

SweetXml seems like it should be able to handle xpaths with no namespaces. If someone could get a prefix-independent path to work when SweetXml.xpath is called, that would be swell :)

@check_vat_response SweetXml.sigil_x("//Envelope/Body/checkVatResponse")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant