-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsdl.go
83 lines (60 loc) · 1.65 KB
/
wsdl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package gozeep
/*
A WSDL Document exists out of one or more definitions.
There is always one 'root' definition which should be passed as the
location to the Document. This definition can import other definitions.
These imports are non-transitive, only the definitions defined in the
imported document are available in the parent definition. This Document is
mostly just a simple interface to the root definition.
After all definitions are loaded the definitions are resolved. This
resolves references which were not yet available during the initial
parsing phase
*/
type Document struct {
Location string
Transport Transport
Base string
Strict bool
Types Schema
// Messages []Message
// PortTypes []PortType
// Bindings []Binding
// Services []Service
}
// NewDocument constructs new instance of Document
func NewDocument(location string, transport Transport) *Document {
return &Document{
Location: location,
Transport: transport,
}
}
// Dump prints all information about WSDL Document
// TODO implement dump function
func (d Document) Dump() {
return
}
// getXMLDocument Load the XML content from the given location and return an
// lxml.Element object
// TODO implement
func (d Document) getXMLDocument(location string) {
//return LoadExternal()
}
type Definition struct {
}
func NewDefinition() *Definition {
return &Definition{}
}
func (d Definition) Get() {
}
func (d Definition) ParseImports() {
}
func (d Definition) ParseTypes() {
}
func (d Definition) ParseMessages() {
}
func (d Definition) ParsePorts() {
}
func (d Definition) ParseBinding() {
}
func (d Definition) ParseService() {
}