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

Fix SOAP 1.1 fault serialization #1110

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

astrada
Copy link

@astrada astrada commented Jan 14, 2025

The SOAP Fault element (in SOAP 1.1) requires that faultactor is inserted after faultstring, otherwise the SOAP message is invalid (https://schemas.xmlsoap.org/soap/envelope/).

This patch:

  • Moves faultactor subelement after faultstring
  • Adds a test to verify that the Actor property of the MessageFault contained in the catched FaultException is correctly populated.

Alessandro Strada added 2 commits January 22, 2025 08:31
Add test that throws a MessageFault with Actor property specified
(fails with "Server returned an invalid SOAP Fault")
Write faultactor after faultstring (otherwise the
SOAP Fault message is invalid)
@astrada astrada force-pushed the message-fault-with-actor branch from 402e613 to 37740be Compare January 22, 2025 07:33
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.

1 participant