Documentation ¶
Overview ¶
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Index ¶
- Variables
- type GoWsdl
- type SoapBody
- type SoapClient
- type SoapEnvelope
- type SoapFault
- type SoapHeader
- type Wsdl
- type WsdlBinding
- type WsdlFault
- type WsdlHttpBinding
- type WsdlHttpOperation
- type WsdlImport
- type WsdlInput
- type WsdlMessage
- type WsdlOperation
- type WsdlOutput
- type WsdlPart
- type WsdlPort
- type WsdlPortType
- type WsdlService
- type WsdlSoapAddress
- type WsdlSoapBinding
- type WsdlSoapBody
- type WsdlSoapFault
- type WsdlSoapHeader
- type WsdlSoapHeaderFault
- type WsdlSoapOperation
- type WsdlType
- type XsdAnnotation
- type XsdAttribute
- type XsdComplexContent
- type XsdComplexType
- type XsdElement
- type XsdExtension
- type XsdGroup
- type XsdImport
- type XsdInclude
- type XsdRestriction
- type XsdRestrictionValue
- type XsdSchema
- type XsdSequence
- type XsdSimpleContent
- type XsdSimpleType
Constants ¶
This section is empty.
Variables ¶
var Log = log15.New()
Functions ¶
This section is empty.
Types ¶
type SoapClient ¶
type SoapClient struct {
// contains filtered or unexported fields
}
func NewSoapClient ¶
func NewSoapClient(url string, tls bool) *SoapClient
func (*SoapClient) Call ¶
func (s *SoapClient) Call(soapAction string, request, response interface{}) error
type SoapEnvelope ¶
type SoapEnvelope struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` //Header SoapHeader `xml:"http://schemas.xmlsoap.org/soap/envelope/ Header,omitempty"` Body SoapBody `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` }
type SoapFault ¶
type SoapHeader ¶
type SoapHeader struct {
Header interface{}
}
type Wsdl ¶
type Wsdl struct { Name string `xml:"name,attr"` TargetNamespace string `xml:"targetNamespace,attr"` Imports []*WsdlImport `xml:"import"` Doc string `xml:"documentation"` Types WsdlType `xml:"types"` Messages []*WsdlMessage `xml:"message"` PortTypes []*WsdlPortType `xml:"portType"` Binding []*WsdlBinding `xml:"binding"` Service []*WsdlService `xml:"service"` }
type WsdlBinding ¶
type WsdlBinding struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` Doc string `xml:"documentation"` HttpBinding WsdlHttpBinding `xml:"http://schemas.xmlsoap.org/wsdl/http/ binding"` SoapBinding WsdlSoapBinding `xml:"http://schemas.xmlsoap.org/wsdl/soap/ binding"` Operations []*WsdlOperation `xml:"operation"` }
type WsdlFault ¶
type WsdlFault struct { Name string `xml:"name,attr"` Message string `xml:"message,attr"` Doc string `xml:"documentation"` SoapFault WsdlSoapFault `xml:"fault"` }
type WsdlHttpBinding ¶
type WsdlHttpBinding struct {
Verb string `xml:"verb,attr"`
}
type WsdlHttpOperation ¶
type WsdlHttpOperation struct {
Location string `xml:"location,attr"`
}
type WsdlImport ¶
type WsdlInput ¶
type WsdlInput struct { Name string `xml:"name,attr"` Message string `xml:"message,attr"` Doc string `xml:"documentation"` SoapBody WsdlSoapBody `xml:"body"` SoapHeader []*WsdlSoapHeader `xml:"header"` }
type WsdlMessage ¶
type WsdlOperation ¶
type WsdlOperation struct { Name string `xml:"name,attr"` Doc string `xml:"documentation"` Input WsdlInput `xml:"input"` Output WsdlOutput `xml:"output"` Faults []*WsdlFault `xml:"fault"` SoapOperation WsdlSoapOperation `xml:"http://schemas.xmlsoap.org/wsdl/soap/ operation"` HttpOperation WsdlHttpOperation `xml:"http://schemas.xmlsoap.org/wsdl/http/ operation"` }
type WsdlOutput ¶
type WsdlOutput struct { Name string `xml:"name,attr"` Message string `xml:"message,attr"` Doc string `xml:"documentation"` SoapBody WsdlSoapBody `xml:"body"` SoapHeader []*WsdlSoapHeader `xml:"header"` }
type WsdlPort ¶
type WsdlPort struct { Name string `xml:"name,attr"` Binding string `xml:"binding,attr"` Doc string `xml:"documentation"` SoapAddress WsdlSoapAddress `xml:"address"` }
type WsdlPortType ¶
type WsdlPortType struct { Name string `xml:"name,attr"` Doc string `xml:"documentation"` Operations []*WsdlOperation `xml:"operation"` }
type WsdlService ¶
type WsdlSoapAddress ¶
type WsdlSoapAddress struct {
Location string `xml:"location,attr"`
}
type WsdlSoapBinding ¶
type WsdlSoapBody ¶
type WsdlSoapFault ¶
type WsdlSoapHeader ¶
type WsdlSoapHeaderFault ¶
type WsdlSoapOperation ¶
type XsdAnnotation ¶
type XsdAnnotation struct {
Documentation string `xml:"documentation"`
}
type XsdAttribute ¶
type XsdComplexContent ¶
type XsdComplexContent struct { XMLName xml.Name `xml:"complexContent"` Extension XsdExtension `xml:"extension"` }
type XsdComplexType ¶
type XsdComplexType struct { XMLName xml.Name `xml:"complexType"` Abstract bool `xml:"abstract,attr"` Name string `xml:"name,attr"` Mixed bool `xml:"mixed,attr"` Annotation XsdAnnotation `xml:"annotation"` Sequence XsdSequence `xml:"sequence"` Choice []XsdElement `xml:"choice>element"` All []XsdElement `xml:"all>element"` ComplexContent XsdComplexContent `xml:"complexContent"` SimpleContent XsdSimpleContent `xml:"simpleContent"` Attributes []*XsdAttribute `xml:"attribute"` }
type XsdElement ¶
type XsdElement struct { XMLName xml.Name `xml:"element"` Name string `xml:"name,attr"` Nillable bool `xml:"nillable,attr"` Type string `xml:"type,attr"` Ref string `xml:"ref,attr"` MinOccurs string `xml:"minOccurs,attr"` MaxOccurs string `xml:"maxOccurs,attr"` ComplexType *XsdComplexType `xml:"complexType"` //local SimpleType *XsdSimpleType `xml:"simpleType"` Groups []*XsdGroup `xml:"group"` }
type XsdExtension ¶
type XsdExtension struct { XMLName xml.Name `xml:"extension"` Base string `xml:"base,attr"` Attributes []*XsdAttribute `xml:"attribute"` Sequence XsdSequence `xml:"sequence"` }
type XsdGroup ¶
type XsdGroup struct { Name string `xml:"name,attr"` Ref string `xml:"ref,attr"` Sequence XsdSequence `xml:"sequence"` Choice []XsdElement `xml:"choice"` All []XsdElement `xml:"all"` }
type XsdInclude ¶
type XsdInclude struct {
SchemaLocation string `xml:"schemaLocation,attr"`
}
type XsdRestriction ¶
type XsdRestriction struct { Base string `xml:"base,attr"` Enumeration []XsdRestrictionValue `xml:"enumeration"` Pattern XsdRestrictionValue `xml:"pattern"` MinInclusive XsdRestrictionValue `xml:"minInclusive"` MaxInclusive XsdRestrictionValue `xml:"maxInclusive"` WhiteSpace XsdRestrictionValue `xml:"whitespace"` Length XsdRestrictionValue `xml:"length"` MinLength XsdRestrictionValue `xml:"minLength"` MaxLength XsdRestrictionValue `xml:"maxLength"` }
type XsdRestrictionValue ¶
type XsdRestrictionValue struct {
Value string `xml:"value,attr"`
}
type XsdSchema ¶
type XsdSchema struct { XMLName xml.Name `xml:"schema"` Tns string `xml:"xmlns tns,attr"` Xs string `xml:"xmlns xs,attr"` Version string `xml:"version,attr"` TargetNamespace string `xml:"targetNamespace,attr"` ElementFormDefault string `xml:"elementFormDefault,attr"` Includes []*XsdInclude `xml:"include"` Imports []*XsdImport `xml:"import"` Elements []*XsdElement `xml:"element"` ComplexTypes []*XsdComplexType `xml:"complexType"` //global SimpleType []*XsdSimpleType `xml:"simpleType"` }
type XsdSequence ¶
type XsdSequence struct {
Elements []XsdElement `xml:"element"`
}
type XsdSimpleContent ¶
type XsdSimpleContent struct { XMLName xml.Name `xml:"simpleContent"` Extension XsdExtension `xml:"extension"` }
type XsdSimpleType ¶
type XsdSimpleType struct { Name string `xml:"name,attr"` Restriction XsdRestriction `xml:"restriction"` }