Skip to content

Instantly share code, notes, and snippets.

View gkolok's full-sized avatar

Gabor Kolok gkolok

  • Budapest, Hungary
View GitHub Profile
@gkolok
gkolok / gist:715391
Created November 25, 2010 13:28
simple ruby soap post with basic authentication
require 'net/http'
request_body = <<EOF
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.host/">
<soapenv:Header/>
<soapenv:Body>
<ser:createGroup>
<arg0>
<description>#{description}</description>
<name>#{name}</name>