troelskn / handsoap

Handsoap is a library for creating SOAP clients in Ruby
http://github.com/unwire/handsoap
151 stars 2 forks source link

Make adding the xml header optional #17

Closed gettalong closed 15 years ago

gettalong commented 15 years ago

One other small request: some SOAP services don't like the <?xml version="1.0" ?> header (Intel AMT SOAP services being one of them). It seems to be trivial to add an accessor to Handsoap::XmlMason::Document which controls whether an XML header is written or not.

troelskn commented 15 years ago

I've added a method to XmlDocument, so that you can turn the xml-header off:

doc.xml_header = false

This is available from 0.5.8

gettalong commented 15 years ago

Thanks!