sekken 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.travis.yml +11 -0
  4. data/.yardopts +6 -0
  5. data/CONTRIBUTING.md +46 -0
  6. data/Gemfile +27 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +28 -0
  9. data/Rakefile +21 -0
  10. data/donate.png +0 -0
  11. data/lib/sekken.rb +75 -0
  12. data/lib/sekken/envelope.rb +92 -0
  13. data/lib/sekken/errors.rb +9 -0
  14. data/lib/sekken/example_message.rb +41 -0
  15. data/lib/sekken/httpclient.rb +35 -0
  16. data/lib/sekken/importer.rb +77 -0
  17. data/lib/sekken/message.rb +135 -0
  18. data/lib/sekken/operation.rb +100 -0
  19. data/lib/sekken/resolver.rb +20 -0
  20. data/lib/sekken/response.rb +50 -0
  21. data/lib/sekken/version.rb +5 -0
  22. data/lib/sekken/wsdl.rb +86 -0
  23. data/lib/sekken/wsdl/binding.rb +64 -0
  24. data/lib/sekken/wsdl/binding_operation.rb +85 -0
  25. data/lib/sekken/wsdl/document.rb +83 -0
  26. data/lib/sekken/wsdl/document_collection.rb +61 -0
  27. data/lib/sekken/wsdl/input_output.rb +84 -0
  28. data/lib/sekken/wsdl/message.rb +38 -0
  29. data/lib/sekken/wsdl/operation.rb +47 -0
  30. data/lib/sekken/wsdl/port.rb +29 -0
  31. data/lib/sekken/wsdl/port_type.rb +38 -0
  32. data/lib/sekken/wsdl/port_type_operation.rb +42 -0
  33. data/lib/sekken/wsdl/service.rb +55 -0
  34. data/lib/sekken/xml/attribute.rb +13 -0
  35. data/lib/sekken/xml/element.rb +82 -0
  36. data/lib/sekken/xml/element_builder.rb +220 -0
  37. data/lib/sekken/xs/schema.rb +57 -0
  38. data/lib/sekken/xs/schema_collection.rb +49 -0
  39. data/lib/sekken/xs/types.rb +272 -0
  40. data/sekken.gemspec +42 -0
  41. data/spec/fixtures/response/another_soap_fault.xml +14 -0
  42. data/spec/fixtures/response/authentication.xml +14 -0
  43. data/spec/fixtures/response/header.xml +13 -0
  44. data/spec/fixtures/response/list.xml +18 -0
  45. data/spec/fixtures/response/multi_ref.xml +39 -0
  46. data/spec/fixtures/response/soap_fault.xml +8 -0
  47. data/spec/fixtures/response/soap_fault12.xml +18 -0
  48. data/spec/fixtures/response/taxcloud.xml +1 -0
  49. data/spec/fixtures/wsdl/amazon.wsdl +1920 -0
  50. data/spec/fixtures/wsdl/arrays_with_attributes.wsdl +117 -0
  51. data/spec/fixtures/wsdl/authentication.wsdl +63 -0
  52. data/spec/fixtures/wsdl/awse.wsdl +1510 -0
  53. data/spec/fixtures/wsdl/betfair.wsdl +2981 -0
  54. data/spec/fixtures/wsdl/blz_service.wsdl +88 -0
  55. data/spec/fixtures/wsdl/bookt/bookt.wsdl +11 -0
  56. data/spec/fixtures/wsdl/bookt/bookt0.xsd +433 -0
  57. data/spec/fixtures/wsdl/bookt/bookt1.xsd +42 -0
  58. data/spec/fixtures/wsdl/bookt/bookt10.xsd +38 -0
  59. data/spec/fixtures/wsdl/bookt/bookt11.xsd +17 -0
  60. data/spec/fixtures/wsdl/bookt/bookt12.xsd +18 -0
  61. data/spec/fixtures/wsdl/bookt/bookt13.xsd +22 -0
  62. data/spec/fixtures/wsdl/bookt/bookt14.xsd +27 -0
  63. data/spec/fixtures/wsdl/bookt/bookt15.xsd +28 -0
  64. data/spec/fixtures/wsdl/bookt/bookt2.wsdl +243 -0
  65. data/spec/fixtures/wsdl/bookt/bookt2.xsd +81 -0
  66. data/spec/fixtures/wsdl/bookt/bookt3.wsdl +286 -0
  67. data/spec/fixtures/wsdl/bookt/bookt3.xsd +61 -0
  68. data/spec/fixtures/wsdl/bookt/bookt4.xsd +35 -0
  69. data/spec/fixtures/wsdl/bookt/bookt5.xsd +22 -0
  70. data/spec/fixtures/wsdl/bookt/bookt6.xsd +26 -0
  71. data/spec/fixtures/wsdl/bookt/bookt7.xsd +18 -0
  72. data/spec/fixtures/wsdl/bookt/bookt8.xsd +22 -0
  73. data/spec/fixtures/wsdl/bookt/bookt9.xsd +29 -0
  74. data/spec/fixtures/wsdl/bronto.wsdl +3285 -0
  75. data/spec/fixtures/wsdl/bydexchange/bydexchange.wsdl +104 -0
  76. data/spec/fixtures/wsdl/bydexchange/bydexchange0.xsd +1 -0
  77. data/spec/fixtures/wsdl/bydexchange/bydexchange1.xsd +1 -0
  78. data/spec/fixtures/wsdl/bydexchange/bydexchange2.wsdl +119 -0
  79. data/spec/fixtures/wsdl/bydexchange/bydexchange2.xsd +1 -0
  80. data/spec/fixtures/wsdl/bydexchange/bydexchange3.xsd +1 -0
  81. data/spec/fixtures/wsdl/bydexchange/bydexchange4.xsd +1 -0
  82. data/spec/fixtures/wsdl/bydexchange/bydexchange5.xsd +1 -0
  83. data/spec/fixtures/wsdl/bydexchange/bydexchange6.xsd +1 -0
  84. data/spec/fixtures/wsdl/bydexchange/bydexchange7.xsd +1 -0
  85. data/spec/fixtures/wsdl/bydexchange/bydexchange8.xsd +1 -0
  86. data/spec/fixtures/wsdl/crowd.wsdl +2437 -0
  87. data/spec/fixtures/wsdl/data_exchange.wsdl +98 -0
  88. data/spec/fixtures/wsdl/document_literal_wrapped.wsdl +153 -0
  89. data/spec/fixtures/wsdl/economic.wsdl +65660 -0
  90. data/spec/fixtures/wsdl/edialog.wsdl +13148 -0
  91. data/spec/fixtures/wsdl/email_verification.wsdl +394 -0
  92. data/spec/fixtures/wsdl/equifax.wsdl +794 -0
  93. data/spec/fixtures/wsdl/geotrust.wsdl +156 -0
  94. data/spec/fixtures/wsdl/interhome.wsdl +2137 -0
  95. data/spec/fixtures/wsdl/iws.wsdl +695 -0
  96. data/spec/fixtures/wsdl/jetairways.wsdl +156 -0
  97. data/spec/fixtures/wsdl/jira.wsdl +3890 -0
  98. data/spec/fixtures/wsdl/juniper.wsdl +215 -0
  99. data/spec/fixtures/wsdl/namespaced_actions.wsdl +307 -0
  100. data/spec/fixtures/wsdl/oracle.wsdl +3629 -0
  101. data/spec/fixtures/wsdl/ratp.wsdl +955 -0
  102. data/spec/fixtures/wsdl/rio2/rio2.wsdl +74 -0
  103. data/spec/fixtures/wsdl/rio2/rio2_0.wsdl +55 -0
  104. data/spec/fixtures/wsdl/rio2/rio2_0.xsd +58 -0
  105. data/spec/fixtures/wsdl/rio2/rio2_1.xsd +41 -0
  106. data/spec/fixtures/wsdl/rio2/rio2_2.xsd +222 -0
  107. data/spec/fixtures/wsdl/rio2/rio2_3.xsd +10 -0
  108. data/spec/fixtures/wsdl/rpc_literal.wsdl +105 -0
  109. data/spec/fixtures/wsdl/spyne.wsdl +70 -0
  110. data/spec/fixtures/wsdl/stockquote.wsdl +124 -0
  111. data/spec/fixtures/wsdl/taxcloud.wsdl +934 -0
  112. data/spec/fixtures/wsdl/team_software/team_software.wsdl +542 -0
  113. data/spec/fixtures/wsdl/team_software/team_software0.xsd +448 -0
  114. data/spec/fixtures/wsdl/team_software/team_software1.xsd +41 -0
  115. data/spec/fixtures/wsdl/team_software/team_software2.xsd +258 -0
  116. data/spec/fixtures/wsdl/team_software/team_software3.xsd +14 -0
  117. data/spec/fixtures/wsdl/telefonkatalogen.wsdl +45 -0
  118. data/spec/fixtures/wsdl/temperature.wsdl +136 -0
  119. data/spec/fixtures/wsdl/wasmuth/wasmuth.wsdl +157 -0
  120. data/spec/fixtures/wsdl/wasmuth/wasmuth1.xsd +210 -0
  121. data/spec/fixtures/wsdl/wasmuth/wasmuth2.xsd +549 -0
  122. data/spec/fixtures/wsdl/xignite.wsdl +3470 -0
  123. data/spec/fixtures/wsdl/yahoo.wsdl +2425 -0
  124. data/spec/fixtures/wsdl/zanox_export_service.xml +520 -0
  125. data/spec/integration/amazon_spec.rb +51 -0
  126. data/spec/integration/authentication_spec.rb +38 -0
  127. data/spec/integration/awse_spec.rb +95 -0
  128. data/spec/integration/betfair_spec.rb +179 -0
  129. data/spec/integration/blz_service_spec.rb +46 -0
  130. data/spec/integration/bookt_spec.rb +59 -0
  131. data/spec/integration/bronto_spec.rb +178 -0
  132. data/spec/integration/bydexchange_spec.rb +40 -0
  133. data/spec/integration/crowd_spec.rb +44 -0
  134. data/spec/integration/data_exchange_spec.rb +27 -0
  135. data/spec/integration/document_literal_spec.rb +104 -0
  136. data/spec/integration/economic_spec.rb +64 -0
  137. data/spec/integration/email_verification_spec.rb +82 -0
  138. data/spec/integration/equifax_spec.rb +216 -0
  139. data/spec/integration/geotrust_spec.rb +17 -0
  140. data/spec/integration/interhome_spec.rb +156 -0
  141. data/spec/integration/iws_spec.rb +27 -0
  142. data/spec/integration/jetairways_spec.rb +142 -0
  143. data/spec/integration/jira_spec.rb +27 -0
  144. data/spec/integration/juniper_spec.rb +20 -0
  145. data/spec/integration/namespaced_actions_spec.rb +37 -0
  146. data/spec/integration/oracle_spec.rb +61 -0
  147. data/spec/integration/ratp_spec.rb +178 -0
  148. data/spec/integration/rio2_spec.rb +56 -0
  149. data/spec/integration/rpc_literal_spec.rb +101 -0
  150. data/spec/integration/spyne_spec.rb +60 -0
  151. data/spec/integration/stockquote_spec.rb +46 -0
  152. data/spec/integration/taxcloud_spec.rb +45 -0
  153. data/spec/integration/team_software_spec.rb +51 -0
  154. data/spec/integration/telefonkatalogen_spec.rb +42 -0
  155. data/spec/integration/temperature_spec.rb +71 -0
  156. data/spec/integration/wasmuth_spec.rb +47 -0
  157. data/spec/integration/xignite_spec.rb +112 -0
  158. data/spec/integration/yahoo_spec.rb +116 -0
  159. data/spec/sekken/httpclient_spec.rb +41 -0
  160. data/spec/sekken/operation/build_spec.rb +308 -0
  161. data/spec/sekken/operation/document_literal_spec.rb +53 -0
  162. data/spec/sekken/operation/example_body_spec.rb +95 -0
  163. data/spec/sekken/operation/rpc_literal_spec.rb +50 -0
  164. data/spec/sekken/operation_spec.rb +169 -0
  165. data/spec/sekken/resolver_spec.rb +38 -0
  166. data/spec/sekken/response_spec.rb +17 -0
  167. data/spec/sekken/wsdl/document_spec.rb +191 -0
  168. data/spec/sekken/wsdl_spec.rb +46 -0
  169. data/spec/sekken/xs/complex_type_spec.rb +197 -0
  170. data/spec/sekken/xs/element_spec.rb +82 -0
  171. data/spec/sekken/xs/simple_type_spec.rb +39 -0
  172. data/spec/sekken_spec.rb +128 -0
  173. data/spec/spec_helper.rb +37 -0
  174. data/spec/support/fixture.rb +19 -0
  175. data/spec/support/http_mock.rb +43 -0
  176. metadata +344 -0
@@ -0,0 +1,520 @@
1
+
2
+ <?xml version="1.0" encoding="utf-8"?>
3
+ <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://services.zanox.com/erp" xmlns:s1="http://services.zanox.com/erp/Export" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://services.zanox.com/erp" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
4
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This Webservice is used to export ERP data.</wsdl:documentation>
5
+ <wsdl:types>
6
+ <s:schema elementFormDefault="qualified" targetNamespace="http://services.zanox.com/erp">
7
+ <s:import namespace="http://services.zanox.com/erp/Export" />
8
+ <s:element name="GetHistoryExport">
9
+ <s:complexType>
10
+ <s:sequence>
11
+ <s:element minOccurs="1" maxOccurs="1" name="programid" type="s:int" />
12
+ <s:element minOccurs="1" maxOccurs="1" name="trackingtype" type="s:unsignedByte" />
13
+ <s:element minOccurs="1" maxOccurs="1" name="rowCount" type="s:int" />
14
+ </s:sequence>
15
+ </s:complexType>
16
+ </s:element>
17
+ <s:element name="GetHistoryExportResponse">
18
+ <s:complexType>
19
+ <s:sequence>
20
+ <s:element minOccurs="0" maxOccurs="1" name="historydata" type="s1:GetHistory" />
21
+ </s:sequence>
22
+ </s:complexType>
23
+ </s:element>
24
+ <s:element name="zanox" type="tns:TicketHeader" />
25
+ <s:complexType name="TicketHeader">
26
+ <s:sequence>
27
+ <s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:normalizedString" />
28
+ </s:sequence>
29
+ <s:anyAttribute />
30
+ </s:complexType>
31
+ <s:element name="GetHistoryForId">
32
+ <s:complexType>
33
+ <s:sequence>
34
+ <s:element minOccurs="1" maxOccurs="1" name="historyid" type="s:int" />
35
+ </s:sequence>
36
+ </s:complexType>
37
+ </s:element>
38
+ <s:element name="GetHistoryForIdResponse">
39
+ <s:complexType>
40
+ <s:sequence>
41
+ <s:element minOccurs="0" maxOccurs="1" name="historydata" type="s1:GetHistory" />
42
+ </s:sequence>
43
+ </s:complexType>
44
+ </s:element>
45
+ <s:element name="GetPps">
46
+ <s:complexType>
47
+ <s:sequence>
48
+ <s:element minOccurs="1" maxOccurs="1" name="programid" type="s:int" />
49
+ <s:element minOccurs="0" maxOccurs="1" ref="s1:ppsfilter" />
50
+ </s:sequence>
51
+ </s:complexType>
52
+ </s:element>
53
+ <s:element name="GetPpsResponse">
54
+ <s:complexType>
55
+ <s:sequence>
56
+ <s:element minOccurs="0" maxOccurs="1" name="ppsdata" type="s1:GetPps" />
57
+ <s:element minOccurs="1" maxOccurs="1" name="historyid" type="s:int" />
58
+ </s:sequence>
59
+ </s:complexType>
60
+ </s:element>
61
+ <s:element name="GetPpl">
62
+ <s:complexType>
63
+ <s:sequence>
64
+ <s:element minOccurs="1" maxOccurs="1" name="programid" type="s:int" />
65
+ <s:element minOccurs="0" maxOccurs="1" ref="s1:pplfilter" />
66
+ </s:sequence>
67
+ </s:complexType>
68
+ </s:element>
69
+ <s:element name="GetPplResponse">
70
+ <s:complexType>
71
+ <s:sequence>
72
+ <s:element minOccurs="0" maxOccurs="1" name="ppldata" type="s1:GetPpl" />
73
+ <s:element minOccurs="1" maxOccurs="1" name="historyid" type="s:int" />
74
+ </s:sequence>
75
+ </s:complexType>
76
+ </s:element>
77
+ <s:element name="GetBasket">
78
+ <s:complexType>
79
+ <s:sequence>
80
+ <s:element minOccurs="1" maxOccurs="1" name="programid" type="s:int" />
81
+ <s:element minOccurs="0" maxOccurs="1" ref="s1:basketfilter" />
82
+ </s:sequence>
83
+ </s:complexType>
84
+ </s:element>
85
+ <s:element name="GetBasketResponse">
86
+ <s:complexType>
87
+ <s:sequence>
88
+ <s:element minOccurs="0" maxOccurs="1" name="basketdata" type="s1:GetBasket" />
89
+ <s:element minOccurs="1" maxOccurs="1" name="historyid" type="s:int" />
90
+ </s:sequence>
91
+ </s:complexType>
92
+ </s:element>
93
+ </s:schema>
94
+ <s:schema elementFormDefault="qualified" targetNamespace="http://services.zanox.com/erp/Export">
95
+ <s:complexType name="GetHistory">
96
+ <s:sequence>
97
+ <s:element minOccurs="0" maxOccurs="unbounded" name="history" type="s1:HistoryType" />
98
+ </s:sequence>
99
+ </s:complexType>
100
+ <s:complexType name="HistoryType">
101
+ <s:sequence>
102
+ <s:element minOccurs="1" maxOccurs="1" name="created" type="s:dateTime" />
103
+ <s:element minOccurs="1" maxOccurs="1" name="records" type="s:int" />
104
+ <s:element minOccurs="0" maxOccurs="1" name="filteredby" type="s1:FilteredByType" />
105
+ </s:sequence>
106
+ <s:attribute name="id" type="s:int" use="required" />
107
+ <s:attribute name="trackingtype" type="s:unsignedByte" use="required" />
108
+ <s:attribute name="programid" type="s:int" use="required" />
109
+ </s:complexType>
110
+ <s:complexType name="FilteredByType">
111
+ <s:sequence>
112
+ <s:element minOccurs="0" maxOccurs="1" name="period" type="s1:FilteredByTypePeriod" />
113
+ <s:element minOccurs="0" maxOccurs="1" name="reviewstate" type="s1:FilteredByTypeReviewstate" />
114
+ <s:element minOccurs="0" maxOccurs="1" name="categoryid" type="s1:FilteredByTypeCategoryid" />
115
+ <s:element minOccurs="0" maxOccurs="1" name="orderid" type="s1:FilteredByTypeOrderid" />
116
+ </s:sequence>
117
+ </s:complexType>
118
+ <s:complexType name="FilteredByTypePeriod">
119
+ <s:attribute name="from" type="s:dateTime" use="required" />
120
+ <s:attribute name="to" type="s:dateTime" use="required" />
121
+ </s:complexType>
122
+ <s:complexType name="FilteredByTypeReviewstate">
123
+ <s:simpleContent>
124
+ <s:extension base="s:unsignedByte">
125
+ <s:attribute name="negated" type="s:boolean" use="required" />
126
+ </s:extension>
127
+ </s:simpleContent>
128
+ </s:complexType>
129
+ <s:complexType name="FilteredByTypeCategoryid">
130
+ <s:simpleContent>
131
+ <s:extension base="s:normalizedString">
132
+ <s:attribute name="negated" type="s:boolean" use="required" />
133
+ </s:extension>
134
+ </s:simpleContent>
135
+ </s:complexType>
136
+ <s:complexType name="FilteredByTypeOrderid">
137
+ <s:simpleContent>
138
+ <s:extension base="s:normalizedString">
139
+ <s:attribute name="negated" type="s:boolean" use="required" />
140
+ </s:extension>
141
+ </s:simpleContent>
142
+ </s:complexType>
143
+ <s:element name="ppsfilter" type="s1:PpsFilterType" />
144
+ <s:complexType name="PpsFilterType">
145
+ <s:complexContent mixed="false">
146
+ <s:extension base="s1:BaseFilterType">
147
+ <s:sequence>
148
+ <s:element minOccurs="0" maxOccurs="1" name="categoryid" type="s1:PpsFilterTypeCategoryid" />
149
+ </s:sequence>
150
+ </s:extension>
151
+ </s:complexContent>
152
+ </s:complexType>
153
+ <s:complexType name="BaseFilterType">
154
+ <s:sequence>
155
+ <s:element minOccurs="0" maxOccurs="1" name="period" type="s1:BaseFilterTypePeriod" />
156
+ <s:element minOccurs="0" maxOccurs="1" name="reviewstate" type="s1:BaseFilterTypeReviewstate" />
157
+ </s:sequence>
158
+ </s:complexType>
159
+ <s:complexType name="BaseFilterTypePeriod">
160
+ <s:attribute name="from" type="s:dateTime" use="required" />
161
+ <s:attribute name="to" type="s:dateTime" use="required" />
162
+ </s:complexType>
163
+ <s:complexType name="BaseFilterTypeReviewstate">
164
+ <s:simpleContent>
165
+ <s:extension base="s:unsignedByte">
166
+ <s:attribute name="negate" type="s:boolean" />
167
+ </s:extension>
168
+ </s:simpleContent>
169
+ </s:complexType>
170
+ <s:complexType name="BasketFilterType">
171
+ <s:complexContent mixed="false">
172
+ <s:extension base="s1:BaseFilterType">
173
+ <s:sequence>
174
+ <s:element minOccurs="0" maxOccurs="1" name="orderid" type="s1:BasketFilterTypeOrderid" />
175
+ <s:element minOccurs="0" maxOccurs="1" name="category" type="s1:BasketFilterTypeCategory" />
176
+ </s:sequence>
177
+ </s:extension>
178
+ </s:complexContent>
179
+ </s:complexType>
180
+ <s:complexType name="BasketFilterTypeOrderid">
181
+ <s:simpleContent>
182
+ <s:extension base="s:normalizedString">
183
+ <s:attribute name="negate" type="s:boolean" />
184
+ </s:extension>
185
+ </s:simpleContent>
186
+ </s:complexType>
187
+ <s:complexType name="BasketFilterTypeCategory">
188
+ <s:attribute name="status" type="s:unsignedByte" />
189
+ </s:complexType>
190
+ <s:complexType name="PplFilterType">
191
+ <s:complexContent mixed="false">
192
+ <s:extension base="s1:BaseFilterType">
193
+ <s:sequence>
194
+ <s:element minOccurs="0" maxOccurs="1" name="categoryid" type="s1:PplFilterTypeCategoryid" />
195
+ </s:sequence>
196
+ </s:extension>
197
+ </s:complexContent>
198
+ </s:complexType>
199
+ <s:complexType name="PplFilterTypeCategoryid">
200
+ <s:simpleContent>
201
+ <s:extension base="s:normalizedString">
202
+ <s:attribute name="negate" type="s:boolean" />
203
+ </s:extension>
204
+ </s:simpleContent>
205
+ </s:complexType>
206
+ <s:complexType name="PpsFilterTypeCategoryid">
207
+ <s:simpleContent>
208
+ <s:extension base="s:normalizedString">
209
+ <s:attribute name="negate" type="s:boolean" />
210
+ </s:extension>
211
+ </s:simpleContent>
212
+ </s:complexType>
213
+ <s:complexType name="GetPps">
214
+ <s:sequence>
215
+ <s:element minOccurs="0" maxOccurs="unbounded" name="pps" type="s1:PpsType" />
216
+ </s:sequence>
217
+ </s:complexType>
218
+ <s:complexType name="PpsType">
219
+ <s:complexContent mixed="false">
220
+ <s:extension base="s1:BaseTypePplPps">
221
+ <s:sequence>
222
+ <s:element minOccurs="0" maxOccurs="1" name="suborder" type="s1:SuborderType" />
223
+ <s:element minOccurs="0" maxOccurs="1" name="amount" type="s1:AmountType" />
224
+ <s:element minOccurs="0" maxOccurs="1" name="commission" type="s1:CommissionPercentType" />
225
+ </s:sequence>
226
+ </s:extension>
227
+ </s:complexContent>
228
+ </s:complexType>
229
+ <s:complexType name="BaseTypePplPps">
230
+ <s:sequence>
231
+ <s:element minOccurs="0" maxOccurs="1" name="click" type="s1:ClickTimestampType" />
232
+ <s:element minOccurs="0" maxOccurs="1" name="request" type="s1:RequestIpAddressType" />
233
+ <s:element minOccurs="0" maxOccurs="1" name="program" type="s1:ProgramType" />
234
+ <s:element minOccurs="0" maxOccurs="1" name="order" type="s1:OrderType" />
235
+ <s:element minOccurs="0" maxOccurs="1" name="customer" type="s1:CustomerType" />
236
+ <s:element minOccurs="0" maxOccurs="1" name="category" type="s1:CategoryType" />
237
+ <s:element minOccurs="0" maxOccurs="1" name="session" type="s1:SessionType" />
238
+ <s:element minOccurs="0" maxOccurs="1" name="expiration" type="s1:ExpirationType" />
239
+ <s:element minOccurs="0" maxOccurs="1" name="affiliate" type="s1:AffiliateFullType" />
240
+ <s:element minOccurs="0" maxOccurs="1" name="subaffiliate" type="s1:SubAffiliateType" />
241
+ <s:element minOccurs="0" maxOccurs="1" name="review" type="s1:ReviewType" />
242
+ </s:sequence>
243
+ <s:attribute name="id" type="s:normalizedString" />
244
+ <s:attribute name="trackingtype" type="s:unsignedByte" use="required" />
245
+ <s:attribute name="cookie_id" type="s:long" use="required" />
246
+ </s:complexType>
247
+ <s:complexType name="ClickTimestampType">
248
+ <s:complexContent mixed="false">
249
+ <s:extension base="s1:ClickType">
250
+ <s:attribute name="timestamp" type="s:dateTime" />
251
+ </s:extension>
252
+ </s:complexContent>
253
+ </s:complexType>
254
+ <s:complexType name="ClickType">
255
+ <s:sequence>
256
+ <s:element minOccurs="0" maxOccurs="1" name="ulp" type="s:normalizedString" />
257
+ </s:sequence>
258
+ </s:complexType>
259
+ <s:complexType name="RequestIpAddressType">
260
+ <s:complexContent mixed="false">
261
+ <s:extension base="s1:RequestType">
262
+ <s:attribute name="ipaddress" type="s:normalizedString" />
263
+ </s:extension>
264
+ </s:complexContent>
265
+ </s:complexType>
266
+ <s:complexType name="RequestType">
267
+ <s:attribute name="timestamp" type="s:dateTime" />
268
+ </s:complexType>
269
+ <s:complexType name="ProgramType">
270
+ <s:attribute name="id" type="s:int" use="required" />
271
+ </s:complexType>
272
+ <s:complexType name="OrderType">
273
+ <s:attribute name="id" type="s:normalizedString" />
274
+ </s:complexType>
275
+ <s:complexType name="CustomerType">
276
+ <s:attribute name="id" type="s:normalizedString" />
277
+ </s:complexType>
278
+ <s:complexType name="CategoryType">
279
+ <s:attribute name="id" type="s:normalizedString" />
280
+ </s:complexType>
281
+ <s:complexType name="SessionType">
282
+ <s:attribute name="id" type="s:normalizedString" />
283
+ </s:complexType>
284
+ <s:complexType name="ExpirationType">
285
+ <s:attribute name="date" type="s:dateTime" use="required" />
286
+ </s:complexType>
287
+ <s:complexType name="AffiliateFullType">
288
+ <s:complexContent mixed="false">
289
+ <s:extension base="s1:AffiliateType">
290
+ <s:sequence>
291
+ <s:element minOccurs="0" maxOccurs="1" name="username" type="s:normalizedString" />
292
+ <s:element minOccurs="0" maxOccurs="1" name="website" type="s:normalizedString" />
293
+ </s:sequence>
294
+ <s:attribute name="code" type="s:normalizedString" />
295
+ </s:extension>
296
+ </s:complexContent>
297
+ </s:complexType>
298
+ <s:complexType name="AffiliateType">
299
+ <s:sequence>
300
+ <s:element minOccurs="0" maxOccurs="1" name="commission" type="s1:MoneyType" />
301
+ </s:sequence>
302
+ </s:complexType>
303
+ <s:complexType name="MoneyType">
304
+ <s:simpleContent>
305
+ <s:extension base="s:decimal">
306
+ <s:attribute name="currency" type="s:string" />
307
+ </s:extension>
308
+ </s:simpleContent>
309
+ </s:complexType>
310
+ <s:complexType name="SubAffiliateType">
311
+ <s:sequence>
312
+ <s:element minOccurs="0" maxOccurs="1" name="commission" type="s1:MoneyType" />
313
+ </s:sequence>
314
+ <s:attribute name="id" type="s:int" />
315
+ </s:complexType>
316
+ <s:complexType name="ReviewType">
317
+ <s:simpleContent>
318
+ <s:extension base="s:string">
319
+ <s:attribute name="state" type="s:int" />
320
+ <s:attribute name="date" type="s:dateTime" />
321
+ </s:extension>
322
+ </s:simpleContent>
323
+ </s:complexType>
324
+ <s:complexType name="PplType">
325
+ <s:complexContent mixed="false">
326
+ <s:extension base="s1:BaseTypePplPps">
327
+ <s:sequence>
328
+ <s:element minOccurs="0" maxOccurs="1" name="commission" type="s1:CommissionType" />
329
+ </s:sequence>
330
+ </s:extension>
331
+ </s:complexContent>
332
+ </s:complexType>
333
+ <s:complexType name="CommissionType">
334
+ <s:attribute name="fix" type="s:decimal" />
335
+ </s:complexType>
336
+ <s:complexType name="CommissionPercentType">
337
+ <s:complexContent mixed="false">
338
+ <s:extension base="s1:CommissionType">
339
+ <s:attribute name="percent" type="s:decimal" />
340
+ </s:extension>
341
+ </s:complexContent>
342
+ </s:complexType>
343
+ <s:complexType name="SuborderType">
344
+ <s:attribute name="id" type="s:normalizedString" />
345
+ </s:complexType>
346
+ <s:complexType name="AmountType">
347
+ <s:sequence>
348
+ <s:element minOccurs="0" maxOccurs="1" name="price" type="s1:MoneyType" />
349
+ <s:element minOccurs="0" maxOccurs="1" name="tracked" type="s1:MoneyType" />
350
+ <s:element minOccurs="0" maxOccurs="1" name="intern" type="s1:MoneyType" />
351
+ </s:sequence>
352
+ </s:complexType>
353
+ <s:element name="pplfilter" type="s1:PplFilterType" />
354
+ <s:complexType name="GetPpl">
355
+ <s:sequence>
356
+ <s:element minOccurs="0" maxOccurs="unbounded" name="ppl" type="s1:PplType" />
357
+ </s:sequence>
358
+ </s:complexType>
359
+ <s:element name="basketfilter" type="s1:BasketFilterType" />
360
+ <s:complexType name="GetBasket">
361
+ <s:sequence>
362
+ <s:element minOccurs="0" maxOccurs="unbounded" name="basket" type="s1:BasketType" />
363
+ </s:sequence>
364
+ </s:complexType>
365
+ <s:complexType name="BasketType">
366
+ <s:sequence>
367
+ <s:element minOccurs="0" maxOccurs="1" name="click" type="s1:ClickType" />
368
+ <s:element minOccurs="0" maxOccurs="1" name="request" type="s1:RequestType" />
369
+ <s:element minOccurs="0" maxOccurs="1" name="program" type="s1:ProgramType" />
370
+ <s:element minOccurs="0" maxOccurs="1" name="order" type="s1:OrderType" />
371
+ <s:element minOccurs="0" maxOccurs="1" name="category" type="s1:CategoryType" />
372
+ <s:element minOccurs="0" maxOccurs="1" name="affiliate" type="s1:AffiliateType" />
373
+ <s:element minOccurs="0" maxOccurs="1" name="product" type="s1:ProductType" />
374
+ <s:element minOccurs="0" maxOccurs="1" name="commission" type="s1:CommissionPercentType" />
375
+ </s:sequence>
376
+ <s:attribute name="id" type="s:normalizedString" />
377
+ <s:attribute name="trackingtype" type="s:unsignedByte" use="required" />
378
+ </s:complexType>
379
+ <s:complexType name="ProductType">
380
+ <s:sequence>
381
+ <s:element minOccurs="0" maxOccurs="1" name="name" type="s:normalizedString" />
382
+ <s:element minOccurs="0" maxOccurs="1" name="price" type="s1:MoneyType" />
383
+ </s:sequence>
384
+ <s:attribute name="number" type="s:normalizedString" />
385
+ <s:attribute name="quantity" type="s:short" />
386
+ </s:complexType>
387
+ </s:schema>
388
+ </wsdl:types>
389
+ <wsdl:message name="GetHistoryExportSoapIn">
390
+ <wsdl:part name="parameters" element="tns:GetHistoryExport" />
391
+ </wsdl:message>
392
+ <wsdl:message name="GetHistoryExportSoapOut">
393
+ <wsdl:part name="parameters" element="tns:GetHistoryExportResponse" />
394
+ </wsdl:message>
395
+ <wsdl:message name="GetHistoryExportzanox">
396
+ <wsdl:part name="zanox" element="tns:zanox" />
397
+ </wsdl:message>
398
+ <wsdl:message name="GetHistoryForIdSoapIn">
399
+ <wsdl:part name="parameters" element="tns:GetHistoryForId" />
400
+ </wsdl:message>
401
+ <wsdl:message name="GetHistoryForIdSoapOut">
402
+ <wsdl:part name="parameters" element="tns:GetHistoryForIdResponse" />
403
+ </wsdl:message>
404
+ <wsdl:message name="GetHistoryForIdzanox">
405
+ <wsdl:part name="zanox" element="tns:zanox" />
406
+ </wsdl:message>
407
+ <wsdl:message name="GetPpsSoapIn">
408
+ <wsdl:part name="parameters" element="tns:GetPps" />
409
+ </wsdl:message>
410
+ <wsdl:message name="GetPpsSoapOut">
411
+ <wsdl:part name="parameters" element="tns:GetPpsResponse" />
412
+ </wsdl:message>
413
+ <wsdl:message name="GetPpszanox">
414
+ <wsdl:part name="zanox" element="tns:zanox" />
415
+ </wsdl:message>
416
+ <wsdl:message name="GetPplSoapIn">
417
+ <wsdl:part name="parameters" element="tns:GetPpl" />
418
+ </wsdl:message>
419
+ <wsdl:message name="GetPplSoapOut">
420
+ <wsdl:part name="parameters" element="tns:GetPplResponse" />
421
+ </wsdl:message>
422
+ <wsdl:message name="GetPplzanox">
423
+ <wsdl:part name="zanox" element="tns:zanox" />
424
+ </wsdl:message>
425
+ <wsdl:message name="GetBasketSoapIn">
426
+ <wsdl:part name="parameters" element="tns:GetBasket" />
427
+ </wsdl:message>
428
+ <wsdl:message name="GetBasketSoapOut">
429
+ <wsdl:part name="parameters" element="tns:GetBasketResponse" />
430
+ </wsdl:message>
431
+ <wsdl:message name="GetBasketzanox">
432
+ <wsdl:part name="zanox" element="tns:zanox" />
433
+ </wsdl:message>
434
+ <wsdl:portType name="ExportServiceSoap">
435
+ <wsdl:operation name="GetHistoryExport">
436
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns all export history entries for the specified program id and tracking type.</wsdl:documentation>
437
+ <wsdl:input message="tns:GetHistoryExportSoapIn" />
438
+ <wsdl:output message="tns:GetHistoryExportSoapOut" />
439
+ </wsdl:operation>
440
+ <wsdl:operation name="GetHistoryForId">
441
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns the import history entry for the specified history id.</wsdl:documentation>
442
+ <wsdl:input message="tns:GetHistoryForIdSoapIn" />
443
+ <wsdl:output message="tns:GetHistoryForIdSoapOut" />
444
+ </wsdl:operation>
445
+ <wsdl:operation name="GetPps">
446
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns PPS entries for the specfied program id that matches the applied filter.</wsdl:documentation>
447
+ <wsdl:input message="tns:GetPpsSoapIn" />
448
+ <wsdl:output message="tns:GetPpsSoapOut" />
449
+ </wsdl:operation>
450
+ <wsdl:operation name="GetPpl">
451
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns PPL entries for the specfied program id that matches the applied filter.</wsdl:documentation>
452
+ <wsdl:input message="tns:GetPplSoapIn" />
453
+ <wsdl:output message="tns:GetPplSoapOut" />
454
+ </wsdl:operation>
455
+ <wsdl:operation name="GetBasket">
456
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns basket entries for the specfied program id that matches the applied filter.</wsdl:documentation>
457
+ <wsdl:input message="tns:GetBasketSoapIn" />
458
+ <wsdl:output message="tns:GetBasketSoapOut" />
459
+ </wsdl:operation>
460
+ </wsdl:portType>
461
+ <wsdl:binding name="ExportServiceSoap" type="tns:ExportServiceSoap">
462
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
463
+ <wsdl:operation name="GetHistoryExport">
464
+ <soap:operation soapAction="http://services.zanox.com/erp/GetHistoryExport" style="document" />
465
+ <wsdl:input>
466
+ <soap:body use="literal" />
467
+ <soap:header message="tns:GetHistoryExportzanox" part="zanox" use="literal" />
468
+ </wsdl:input>
469
+ <wsdl:output>
470
+ <soap:body use="literal" />
471
+ </wsdl:output>
472
+ </wsdl:operation>
473
+ <wsdl:operation name="GetHistoryForId">
474
+ <soap:operation soapAction="http://services.zanox.com/erp/GetHistoryForId" style="document" />
475
+ <wsdl:input>
476
+ <soap:body use="literal" />
477
+ <soap:header message="tns:GetHistoryForIdzanox" part="zanox" use="literal" />
478
+ </wsdl:input>
479
+ <wsdl:output>
480
+ <soap:body use="literal" />
481
+ </wsdl:output>
482
+ </wsdl:operation>
483
+ <wsdl:operation name="GetPps">
484
+ <soap:operation soapAction="http://services.zanox.com/erp/GetPps" style="document" />
485
+ <wsdl:input>
486
+ <soap:body use="literal" />
487
+ <soap:header message="tns:GetPpszanox" part="zanox" use="literal" />
488
+ </wsdl:input>
489
+ <wsdl:output>
490
+ <soap:body use="literal" />
491
+ </wsdl:output>
492
+ </wsdl:operation>
493
+ <wsdl:operation name="GetPpl">
494
+ <soap:operation soapAction="http://services.zanox.com/erp/GetPpl" style="document" />
495
+ <wsdl:input>
496
+ <soap:body use="literal" />
497
+ <soap:header message="tns:GetPplzanox" part="zanox" use="literal" />
498
+ </wsdl:input>
499
+ <wsdl:output>
500
+ <soap:body use="literal" />
501
+ </wsdl:output>
502
+ </wsdl:operation>
503
+ <wsdl:operation name="GetBasket">
504
+ <soap:operation soapAction="http://services.zanox.com/erp/GetBasket" style="document" />
505
+ <wsdl:input>
506
+ <soap:body use="literal" />
507
+ <soap:header message="tns:GetBasketzanox" part="zanox" use="literal" />
508
+ </wsdl:input>
509
+ <wsdl:output>
510
+ <soap:body use="literal" />
511
+ </wsdl:output>
512
+ </wsdl:operation>
513
+ </wsdl:binding>
514
+ <wsdl:service name="ExportService">
515
+ <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This Webservice is used to export ERP data.</wsdl:documentation>
516
+ <wsdl:port name="ExportServiceSoap" binding="tns:ExportServiceSoap">
517
+ <soap:address location="http://services.zanox.com/erp/v2/ExportService.asmx" />
518
+ </wsdl:port>
519
+ </wsdl:service>
520
+ </wsdl:definitions>