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

WSA plugin: allow custom prefix for MessageID. #1351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Merinorus
Copy link

@Merinorus Merinorus commented Dec 9, 2022

Fix #975

Description

When using the WSA plugin, the header's field MessageID is created as follows:

<MessageID>urn:uuid:cb4dd644-d178-433d-9ec5-799e13407867</MessageID>

Some endpoints require the urn: prefix to be absent:

<MessageID>uuid:cb4dd644-d178-433d-9ec5-799e13407867</MessageID>

This PR allows you to specify the prefix you want with the WSA plugin. For instance, this fixes the author's problem in issue #975:

client = Client(
'http://examples.python-zeep.org/basic.wsdl',
    plugins=[WsAddressingPlugin(message_id_prefix="uuid:")])

@bartnv
Copy link

bartnv commented Aug 7, 2024

Any chance of getting this merged? It would solve a problem for me as well (I'm also trying to use the KvK Dataservice with python-zeep, like other participants in issue #975). Currently I need to keep a modified version of wsa.py around to make this work.

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

Successfully merging this pull request may close these issues.

Optionally remove "urn" prefix from wsa:MessageID
2 participants