class OmniAuth::Strategies::BisClient

Public Class Methods

execute(soap_action, body) click to toggle source

soap_msg = envelope(wss_header: wss_header(), body: body) HTTPotion.post @port, [body: soap_msg, headers: [“SOAPAction”: soap_action, “Content-Type”: “text/xml”]]

# File lib/omniauth-nwbbis.rb, line 143
def self.execute(soap_action, body)
    conn = Faraday.new

    conn.post do |req|
        req.url "https://service.nwb.de/customercare/NWBService.svc/interop"
        req.headers['SOAPAction'] = soap_action
        req.headers['Content-Type'] = 'text/xml'
        req.body = body
    end
end