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

Savon::WSSE does not set wsu:Id attribute in wsse:UsernameToken tag #60

Closed
mconigliaro opened this issue May 11, 2010 · 5 comments
Closed

Comments

@mconigliaro
Copy link

Hello,

Sorry if this is a dumb question (or if I've posted it in the wrong place), but I'm very new to ruby and SOAP in general, and I'm having a bit of trouble interacting with a web service using WSSE. I found that when using the soap4r library, I was able to get WSSE authentication to work by making my wsse:UsernameToken tag contain an attribute like this:

wsu:Id="UsernameToken-16318950"

Savon does not seem to set this attribute at all. Is this a bug? Does anyone know a way I can work around this? Thanks in advance.

@mconigliaro
Copy link
Author

I'm not sure if this is the best way, but I got around this issue by by building the entire WSSE header myself:

wsse_header = { ... } .to_soap_xml

Then I use this header in all of my SOAP calls:

soap.header = wsse_header

Hope this helps someone.

@rubiii
Copy link
Contributor

rubiii commented May 13, 2010

i'll have a look into it. think i could make this more accessable.

@rubiii
Copy link
Contributor

rubiii commented Oct 16, 2010

@rubiii
Copy link
Contributor

rubiii commented Oct 29, 2010

please try savon 0.8.0.beta.1

@rubiii
Copy link
Contributor

rubiii commented Dec 20, 2010

released v0.8.0 which should solve this problem.

calamitas pushed a commit to calamitas/savon that referenced this issue Jun 7, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants