example
package soap
import (
"encoding/xml"
"os"
"testing"
)
func Test(t *testing.T) {
err := xml.NewEncoder(os.Stdout).Encode(Envelope{})
if err != nil {
t.Fatal(err)
}
}
result
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
</Header><Body xmlns="http://schemas.xmlsoap.org/soap/envelope/"></Body></Envelope>
should have option to namespace
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"></soap:Envelope>
example
result
should have option to namespace