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:")])

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
1 participant