Documentation
¶
Overview ¶
Package soap provides a SOAP 1.1 compatibility layer that mirrors the Apache CXF JAX-WS interface from the old Java REMITT 0.5.x server. It intercepts POST requests to /services/interface, parses SOAP envelopes, dispatches to the existing Go REST handlers, and wraps responses in SOAP.
Index ¶
Constants ¶
View Source
const ( TargetNamespace = "http://server.remitt.org/" ServicePath = "/services/interface" )
Target namespace matching old Java @WebService annotation
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() echo.MiddlewareFunc
Middleware returns an Echo middleware that intercepts SOAP requests. It must be placed AFTER BasicAuth and LoadUserMiddleware so c.Get(common.AuthUserKey) returns the authenticated username.
Types ¶
type Body ¶
type Body struct {
InnerXML []byte `xml:",innerxml"`
}
Body holds the operation request or response.
type Envelope ¶
type Envelope struct {
XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
Body Body `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"`
}
Envelope is a SOAP 1.1 envelope.
Click to show internal directories.
Click to hide internal directories.