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

Soap header as simple String #282

Closed
ghost opened this issue Apr 27, 2012 · 1 comment
Closed

Soap header as simple String #282

ghost opened this issue Apr 27, 2012 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 27, 2012

Hi,

this do not work now:

response = client.request :get_user_by_id do
  soap.header = "<session_id>12345</session_id>"
  soap.body = 1
end

I have to overwrite the Savon::SOAP::XML Class with:

module Savon
  module SOAP
    class XML

    private

      # Returns the SOAP header as an XML String.
      def header_for_xml
        if header.is_a?(Hash)
          @header_for_xml ||= Gyoku.xml(header) + wsse_header
        else
          @header_for_xml ||= header + wsse_header
        end
      end

    end
  end  
end

or something else.

@rubiii
Copy link
Contributor

rubiii commented May 17, 2012

duplicate of #289.

@rubiii rubiii closed this as completed May 17, 2012
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

1 participant