Skip to content

envelope namespace #9

@3052

Description

@3052

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions