Documentation
¶
Index ¶
- type ArgsMap
- type SoapBinding
- type SoapBody
- type SoapClient
- type SoapMessageBody
- type SoapMessageEnvelope
- type SoapMessageFault
- type SoapOperation
- type Wsdl
- type WsdlBinding
- type WsdlComplexContent
- type WsdlComplexType
- type WsdlElement
- type WsdlFunction
- type WsdlFunctionArgs
- type WsdlInput
- type WsdlMessage
- type WsdlOperation
- type WsdlOutput
- type WsdlPart
- type WsdlPortType
- type WsdlSchema
- type WsdlSchemaElement
- type WsdlService
- type WsdlTypeElement
- type WsdlTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsMap ¶
type ArgsMap []*WsdlFunctionArgs
type SoapBinding ¶
type SoapClient ¶
type SoapClient struct {
// contains filtered or unexported fields
}
func NewSoapClientForContent ¶
func NewSoapClientForContent(content string) (*SoapClient, error)
用WSDL内容新建一个SOAP客户端
func (*SoapClient) Call ¶
func (s *SoapClient) Call(func_name string, args ...interface{}) (string, error)
func (*SoapClient) ReplaceXml ¶
func (s *SoapClient) ReplaceXml(str string, toxml bool) string
替换XML特殊字符
func (*SoapClient) SetOptions ¶
func (s *SoapClient) SetOptions(key, val string)
设置SOAP配置项 * 配置项名称 说明 示例值 * SOAP-VERSION [SOAP 构建版本] 1.1|1.2 * SOAP-DEF-SERVICE [SOAP 默认使用SERVICE] 0
type SoapMessageBody ¶
type SoapMessageBody struct { XMLName xml.Name `xml:"Body"` Fault *SoapMessageFault `xml:"Fault"` }
type SoapMessageEnvelope ¶
type SoapMessageEnvelope struct { XMLName xml.Name `xml:"Envelope"` Body *SoapMessageBody `xml:"Body"` BodyContent string `xml:"Body"` }
type SoapMessageFault ¶
type SoapOperation ¶
type Wsdl ¶
type Wsdl struct {
// contains filtered or unexported fields
}
func (*Wsdl) GetFunction ¶
func (w *Wsdl) GetFunction(build_name, func_name string) *WsdlFunction
得到一个方法
type WsdlBinding ¶
type WsdlBinding struct { XMLName xml.Name `xml:"binding"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` Binding *SoapBinding `xml:"binding"` Operation []*WsdlOperation `xml:"operation"` OperationMap map[string]*WsdlOperation }
type WsdlComplexContent ¶
type WsdlComplexContent struct { XMLName xml.Name `xml:"complexContent"` Extension struct { Base string `xml:"base,attr"` Sequence struct { Element []*WsdlTypeElement `xml:"element"` } `xml:"sequence"` } `xml:"extension"` }
type WsdlComplexType ¶
type WsdlComplexType struct { XMLName xml.Name `xml:"complexType"` Name string `xml:"name,attr"` Sequence struct { Element []*WsdlTypeElement `xml:"element"` } `xml:"sequence"` ComplexContent *WsdlComplexContent `xml:"complexContent"` TargetNamespace string }
type WsdlElement ¶
type WsdlElement struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/wsdl/ definitions"` Xsd xml.Attr `xml:"xsd,attr"` Wsdl xml.Attr `xml:"wsdl,attr"` Tns xml.Attr `xml:"tns,attr"` Soap xml.Attr `xml:"soap,attr"` Nsl xml.Attr `xml:"nsl,attr"` Name string `xml:"name,attr"` TargetNamespace string `xml:"targetNamespace,attr"` Types *WsdlTypes `xml:"types"` Message []*WsdlMessage `xml:"message"` PortType []*WsdlPortType `xml:"portType"` Binding []*WsdlBinding `xml:"binding"` Service *WsdlService `xml:"service"` }
type WsdlFunction ¶
type WsdlFunction struct { Name string //方法名 Action string //SOAP Action RequestArgs *WsdlFunctionArgs //调用方法参数集合 ResponseName string //方法返回值名 ResponseArgs *WsdlFunctionArgs //回调用方法参数集合 }
type WsdlFunctionArgs ¶
type WsdlMessage ¶
type WsdlMessage struct { XMLName xml.Name `xml:"message"` Name string `xml:"name,attr"` Parts []*WsdlPart `xml:"part"` }
message
type WsdlOperation ¶
type WsdlOperation struct { XMLName xml.Name `xml:"operation"` Name string `xml:"name,attr"` Message string `xml:"message,attr"` Action string `xml:"Action,attr"` Input *WsdlInput `xml:"input"` Output *WsdlOutput `xml:"output"` SoapOperation *SoapOperation `xml:"operation"` }
type WsdlOutput ¶
type WsdlPortType ¶
type WsdlPortType struct { XMLName xml.Name `xml:"portType"` Name string `xml:"name,attr"` Operation []*WsdlOperation `xml:"operation"` OperationMap map[string]*WsdlOperation }
type WsdlSchema ¶
type WsdlSchema struct { XMLName xml.Name `xml:"schema"` AttributeFormDefault string `xml:"attributeFormDefault,attr"` ElementFormDefault string `xml:"elementFormDefault,attr"` TargetNamespace string `xml:"targetNamespace,attr"` Import []struct { XMLName xml.Name `xml:"import"` Namespace string `xml:"namespace,attr"` } `xml:"import"` ComplexType []*WsdlComplexType `xml:"complexType"` Element []*WsdlSchemaElement `xml:"element"` }
type WsdlSchemaElement ¶
type WsdlService ¶
type WsdlService struct { XMLName xml.Name `xml:"service"` Name string `xml:"name,attr"` Port []struct { XMLName xml.Name `xml:"port"` Binding string `xml:"binding,attr"` Name string `xml:"name,attr"` Address struct { XMLName xml.Name `xml:"address"` Location string `xml:"location,attr"` } `xml:"address"` } `xml:"port"` }
type WsdlTypeElement ¶
type WsdlTypes ¶
type WsdlTypes struct { XMLName xml.Name `xml:"types"` Schema []*WsdlSchema `xml:"schema"` }
Click to show internal directories.
Click to hide internal directories.