Class: OmniAuth::Strategies::BisClient
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::BisClient
- Defined in:
- lib/omniauth-nwbbis.rb
Class Method Summary collapse
-
.execute(soap_action, body) ⇒ Object
soap_msg = envelope(wss_header: wss_header(), body: body) HTTPotion.post @port, [body: soap_msg, headers: [“SOAPAction”: soap_action, “Content-Type”: “text/xml”]].
Class Method Details
.execute(soap_action, body) ⇒ Object
soap_msg = envelope(wss_header: wss_header(), body: body) HTTPotion.post @port, [body: soap_msg, headers: [“SOAPAction”: soap_action, “Content-Type”: “text/xml”]]
142 143 144 145 146 147 148 149 150 151 |
# File 'lib/omniauth-nwbbis.rb', line 142 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 |