Documentation ¶
Index ¶
Constants ¶
View Source
const (
ActionHeader = "SOAPAction"
)
View Source
const (
ContentType = `text/xml; charset="utf-8"`
)
Variables ¶
This section is empty.
Functions ¶
func DefaultWrapper ¶
func ErrorHandler ¶
func ErrorHandler(logger log.Logger) http2.Middleware
Types ¶
type ActionMux ¶
type ActionMux struct {
// contains filtered or unexported fields
}
func NewActionMux ¶
func NewActionMux() *ActionMux
type Body ¶
type Body struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` Content any `xml:",omitempty"` Fault *Fault `xml:",omitempty"` // contains filtered or unexported fields }
func (*Body) UnmarshalXML ¶
UnmarshalXML copied from https://github.com/hooklift/gowsdl/blob/master/soap/soap.go
type Fault ¶
type Fault struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault"` Code string `xml:"faultcode,omitempty"` String string `xml:"faultstring,omitempty"` Actor string `xml:"faultactor,omitempty"` Detail any `xml:"detail,omitempty"` }
func (Fault) WriteError ¶
func (f Fault) WriteError(w http.ResponseWriter) error
type RequestExtractor ¶
type RequestExtractor struct {
Validator Validator
}
type ResponseMapper ¶
type ResponseMapper struct { }
func (ResponseMapper) Map ¶
func (j ResponseMapper) Map(ctx context.Context, result any, w http.ResponseWriter) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.