Documentation ¶
Index ¶
- Variables
- func DecReq(req *request.Request) ([]byte, error)
- func DecResp(header *response.Header, resp interface{}) ([]byte, error)
- func EncReq(content []byte, req *request.Request) (err error)
- func EncResp(content []byte, resp *response.Response) (err error)
- func GetRequestTypeAndData(content []byte) (string, request.Request, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyString = "" EmptyReq = request.Request{} RequestTypes []string = []string{ "SaveImage", "DeleteRequest", "LoadZipRequest", "LoadImgRequest", } )
View Source
var ( ReqPrefix = []byte(`<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><Request xmlns="http://tempuri.org/"><requestXML>`) ReqSuffix = []byte(`</requestXML></Request></soap:Body></soap:Envelope>`) RespPrefix = []byte("<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><RequestResponse xmlns=\"http://tempuri.org/\"><RequestResult><?xml version=\"1.0\"?><Response>") RespSuffix = []byte("</Response></RequestResult></RequestResponse></soap:Body></soap:Envelope>") ReqPrefixLen = len(ReqPrefix) ReqSuffixLen = len(ReqSuffix) RespPrefixLen = len(RespPrefix) RespSuffixLen = len(RespSuffix) )
View Source
var (
B64 = base64.NewEncoding("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
)
View Source
var (
ErrCorruptedSoapStream = errors.New("corrupted soap stream")
)
View Source
var (
ErrIllegalType = errors.New("illegel request type")
)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.