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: Remove xmlns:wsa's already added elsewhere; select Content-Type HTTP header based on SOAP version #868

Merged
merged 5 commits into from
Jul 5, 2020
Merged

Conversation

armstrtw
Copy link
Contributor

Couple of changes I needed for multipart support to work with a server using Axis2.

I'm having a little trouble running the test suite on my system, but I'll work on that.

@pcai
Copy link
Member

pcai commented Sep 6, 2018

Thanks for contributing this back. Are you still having trouble running tests? If so, please share the output of bundle exec rake --trace

Copy link

@jackozi jackozi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The different name spacing for the MessageID is breaking our signing. Would like to see this merged in soon.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading the individual commits, I now know what this change does, and it seems like a fine fix!

🎉 Let's get this merged to master!

None of comments are unfixable later.

@@ -11,6 +11,11 @@
module Savon
class Operation

SOAP_REQUEST_TYPE = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could call it content types in the name, I guess.

lib/savon/header.rb Outdated Show resolved Hide resolved
@olleolleolle olleolleolle changed the title Fix wsa plus header cleanup Fix: Remove a xmlns:wsa's already added elsewhere; select Content-Type HTTP header based on SOAP version Jul 5, 2020
@olleolleolle olleolleolle changed the title Fix: Remove a xmlns:wsa's already added elsewhere; select Content-Type HTTP header based on SOAP version Fix: Remove xmlns:wsa's already added elsewhere; select Content-Type HTTP header based on SOAP version Jul 5, 2020
@olleolleolle olleolleolle merged commit b2b545a into savonrb:master Jul 5, 2020
pcai pushed a commit that referenced this pull request Jul 5, 2020
…HTTP header based on SOAP version (#868)

* remove unneeded xmlns:wsa, already added elsewhere
* clean up Content-Type header and add MIME-Version
* select header Content-Type based on SOAP version
* xmlns:wsa attribute is not needed on wsa:MessageID. it's already included in the header

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
@yllihv27
Copy link

xmlns:wsa attribute is not needed on wsa:MessageID.

In what savon version is this applied? I need this version, dont know how to remove the attribute. I am using 2.12.1

@Piioo
Copy link

Piioo commented Oct 4, 2022

Im not sure if because of this, but now the https://github.com/savonrb/savon-multipart gem is not working anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants