soap5r 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (628) hide show
  1. data/.gitignore +1 -0
  2. data/COPYING +7 -0
  3. data/GPL +340 -0
  4. data/RELEASE_en.html +1900 -0
  5. data/RUBYS +56 -0
  6. data/Rakefile +38 -0
  7. data/bin/wsdl2ruby.rb +139 -0
  8. data/bin/xsd2ruby.rb +91 -0
  9. data/install.rb +91 -0
  10. data/lib/soap/attachment.rb +109 -0
  11. data/lib/soap/attrproxy.rb +35 -0
  12. data/lib/soap/baseData.rb +1095 -0
  13. data/lib/soap/ci.rake +31 -0
  14. data/lib/soap/element.rb +278 -0
  15. data/lib/soap/encodingstyle/aspDotNetHandler.rb +208 -0
  16. data/lib/soap/encodingstyle/handler.rb +121 -0
  17. data/lib/soap/encodingstyle/literalHandler.rb +196 -0
  18. data/lib/soap/encodingstyle/soapHandler.rb +560 -0
  19. data/lib/soap/filter/filterchain.rb +52 -0
  20. data/lib/soap/filter/handler.rb +32 -0
  21. data/lib/soap/filter/streamhandler.rb +30 -0
  22. data/lib/soap/filter.rb +14 -0
  23. data/lib/soap/generator.rb +299 -0
  24. data/lib/soap/header/handler.rb +62 -0
  25. data/lib/soap/header/handlerset.rb +71 -0
  26. data/lib/soap/header/mappinghandler.rb +48 -0
  27. data/lib/soap/header/simplehandler.rb +45 -0
  28. data/lib/soap/httpconfigloader.rb +140 -0
  29. data/lib/soap/mapping/encodedregistry.rb +539 -0
  30. data/lib/soap/mapping/factory.rb +389 -0
  31. data/lib/soap/mapping/literalregistry.rb +392 -0
  32. data/lib/soap/mapping/mapping.rb +577 -0
  33. data/lib/soap/mapping/registry.rb +296 -0
  34. data/lib/soap/mapping/rubytypeFactory.rb +446 -0
  35. data/lib/soap/mapping/schemadefinition.rb +171 -0
  36. data/lib/soap/mapping/typeMap.rb +107 -0
  37. data/lib/soap/mapping/wsdlencodedregistry.rb +212 -0
  38. data/lib/soap/mapping/wsdlliteralregistry.rb +249 -0
  39. data/lib/soap/mapping.rb +13 -0
  40. data/lib/soap/marshal.rb +60 -0
  41. data/lib/soap/mimemessage.rb +243 -0
  42. data/lib/soap/nestedexception.rb +43 -0
  43. data/lib/soap/netHttpClient.rb +242 -0
  44. data/lib/soap/ns.rb +39 -0
  45. data/lib/soap/parser.rb +253 -0
  46. data/lib/soap/processor.rb +67 -0
  47. data/lib/soap/property.rb +340 -0
  48. data/lib/soap/proxy.rb +15 -0
  49. data/lib/soap/rpc/cgistub.rb +248 -0
  50. data/lib/soap/rpc/driver.rb +222 -0
  51. data/lib/soap/rpc/element.rb +375 -0
  52. data/lib/soap/rpc/httpserver.rb +143 -0
  53. data/lib/soap/rpc/methodDef.rb +69 -0
  54. data/lib/soap/rpc/proxy.rb +573 -0
  55. data/lib/soap/rpc/router.rb +663 -0
  56. data/lib/soap/rpc/rpc.rb +26 -0
  57. data/lib/soap/rpc/soaplet.rb +201 -0
  58. data/lib/soap/rpc/standaloneServer.rb +44 -0
  59. data/lib/soap/soap.rb +154 -0
  60. data/lib/soap/streamHandler.rb +302 -0
  61. data/lib/soap/version.rb +9 -0
  62. data/lib/soap/wsdlDriver.rb +165 -0
  63. data/lib/wsdl/binding.rb +66 -0
  64. data/lib/wsdl/data.rb +65 -0
  65. data/lib/wsdl/definitions.rb +237 -0
  66. data/lib/wsdl/documentation.rb +33 -0
  67. data/lib/wsdl/import.rb +81 -0
  68. data/lib/wsdl/importer.rb +39 -0
  69. data/lib/wsdl/info.rb +51 -0
  70. data/lib/wsdl/message.rb +55 -0
  71. data/lib/wsdl/operation.rb +152 -0
  72. data/lib/wsdl/operationBinding.rb +241 -0
  73. data/lib/wsdl/param.rb +94 -0
  74. data/lib/wsdl/parser.rb +165 -0
  75. data/lib/wsdl/part.rb +53 -0
  76. data/lib/wsdl/port.rb +67 -0
  77. data/lib/wsdl/portType.rb +76 -0
  78. data/lib/wsdl/service.rb +62 -0
  79. data/lib/wsdl/soap/address.rb +41 -0
  80. data/lib/wsdl/soap/binding.rb +50 -0
  81. data/lib/wsdl/soap/body.rb +59 -0
  82. data/lib/wsdl/soap/cgiStubCreator.rb +93 -0
  83. data/lib/wsdl/soap/classDefCreator.rb +434 -0
  84. data/lib/wsdl/soap/classDefCreatorSupport.rb +241 -0
  85. data/lib/wsdl/soap/classNameCreator.rb +55 -0
  86. data/lib/wsdl/soap/clientSkeltonCreator.rb +107 -0
  87. data/lib/wsdl/soap/complexType.rb +174 -0
  88. data/lib/wsdl/soap/data.rb +43 -0
  89. data/lib/wsdl/soap/definitions.rb +201 -0
  90. data/lib/wsdl/soap/driverCreator.rb +121 -0
  91. data/lib/wsdl/soap/element.rb +34 -0
  92. data/lib/wsdl/soap/encodedMappingRegistryCreator.rb +74 -0
  93. data/lib/wsdl/soap/fault.rb +57 -0
  94. data/lib/wsdl/soap/header.rb +87 -0
  95. data/lib/wsdl/soap/headerfault.rb +57 -0
  96. data/lib/wsdl/soap/literalMappingRegistryCreator.rb +116 -0
  97. data/lib/wsdl/soap/mappingRegistryCreator.rb +59 -0
  98. data/lib/wsdl/soap/mappingRegistryCreatorSupport.rb +377 -0
  99. data/lib/wsdl/soap/methodDefCreator.rb +200 -0
  100. data/lib/wsdl/soap/operation.rb +113 -0
  101. data/lib/wsdl/soap/servantSkeltonCreator.rb +92 -0
  102. data/lib/wsdl/soap/servletStubCreator.rb +105 -0
  103. data/lib/wsdl/soap/standaloneServerStubCreator.rb +101 -0
  104. data/lib/wsdl/soap/wsdl2ruby.rb +226 -0
  105. data/lib/wsdl/types.rb +45 -0
  106. data/lib/wsdl/wsdl.rb +25 -0
  107. data/lib/wsdl/xmlSchema/all.rb +25 -0
  108. data/lib/wsdl/xmlSchema/annotation.rb +35 -0
  109. data/lib/wsdl/xmlSchema/any.rb +62 -0
  110. data/lib/wsdl/xmlSchema/anyAttribute.rb +49 -0
  111. data/lib/wsdl/xmlSchema/attribute.rb +105 -0
  112. data/lib/wsdl/xmlSchema/attributeGroup.rb +69 -0
  113. data/lib/wsdl/xmlSchema/choice.rb +59 -0
  114. data/lib/wsdl/xmlSchema/complexContent.rb +98 -0
  115. data/lib/wsdl/xmlSchema/complexExtension.rb +120 -0
  116. data/lib/wsdl/xmlSchema/complexRestriction.rb +105 -0
  117. data/lib/wsdl/xmlSchema/complexType.rb +194 -0
  118. data/lib/wsdl/xmlSchema/content.rb +96 -0
  119. data/lib/wsdl/xmlSchema/data.rb +117 -0
  120. data/lib/wsdl/xmlSchema/element.rb +154 -0
  121. data/lib/wsdl/xmlSchema/enumeration.rb +37 -0
  122. data/lib/wsdl/xmlSchema/fractiondigits.rb +38 -0
  123. data/lib/wsdl/xmlSchema/group.rb +101 -0
  124. data/lib/wsdl/xmlSchema/import.rb +54 -0
  125. data/lib/wsdl/xmlSchema/importHandler.rb +46 -0
  126. data/lib/wsdl/xmlSchema/importer.rb +103 -0
  127. data/lib/wsdl/xmlSchema/include.rb +49 -0
  128. data/lib/wsdl/xmlSchema/length.rb +38 -0
  129. data/lib/wsdl/xmlSchema/list.rb +49 -0
  130. data/lib/wsdl/xmlSchema/maxexclusive.rb +38 -0
  131. data/lib/wsdl/xmlSchema/maxinclusive.rb +38 -0
  132. data/lib/wsdl/xmlSchema/maxlength.rb +38 -0
  133. data/lib/wsdl/xmlSchema/minexclusive.rb +38 -0
  134. data/lib/wsdl/xmlSchema/mininclusive.rb +38 -0
  135. data/lib/wsdl/xmlSchema/minlength.rb +38 -0
  136. data/lib/wsdl/xmlSchema/parser.rb +168 -0
  137. data/lib/wsdl/xmlSchema/pattern.rb +37 -0
  138. data/lib/wsdl/xmlSchema/ref.rb +34 -0
  139. data/lib/wsdl/xmlSchema/schema.rb +179 -0
  140. data/lib/wsdl/xmlSchema/sequence.rb +55 -0
  141. data/lib/wsdl/xmlSchema/simpleContent.rb +70 -0
  142. data/lib/wsdl/xmlSchema/simpleExtension.rb +63 -0
  143. data/lib/wsdl/xmlSchema/simpleRestriction.rb +133 -0
  144. data/lib/wsdl/xmlSchema/simpleType.rb +88 -0
  145. data/lib/wsdl/xmlSchema/totaldigits.rb +38 -0
  146. data/lib/wsdl/xmlSchema/union.rb +36 -0
  147. data/lib/wsdl/xmlSchema/unique.rb +35 -0
  148. data/lib/wsdl/xmlSchema/whitespace.rb +38 -0
  149. data/lib/wsdl/xmlSchema/xsd2ruby.rb +176 -0
  150. data/lib/xsd/charset.rb +190 -0
  151. data/lib/xsd/codegen/classdef.rb +209 -0
  152. data/lib/xsd/codegen/commentdef.rb +35 -0
  153. data/lib/xsd/codegen/gensupport.rb +277 -0
  154. data/lib/xsd/codegen/methoddef.rb +71 -0
  155. data/lib/xsd/codegen/moduledef.rb +209 -0
  156. data/lib/xsd/codegen.rb +13 -0
  157. data/lib/xsd/datatypes.rb +1466 -0
  158. data/lib/xsd/datatypes1999.rb +21 -0
  159. data/lib/xsd/iconvcharset.rb +34 -0
  160. data/lib/xsd/mapping.rb +69 -0
  161. data/lib/xsd/namedelements.rb +133 -0
  162. data/lib/xsd/ns.rb +183 -0
  163. data/lib/xsd/qname.rb +80 -0
  164. data/lib/xsd/xmlparser/libxmlparser.rb +116 -0
  165. data/lib/xsd/xmlparser/parser.rb +101 -0
  166. data/lib/xsd/xmlparser/rexmlparser.rb +59 -0
  167. data/lib/xsd/xmlparser/xmlparser.rb +51 -0
  168. data/lib/xsd/xmlparser/xmlscanner.rb +150 -0
  169. data/lib/xsd/xmlparser.rb +77 -0
  170. data/rubyStyle.css +104 -0
  171. data/sample/attachment/complexmime/EdmService.rb +125 -0
  172. data/sample/attachment/complexmime/README.txt +3 -0
  173. data/sample/attachment/complexmime/client.rb +58 -0
  174. data/sample/attachment/complexmime/drift.cdf +1 -0
  175. data/sample/attachment/complexmime/plaatje.png +1 -0
  176. data/sample/attachment/complexmime/server.rb +69 -0
  177. data/sample/attachment/swa/client.rb +14 -0
  178. data/sample/attachment/swa/server.rb +24 -0
  179. data/sample/basic/apacheClient.rb +93 -0
  180. data/sample/basic/babelfish.rb +17 -0
  181. data/sample/basic/calc/calc.rb +18 -0
  182. data/sample/basic/calc/calc2.rb +30 -0
  183. data/sample/basic/calc/client.rb +27 -0
  184. data/sample/basic/calc/client2.rb +30 -0
  185. data/sample/basic/calc/httpd.rb +21 -0
  186. data/sample/basic/calc/samplehttpd.conf +2 -0
  187. data/sample/basic/calc/server.cgi +16 -0
  188. data/sample/basic/calc/server.fcgi +22 -0
  189. data/sample/basic/calc/server.rb +22 -0
  190. data/sample/basic/calc/server2.rb +25 -0
  191. data/sample/basic/exchange/client.rb +20 -0
  192. data/sample/basic/exchange/exchange.rb +18 -0
  193. data/sample/basic/exchange/httpd.rb +21 -0
  194. data/sample/basic/exchange/samplehttpd.conf +2 -0
  195. data/sample/basic/exchange/server.cgi +15 -0
  196. data/sample/basic/exchange/server.rb +21 -0
  197. data/sample/basic/flickr.rb +27 -0
  198. data/sample/basic/helloworld/client.rb +7 -0
  199. data/sample/basic/helloworld/server.rb +21 -0
  200. data/sample/basic/sampleStruct/client.rb +17 -0
  201. data/sample/basic/sampleStruct/httpd.rb +21 -0
  202. data/sample/basic/sampleStruct/iSampleStruct.rb +23 -0
  203. data/sample/basic/sampleStruct/sampleStruct.rb +14 -0
  204. data/sample/basic/sampleStruct/samplehttpd.conf +2 -0
  205. data/sample/basic/sampleStruct/server.cgi +15 -0
  206. data/sample/basic/sampleStruct/server.rb +21 -0
  207. data/sample/basic/whois.rb +15 -0
  208. data/sample/basic/wsdl_helloworld/README +15 -0
  209. data/sample/basic/wsdl_helloworld/client/default.rb +2 -0
  210. data/sample/basic/wsdl_helloworld/client/defaultDriver.rb +48 -0
  211. data/sample/basic/wsdl_helloworld/client/hws.wsdl +46 -0
  212. data/sample/basic/wsdl_helloworld/client/hwsClient.rb +23 -0
  213. data/sample/basic/wsdl_helloworld/server/hw_s.rb +26 -0
  214. data/sample/basic/wsdl_helloworld/server/hws.wsdl +46 -0
  215. data/sample/basic/yahooNewsSearch.rb +37 -0
  216. data/sample/howto/as_xml/client.rb +23 -0
  217. data/sample/howto/as_xml/server.rb +23 -0
  218. data/sample/howto/base64/client.rb +18 -0
  219. data/sample/howto/base64/server.rb +31 -0
  220. data/sample/howto/custom_ns/client.rb +38 -0
  221. data/sample/howto/custom_ns/server.rb +43 -0
  222. data/sample/howto/documentliteral/README.txt +19 -0
  223. data/sample/howto/documentliteral/client.rb +12 -0
  224. data/sample/howto/documentliteral/echo.wsdl +66 -0
  225. data/sample/howto/documentliteral/servant.rb +12 -0
  226. data/sample/howto/filter/client.rb +43 -0
  227. data/sample/howto/filter/server.rb +68 -0
  228. data/sample/howto/scopesample/client.rb +35 -0
  229. data/sample/howto/scopesample/httpd.rb +23 -0
  230. data/sample/howto/scopesample/samplehttpd.conf +2 -0
  231. data/sample/howto/scopesample/servant.rb +19 -0
  232. data/sample/howto/scopesample/server.cgi +30 -0
  233. data/sample/howto/scopesample/server.rb +21 -0
  234. data/sample/howto/styleuse/client.rb +22 -0
  235. data/sample/howto/styleuse/server.rb +87 -0
  236. data/sample/howto/wsdl_fault/README.txt +11 -0
  237. data/sample/howto/wsdl_fault/fault/AddClient.rb +25 -0
  238. data/sample/howto/wsdl_fault/fault/AddServer.rb +16 -0
  239. data/sample/howto/wsdl_fault/fault/AddServiceImpl.rb +19 -0
  240. data/sample/howto/wsdl_fault/fault/fault.wsdl +79 -0
  241. data/sample/howto/wsdl_fault/multifault/AddClient.rb +29 -0
  242. data/sample/howto/wsdl_fault/multifault/AddServer.rb +16 -0
  243. data/sample/howto/wsdl_fault/multifault/AddServiceImpl.rb +25 -0
  244. data/sample/howto/wsdl_fault/multifault/fault.wsdl +96 -0
  245. data/sample/howto/wsdl_hash/client.rb +12 -0
  246. data/sample/howto/wsdl_hash/hash.wsdl +69 -0
  247. data/sample/howto/wsdl_hash/server.rb +18 -0
  248. data/sample/marshal/customfactory.rb +98 -0
  249. data/sample/marshal/customregistry.rb +18 -0
  250. data/sample/marshal/digraph.rb +44 -0
  251. data/sample/marshal/enum/README.txt +6 -0
  252. data/sample/marshal/enum/enum.xsd +23 -0
  253. data/sample/marshal/enum/enumsample.rb +21 -0
  254. data/sample/marshal/enum/enumsample_mapper.rb +8 -0
  255. data/sample/marshal/enum/enumsample_mapping_registry.rb +24 -0
  256. data/sample/marshal/enum/marshal.rb +10 -0
  257. data/sample/payload/basicauth/client.rb +11 -0
  258. data/sample/payload/basicauth/htpasswd +2 -0
  259. data/sample/payload/basicauth/server.rb +44 -0
  260. data/sample/payload/cookies/calc.rb +53 -0
  261. data/sample/payload/cookies/client.rb +31 -0
  262. data/sample/payload/cookies/filterclient.rb +53 -0
  263. data/sample/payload/cookies/server.rb +25 -0
  264. data/sample/payload/gzipped/client.rb +9 -0
  265. data/sample/payload/gzipped/server.rb +22 -0
  266. data/sample/payload/ssl/files/README +1 -0
  267. data/sample/payload/ssl/files/ca.cert +23 -0
  268. data/sample/payload/ssl/files/client.cert +19 -0
  269. data/sample/payload/ssl/files/client.key +15 -0
  270. data/sample/payload/ssl/files/server.cert +19 -0
  271. data/sample/payload/ssl/files/server.key +15 -0
  272. data/sample/payload/ssl/files/sslclient.properties +5 -0
  273. data/sample/payload/ssl/files/sslclient_require_noserverauth.properties +2 -0
  274. data/sample/payload/ssl/files/sslclient_with_clientauth.properties +9 -0
  275. data/sample/payload/ssl/files/subca.cert +21 -0
  276. data/sample/payload/ssl/sslclient.rb +13 -0
  277. data/sample/payload/ssl/sslclient_require_noserverauth.rb +13 -0
  278. data/sample/payload/ssl/sslclient_with_clientauth.rb +13 -0
  279. data/sample/payload/ssl/sslserver.rb +50 -0
  280. data/sample/payload/ssl/sslserver_noauth.rb +46 -0
  281. data/sample/payload/ssl/sslserver_require_clientauth.rb +51 -0
  282. data/sample/showcase/soap/hippo5tq/hippo5tq.rb +42 -0
  283. data/sample/showcase/soap/hippo5tq/hippo5tq2.rb +100 -0
  284. data/sample/showcase/soap/hippo5tq/hippoClient.rb +107 -0
  285. data/sample/showcase/soap/icd/IICD.rb +18 -0
  286. data/sample/showcase/soap/icd/icd.rb +47 -0
  287. data/sample/showcase/soap/mssoap/README.txt +62 -0
  288. data/sample/showcase/soap/mssoap/client.vba +19 -0
  289. data/sample/showcase/soap/mssoap/stockQuoteService.cgi +45 -0
  290. data/sample/showcase/soap/mssoap/stockQuoteService.rb +10 -0
  291. data/sample/showcase/soap/mssoap/stockQuoteService.wsdl +47 -0
  292. data/sample/showcase/soap/mssoap/stockQuoteServiceClient.rb +27 -0
  293. data/sample/showcase/soap/mssoap/stockQuoteServiceClient.xls +0 -0
  294. data/sample/showcase/soap/mssoap/stockQuoteServicePortTypeDriver.rb +47 -0
  295. data/sample/showcase/soap/netDicV06/INetDicV06.rb +37 -0
  296. data/sample/showcase/soap/netDicV06/netDicV06.rb +17 -0
  297. data/sample/showcase/soap/raa/SOAP__Lite.pl +15 -0
  298. data/sample/showcase/soap/raa/pocketSOAP.js +33 -0
  299. data/sample/showcase/soap/raa2.4/raa.rb +333 -0
  300. data/sample/showcase/soap/raa2.4/raa.wsdl +644 -0
  301. data/sample/showcase/soap/raa2.4/raaDriver.rb +256 -0
  302. data/sample/showcase/soap/raa2.4/raaServiceClient.rb +355 -0
  303. data/sample/showcase/soap/raa2.4/sample.rb +116 -0
  304. data/sample/showcase/soap/rwiki/rwikiClient.rb +30 -0
  305. data/sample/showcase/soap/rwiki/rwikiServer.cgi +45 -0
  306. data/sample/showcase/soap/soapbox/ContactsDataSet.xml +37 -0
  307. data/sample/showcase/soap/soapbox/ExceptionDataSet.xml +23 -0
  308. data/sample/showcase/soap/soapbox/MessageDataSet.xml +8 -0
  309. data/sample/showcase/soap/soapbox/SoapBoxWebService.wsdl +1233 -0
  310. data/sample/showcase/soap/soapbox/SoapBoxWebServiceWithRawXML.wsdl +1226 -0
  311. data/sample/showcase/soap/soapbox/wsdlDriver.rb +24 -0
  312. data/sample/showcase/wsdl/PayPalSvc/client.rb +37 -0
  313. data/sample/showcase/wsdl/amazon/AmazonSearch.rb +3161 -0
  314. data/sample/showcase/wsdl/amazon/AmazonSearchDriver.rb +547 -0
  315. data/sample/showcase/wsdl/amazon/sampleClient.rb +38 -0
  316. data/sample/showcase/wsdl/amazon/wsdlDriver.rb +53 -0
  317. data/sample/showcase/wsdl/amazonEC/client.rb +14 -0
  318. data/sample/showcase/wsdl/eBaySvc/sampleclient.rb +61 -0
  319. data/sample/showcase/wsdl/googleAdwords/CampaignService.wsdl +785 -0
  320. data/sample/showcase/wsdl/googleAdwords/ca.pem +19 -0
  321. data/sample/showcase/wsdl/googleAdwords/client.rb +41 -0
  322. data/sample/showcase/wsdl/googleAdwords/soap/property +1 -0
  323. data/sample/showcase/wsdl/googleSearch/GoogleSearch.rb +98 -0
  324. data/sample/showcase/wsdl/googleSearch/GoogleSearchDriver.rb +103 -0
  325. data/sample/showcase/wsdl/googleSearch/README +6 -0
  326. data/sample/showcase/wsdl/googleSearch/httpd.rb +21 -0
  327. data/sample/showcase/wsdl/googleSearch/sampleClient.rb +57 -0
  328. data/sample/showcase/wsdl/googleSearch/samplehttpd.conf +2 -0
  329. data/sample/showcase/wsdl/googleSearch/sjissearch.sh +3 -0
  330. data/sample/showcase/wsdl/googleSearch/wsdlDriver.rb +30 -0
  331. data/sample/showcase/wsdl/noaa/README.txt +5 -0
  332. data/sample/showcase/wsdl/noaa/client.rb +45 -0
  333. data/sample/showcase/wsdl/noaa/default.rb +47 -0
  334. data/sample/showcase/wsdl/noaa/defaultDriver.rb +67 -0
  335. data/sample/showcase/wsdl/noaa/defaultMappingRegistry.rb +75 -0
  336. data/sample/showcase/wsdl/noaa/ndfdXMLClient.rb +44 -0
  337. data/sample/showcase/wsdl/raa2.4/raa.rb +135 -0
  338. data/sample/showcase/wsdl/raa2.4/raa.wsdl +644 -0
  339. data/sample/showcase/wsdl/raa2.4/wsdlDriver.rb +118 -0
  340. data/sample/showcase/wsdl/rnn/client.rb +60 -0
  341. data/sample/showcase/wsdl/rnn/post.rb +28 -0
  342. data/sample/showcase/wsdl/rnn/rnn-hash.wsdl +282 -0
  343. data/sample/showcase/wsdl/rnn/rnn.wsdl +310 -0
  344. data/sample/showcase/wsdl/rnn/submit.rb +64 -0
  345. data/sample/showcase/wsdl/salesforce/SforceServiceClient.rb +281 -0
  346. data/sample/showcase/wsdl/salesforce/ca.pem +35 -0
  347. data/sample/showcase/wsdl/salesforce/client.rb +157 -0
  348. data/sample/showcase/wsdl/salesforce/default.rb +1741 -0
  349. data/sample/showcase/wsdl/salesforce/defaultDriver.rb +166 -0
  350. data/sample/showcase/wsdl/salesforce/soap/property +1 -0
  351. data/sample/soapheader/authheader/authmgr.rb +42 -0
  352. data/sample/soapheader/authheader/client.rb +41 -0
  353. data/sample/soapheader/authheader/client2.rb +43 -0
  354. data/sample/soapheader/authheader/server.rb +74 -0
  355. data/sample/soapheader/authheader/server2.rb +84 -0
  356. data/sample/soapheader/soapext_basicauth/client.rb +26 -0
  357. data/sample/soapheader/soapext_basicauth/mms_MizGIS.rb +702 -0
  358. data/sample/soapheader/soapext_basicauth/mms_MizGIS.wsdl +1007 -0
  359. data/sample/soapheader/soapext_basicauth/mms_MizGISClient.rb +232 -0
  360. data/sample/soapheader/soapext_basicauth/mms_MizGISDriver.rb +211 -0
  361. data/sample/soapheader/soapext_basicauth/mms_MizGISMappingRegistry.rb +1233 -0
  362. data/soap5r.gemspec +30 -0
  363. data/test/16runner.rb +69 -0
  364. data/test/helper.rb +7 -0
  365. data/test/interopR2/README.txt +2 -0
  366. data/test/interopR2/SOAPBuildersInterop_R2.wsdl +461 -0
  367. data/test/interopR2/SOAPBuildersInterop_R2GrB.wsdl +19 -0
  368. data/test/interopR2/base.rb +289 -0
  369. data/test/interopR2/client.NetRemoting.rb +18 -0
  370. data/test/interopR2/client.rb +1235 -0
  371. data/test/interopR2/client4S4C.rb +16 -0
  372. data/test/interopR2/client4S4C2.rb +15 -0
  373. data/test/interopR2/clientASP.NET.rb +18 -0
  374. data/test/interopR2/clientApacheAxis.rb +17 -0
  375. data/test/interopR2/clientApacheSOAP.rb +18 -0
  376. data/test/interopR2/clientBEAWebLogic.rb +18 -0
  377. data/test/interopR2/clientBase.rb +1968 -0
  378. data/test/interopR2/clientCapeConnect.rb +19 -0
  379. data/test/interopR2/clientDelphi.rb +20 -0
  380. data/test/interopR2/clientEasySoap.rb +15 -0
  381. data/test/interopR2/clientFrontier.rb +26 -0
  382. data/test/interopR2/clientGLUE.rb +33 -0
  383. data/test/interopR2/clientHP.rb +14 -0
  384. data/test/interopR2/clientJAX-RPC.rb +20 -0
  385. data/test/interopR2/clientJSOAP.rb +15 -0
  386. data/test/interopR2/clientKafkaXSLT.rb +16 -0
  387. data/test/interopR2/clientMSSOAPToolkit2.0.rb +18 -0
  388. data/test/interopR2/clientMSSOAPToolkit3.0.rb +18 -0
  389. data/test/interopR2/clientNuSOAP.rb +20 -0
  390. data/test/interopR2/clientNuWave.rb +16 -0
  391. data/test/interopR2/clientOpenLink.rb +16 -0
  392. data/test/interopR2/clientOracle.rb +16 -0
  393. data/test/interopR2/clientPEAR.rb +19 -0
  394. data/test/interopR2/clientPhalanx.rb +19 -0
  395. data/test/interopR2/clientSIMACE.rb +19 -0
  396. data/test/interopR2/clientSOAP4R.rb +19 -0
  397. data/test/interopR2/clientSOAP__Lite.rb +15 -0
  398. data/test/interopR2/clientSQLData.rb +19 -0
  399. data/test/interopR2/clientSilverStream.rb +18 -0
  400. data/test/interopR2/clientSpray2001.rb +18 -0
  401. data/test/interopR2/clientSun.rb +20 -0
  402. data/test/interopR2/clientVWOpentalkSoap.rb +20 -0
  403. data/test/interopR2/clientWASP.rb +20 -0
  404. data/test/interopR2/clientWASPC.rb +19 -0
  405. data/test/interopR2/clientWebMethods.rb +16 -0
  406. data/test/interopR2/clientWhiteMesa.rb +29 -0
  407. data/test/interopR2/clientWingfoot.rb +16 -0
  408. data/test/interopR2/clientXMLBus.rb +20 -0
  409. data/test/interopR2/clientXMLRPC-EPI.rb +18 -0
  410. data/test/interopR2/clientXSOAP.rb +15 -0
  411. data/test/interopR2/clientZSI.rb +20 -0
  412. data/test/interopR2/clienteSOAP.rb +19 -0
  413. data/test/interopR2/clientgSOAP.rb +19 -0
  414. data/test/interopR2/clientkSOAP.rb +18 -0
  415. data/test/interopR2/iSimonReg.rb +113 -0
  416. data/test/interopR2/interopResultBase.rb +115 -0
  417. data/test/interopR2/interopService.rb +248 -0
  418. data/test/interopR2/rwikiInteropService.rb +106 -0
  419. data/test/interopR2/server.cgi +271 -0
  420. data/test/interopR2/server.rb +276 -0
  421. data/test/interopR2/simonReg.rb +124 -0
  422. data/test/interopR2/test.sh +49 -0
  423. data/test/interopR4/client.rb +113 -0
  424. data/test/runner.rb +8 -0
  425. data/test/sm11/classDef.rb +157 -0
  426. data/test/sm11/client.rb +543 -0
  427. data/test/sm11/driver.rb +184 -0
  428. data/test/sm11/servant.rb +1068 -0
  429. data/test/sm11/server.rb +26 -0
  430. data/test/soap/asp.net/hello.wsdl +96 -0
  431. data/test/soap/asp.net/test_aspdotnet.rb +124 -0
  432. data/test/soap/auth/htdigest +2 -0
  433. data/test/soap/auth/htpasswd +2 -0
  434. data/test/soap/auth/test_basic.rb +118 -0
  435. data/test/soap/auth/test_digest.rb +119 -0
  436. data/test/soap/calc/calc.rb +18 -0
  437. data/test/soap/calc/calc2.rb +30 -0
  438. data/test/soap/calc/server.cgi +16 -0
  439. data/test/soap/calc/server.rb +18 -0
  440. data/test/soap/calc/server2.rb +21 -0
  441. data/test/soap/calc/test_calc.rb +53 -0
  442. data/test/soap/calc/test_calc2.rb +57 -0
  443. data/test/soap/calc/test_calc_cgi.rb +72 -0
  444. data/test/soap/case/test_mapping.rb +58 -0
  445. data/test/soap/fault/test_customfault.rb +61 -0
  446. data/test/soap/fault/test_fault.rb +47 -0
  447. data/test/soap/fault/test_soaparray.rb +36 -0
  448. data/test/soap/filter/test_filter.rb +147 -0
  449. data/test/soap/header/server.cgi +121 -0
  450. data/test/soap/header/test_authheader.rb +241 -0
  451. data/test/soap/header/test_authheader_cgi.rb +122 -0
  452. data/test/soap/header/test_simplehandler.rb +117 -0
  453. data/test/soap/helloworld/hw_s.rb +17 -0
  454. data/test/soap/helloworld/test_helloworld.rb +45 -0
  455. data/test/soap/htpasswd +2 -0
  456. data/test/soap/literalArrayMapping/amazonEc.rb +4779 -0
  457. data/test/soap/literalArrayMapping/amazonEcDriver.rb +173 -0
  458. data/test/soap/literalArrayMapping/amazonresponse.xml +100 -0
  459. data/test/soap/literalArrayMapping/test_definedarray.rb +35 -0
  460. data/test/soap/marshal/marshaltestlib.rb +498 -0
  461. data/test/soap/marshal/test_digraph.rb +57 -0
  462. data/test/soap/marshal/test_marshal.rb +28 -0
  463. data/test/soap/marshal/test_struct.rb +48 -0
  464. data/test/soap/ssl/README +1 -0
  465. data/test/soap/ssl/ca.cert +23 -0
  466. data/test/soap/ssl/client.cert +19 -0
  467. data/test/soap/ssl/client.key +15 -0
  468. data/test/soap/ssl/server.cert +19 -0
  469. data/test/soap/ssl/server.key +15 -0
  470. data/test/soap/ssl/sslsvr.rb +59 -0
  471. data/test/soap/ssl/subca.cert +21 -0
  472. data/test/soap/ssl/test_ssl.rb +236 -0
  473. data/test/soap/struct/test_struct.rb +71 -0
  474. data/test/soap/styleuse/client.rb +21 -0
  475. data/test/soap/styleuse/server.rb +87 -0
  476. data/test/soap/swa/test_file.rb +76 -0
  477. data/test/soap/test_basetype.rb +1091 -0
  478. data/test/soap/test_cookie.rb +113 -0
  479. data/test/soap/test_custom_ns.rb +106 -0
  480. data/test/soap/test_custommap.rb +111 -0
  481. data/test/soap/test_empty.rb +106 -0
  482. data/test/soap/test_envelopenamespace.rb +86 -0
  483. data/test/soap/test_extraattr.rb +55 -0
  484. data/test/soap/test_generator.rb +32 -0
  485. data/test/soap/test_httpconfigloader.rb +72 -0
  486. data/test/soap/test_mapping.rb +132 -0
  487. data/test/soap/test_nestedexception.rb +71 -0
  488. data/test/soap/test_nil.rb +71 -0
  489. data/test/soap/test_no_indent.rb +89 -0
  490. data/test/soap/test_property.rb +429 -0
  491. data/test/soap/test_response_as_xml.rb +118 -0
  492. data/test/soap/test_soapelement.rb +139 -0
  493. data/test/soap/test_streamhandler.rb +271 -0
  494. data/test/soap/test_styleuse.rb +327 -0
  495. data/test/soap/wsdlDriver/README.txt +2 -0
  496. data/test/soap/wsdlDriver/calc.wsdl +126 -0
  497. data/test/soap/wsdlDriver/document.wsdl +54 -0
  498. data/test/soap/wsdlDriver/echo_version.rb +30 -0
  499. data/test/soap/wsdlDriver/simpletype.wsdl +63 -0
  500. data/test/soap/wsdlDriver/test_calc.rb +72 -0
  501. data/test/soap/wsdlDriver/test_document.rb +72 -0
  502. data/test/soap/wsdlDriver/test_simpletype.rb +82 -0
  503. data/test/testutil.rb +55 -0
  504. data/test/wsdl/abstract/abstract.wsdl +176 -0
  505. data/test/wsdl/abstract/test_abstract.rb +160 -0
  506. data/test/wsdl/anonymous/expectedClassDef.rb +129 -0
  507. data/test/wsdl/anonymous/expectedDriver.rb +60 -0
  508. data/test/wsdl/anonymous/expectedMappingRegistry.rb +177 -0
  509. data/test/wsdl/anonymous/lp.wsdl +147 -0
  510. data/test/wsdl/anonymous/test_anonymous.rb +131 -0
  511. data/test/wsdl/any/any.wsdl +114 -0
  512. data/test/wsdl/any/expectedDriver.rb +69 -0
  513. data/test/wsdl/any/expectedEcho.rb +58 -0
  514. data/test/wsdl/any/expectedMappingRegistry.rb +64 -0
  515. data/test/wsdl/any/expectedService.rb +70 -0
  516. data/test/wsdl/any/test_any.rb +194 -0
  517. data/test/wsdl/axisArray/axisArray.wsdl +87 -0
  518. data/test/wsdl/axisArray/test_axisarray.rb +125 -0
  519. data/test/wsdl/choice/choice.wsdl +167 -0
  520. data/test/wsdl/choice/test_choice.rb +311 -0
  521. data/test/wsdl/complexcontent/complexContent.wsdl +83 -0
  522. data/test/wsdl/complexcontent/test_echo.rb +91 -0
  523. data/test/wsdl/datetime/DatetimeService.rb +45 -0
  524. data/test/wsdl/datetime/datetime.rb +0 -0
  525. data/test/wsdl/datetime/datetime.wsdl +45 -0
  526. data/test/wsdl/datetime/datetimeServant.rb +23 -0
  527. data/test/wsdl/datetime/test_datetime.rb +88 -0
  528. data/test/wsdl/document/array/double.wsdl +161 -0
  529. data/test/wsdl/document/array/test_array.rb +202 -0
  530. data/test/wsdl/document/document.wsdl +76 -0
  531. data/test/wsdl/document/number.wsdl +54 -0
  532. data/test/wsdl/document/ping_nosoapaction.wsdl +66 -0
  533. data/test/wsdl/document/test_nosoapaction.rb +103 -0
  534. data/test/wsdl/document/test_number.rb +93 -0
  535. data/test/wsdl/document/test_rpc.rb +356 -0
  536. data/test/wsdl/emptycomplextype.wsdl +31 -0
  537. data/test/wsdl/fault/fault.wsdl +79 -0
  538. data/test/wsdl/fault/multifault.wsdl +96 -0
  539. data/test/wsdl/fault/test_fault.rb +120 -0
  540. data/test/wsdl/fault/test_multifault.rb +135 -0
  541. data/test/wsdl/group/expectedClassdef.rb +59 -0
  542. data/test/wsdl/group/expectedDriver.rb +52 -0
  543. data/test/wsdl/group/expectedMappingRegistry.rb +68 -0
  544. data/test/wsdl/group/group.wsdl +88 -0
  545. data/test/wsdl/group/test_rpc.rb +146 -0
  546. data/test/wsdl/list/list.wsdl +93 -0
  547. data/test/wsdl/list/test_list.rb +125 -0
  548. data/test/wsdl/map/map.wsdl +92 -0
  549. data/test/wsdl/map/map.xml +43 -0
  550. data/test/wsdl/map/test_map.rb +100 -0
  551. data/test/wsdl/marshal/person.wsdl +21 -0
  552. data/test/wsdl/marshal/person_org.rb +24 -0
  553. data/test/wsdl/marshal/test_wsdlmarshal.rb +76 -0
  554. data/test/wsdl/multiplefault.wsdl +75 -0
  555. data/test/wsdl/oneway/oneway.wsdl +36 -0
  556. data/test/wsdl/oneway/test_oneway.rb +109 -0
  557. data/test/wsdl/overload/expectedClient.rb +38 -0
  558. data/test/wsdl/overload/expectedDriver.rb +62 -0
  559. data/test/wsdl/overload/expectedServant.rb +36 -0
  560. data/test/wsdl/overload/overload.wsdl +70 -0
  561. data/test/wsdl/overload/test_overload.rb +132 -0
  562. data/test/wsdl/qualified/lp.wsdl +47 -0
  563. data/test/wsdl/qualified/lp.xsd +26 -0
  564. data/test/wsdl/qualified/np.wsdl +51 -0
  565. data/test/wsdl/qualified/test_qualified.rb +138 -0
  566. data/test/wsdl/qualified/test_unqualified.rb +139 -0
  567. data/test/wsdl/raa/RAAService.rb +126 -0
  568. data/test/wsdl/raa/README.txt +8 -0
  569. data/test/wsdl/raa/expectedClassDef.rb +101 -0
  570. data/test/wsdl/raa/expectedDriver.rb +97 -0
  571. data/test/wsdl/raa/expectedMappingRegistry.rb +122 -0
  572. data/test/wsdl/raa/raa.wsdl +264 -0
  573. data/test/wsdl/raa/test_raa.rb +127 -0
  574. data/test/wsdl/ref/expectedDriver.rb +52 -0
  575. data/test/wsdl/ref/expectedProduct.rb +244 -0
  576. data/test/wsdl/ref/product.wsdl +147 -0
  577. data/test/wsdl/ref/test_ref.rb +269 -0
  578. data/test/wsdl/rpc/rpc.wsdl +109 -0
  579. data/test/wsdl/rpc/test-rpc-lit.wsdl +371 -0
  580. data/test/wsdl/rpc/test_rpc.rb +177 -0
  581. data/test/wsdl/rpc/test_rpc_lit.rb +471 -0
  582. data/test/wsdl/simplecontent/simplecontent.wsdl +84 -0
  583. data/test/wsdl/simplecontent/test_simplecontent.rb +103 -0
  584. data/test/wsdl/simpletype/rpc/expectedClient.rb +35 -0
  585. data/test/wsdl/simpletype/rpc/expectedDriver.rb +59 -0
  586. data/test/wsdl/simpletype/rpc/expectedEchoVersion.rb +37 -0
  587. data/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb +58 -0
  588. data/test/wsdl/simpletype/rpc/expectedServant.rb +33 -0
  589. data/test/wsdl/simpletype/rpc/expectedService.rb +56 -0
  590. data/test/wsdl/simpletype/rpc/rpc.wsdl +98 -0
  591. data/test/wsdl/simpletype/rpc/test_rpc.rb +53 -0
  592. data/test/wsdl/simpletype/simpletype.wsdl +114 -0
  593. data/test/wsdl/simpletype/test_simpletype.rb +93 -0
  594. data/test/wsdl/soap/soapbodyparts.wsdl +103 -0
  595. data/test/wsdl/soap/test_soapbodyparts.rb +80 -0
  596. data/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb +22 -0
  597. data/test/wsdl/soap/wsdl2ruby/expectedClient.rb +35 -0
  598. data/test/wsdl/soap/wsdl2ruby/expectedDriver.rb +59 -0
  599. data/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb +37 -0
  600. data/test/wsdl/soap/wsdl2ruby/expectedServant.rb +33 -0
  601. data/test/wsdl/soap/wsdl2ruby/expectedService.cgi +49 -0
  602. data/test/wsdl/soap/wsdl2ruby/expectedService.rb +56 -0
  603. data/test/wsdl/soap/wsdl2ruby/rpc.wsdl +80 -0
  604. data/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb +38 -0
  605. data/test/wsdl/soap/wsdl2ruby/section/section.xsd +31 -0
  606. data/test/wsdl/soap/wsdl2ruby/section/test_section.rb +54 -0
  607. data/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl +64 -0
  608. data/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb +84 -0
  609. data/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb +103 -0
  610. data/test/wsdl/soaptype/soaptype.wsdl +61 -0
  611. data/test/wsdl/soaptype/test_soaptype.rb +179 -0
  612. data/test/wsdl/test_emptycomplextype.rb +22 -0
  613. data/test/wsdl/test_fault.rb +51 -0
  614. data/test/wsdl/test_multiplefault.rb +42 -0
  615. data/test/xsd/codegen/test_classdef.rb +245 -0
  616. data/test/xsd/noencoding.xml +4 -0
  617. data/test/xsd/test_noencoding.rb +33 -0
  618. data/test/xsd/test_ns.rb +42 -0
  619. data/test/xsd/test_xmlschemaparser.rb +23 -0
  620. data/test/xsd/test_xsd.rb +1639 -0
  621. data/test/xsd/xmllang.xml +43 -0
  622. data/test/xsd/xmlschema.xml +12 -0
  623. data/test/xsd/xsd2ruby/expected_mysample.rb +66 -0
  624. data/test/xsd/xsd2ruby/expected_mysample_mapper.rb +12 -0
  625. data/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb +52 -0
  626. data/test/xsd/xsd2ruby/section.xsd +49 -0
  627. data/test/xsd/xsd2ruby/test_xsd2ruby.rb +91 -0
  628. metadata +1033 -0
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/COPYING ADDED
@@ -0,0 +1,7 @@
1
+ SOAP4R, WSDL4R and XSD4R
2
+ Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
3
+
4
+ This program is copyrighted free software by NAKAMURA, Hiroshi. You can
5
+ redistribute it and/or modify it under the same terms of Ruby's license;
6
+ either the dual license version in 2003 (see the file RUBYS), or any later
7
+ version.
data/GPL ADDED
@@ -0,0 +1,340 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Library General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License
307
+ along with this program; if not, write to the Free Software
308
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
+
310
+
311
+ Also add information on how to contact you by electronic and paper mail.
312
+
313
+ If the program is interactive, make it output a short notice like this
314
+ when it starts in an interactive mode:
315
+
316
+ Gnomovision version 69, Copyright (C) year name of author
317
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
+ This is free software, and you are welcome to redistribute it
319
+ under certain conditions; type `show c' for details.
320
+
321
+ The hypothetical commands `show w' and `show c' should show the appropriate
322
+ parts of the General Public License. Of course, the commands you use may
323
+ be called something other than `show w' and `show c'; they could even be
324
+ mouse-clicks or menu items--whatever suits your program.
325
+
326
+ You should also get your employer (if you work as a programmer) or your
327
+ school, if any, to sign a "copyright disclaimer" for the program, if
328
+ necessary. Here is a sample; alter the names:
329
+
330
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
+
333
+ <signature of Ty Coon>, 1 April 1989
334
+ Ty Coon, President of Vice
335
+
336
+ This General Public License does not permit incorporating your program into
337
+ proprietary programs. If your program is a subroutine library, you may
338
+ consider it more useful to permit linking proprietary applications with the
339
+ library. If this is what you want to do, use the GNU Library General
340
+ Public License instead of this License.