soap

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package soap provides SOAP XML Encoding and Decoding

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, contents interface{}) error

Decode Decodes XML SOAP Envelop to struct

func Encode

func Encode(contents, header interface{}) ([]byte, error)

Encode Encodes struct to XML SOAP Envelop

Types

type Body

type Body struct {
	XMLName  struct{} `xml:"Body"`
	Contents []byte   `xml:",innerxml"`
}

Body SOAP Body

type Envelope

type Envelope struct {
	XMLName struct{} `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
	Body    Body
	Header  Header
}

Envelope SOAP Envelope

type Header struct {
	XMLName  struct{} `xml:"Header"`
	Contents []byte   `xml:",innerxml"`
}

Header SOAP Header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL