rtiss_soap4r 2.1.0 → 3.0.0.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.codeclimate.yml +20 -0
- data/.envrc +4 -0
- data/.ruby-version +1 -0
- data/.travis.yml +39 -0
- data/COPYING +7 -0
- data/GPL +340 -0
- data/Gemfile +53 -0
- data/Gemfile.lock +221 -0
- data/README.md +57 -0
- data/RELEASE_en.html +1900 -0
- data/RUBYS +56 -0
- data/Rakefile +88 -0
- data/bin/wsdl2ruby.rb +1 -4
- data/bin/xsd2ruby.rb +2 -4
- data/gemfiles/httpclient.gemfile +26 -0
- data/install.rb +91 -0
- data/lib/soap/attachment.rb +27 -11
- data/lib/soap/attrproxy.rb +0 -1
- data/lib/soap/baseData.rb +15 -3
- data/lib/soap/element.rb +1 -2
- data/lib/soap/encodingstyle/aspDotNetHandler.rb +0 -1
- data/lib/soap/encodingstyle/handler.rb +0 -1
- data/lib/soap/encodingstyle/literalHandler.rb +0 -1
- data/lib/soap/encodingstyle/soapHandler.rb +0 -1
- data/lib/soap/filter/filterchain.rb +1 -2
- data/lib/soap/filter/handler.rb +0 -1
- data/lib/soap/filter/streamhandler.rb +0 -1
- data/lib/soap/filter.rb +0 -1
- data/lib/soap/generator.rb +3 -3
- data/lib/soap/header/handler.rb +0 -1
- data/lib/soap/header/handlerset.rb +0 -1
- data/lib/soap/header/mappinghandler.rb +0 -1
- data/lib/soap/header/simplehandler.rb +0 -1
- data/lib/soap/http_logger.rb +16 -2
- data/lib/soap/httpconfigloader.rb +1 -2
- data/lib/soap/mapping/encodedregistry.rb +22 -20
- data/lib/soap/mapping/factory.rb +42 -13
- data/lib/soap/mapping/literalregistry.rb +3 -6
- data/lib/soap/mapping/mapping.rb +11 -12
- data/lib/soap/mapping/registry.rb +2 -5
- data/lib/soap/mapping/rubytypeFactory.rb +2 -2
- data/lib/soap/mapping/schemadefinition.rb +0 -1
- data/lib/soap/mapping/typeMap.rb +0 -2
- data/lib/soap/mapping/wsdlencodedregistry.rb +1 -2
- data/lib/soap/mapping/wsdlliteralregistry.rb +0 -1
- data/lib/soap/mapping.rb +0 -1
- data/lib/soap/marshal.rb +0 -1
- data/lib/soap/mimemessage.rb +52 -27
- data/lib/soap/nestedexception.rb +1 -2
- data/lib/soap/netHttpClient.rb +4 -5
- data/lib/soap/ns.rb +0 -5
- data/lib/soap/parser.rb +1 -1
- data/lib/soap/processor.rb +0 -1
- data/lib/soap/property.rb +21 -18
- data/lib/soap/proxy.rb +0 -1
- data/lib/soap/rpc/cgistub.rb +3 -4
- data/lib/soap/rpc/driver.rb +175 -176
- data/lib/soap/rpc/element.rb +2 -3
- data/lib/soap/rpc/element.rb.orig +374 -0
- data/lib/soap/rpc/httpserver.rb +1 -3
- data/lib/soap/rpc/methodDef.rb +0 -1
- data/lib/soap/rpc/proxy.rb +2 -3
- data/lib/soap/rpc/router.rb +36 -7
- data/lib/soap/rpc/rpc.rb +0 -1
- data/lib/soap/rpc/soaplet.rb +2 -3
- data/lib/soap/rpc/standaloneServer.rb +1 -2
- data/lib/soap/soap.rb +4 -30
- data/lib/soap/streamHandler.rb +8 -10
- data/lib/soap/version.rb +3 -3
- data/lib/soap/wsdlDriver.rb +0 -2
- data/lib/wsdl/binding.rb +0 -1
- data/lib/wsdl/data.rb +0 -1
- data/lib/wsdl/definitions.rb +0 -1
- data/lib/wsdl/documentation.rb +0 -1
- data/lib/wsdl/import.rb +0 -1
- data/lib/wsdl/importer.rb +0 -1
- data/lib/wsdl/info.rb +0 -1
- data/lib/wsdl/message.rb +0 -1
- data/lib/wsdl/operation.rb +0 -1
- data/lib/wsdl/operationBinding.rb +3 -4
- data/lib/wsdl/param.rb +0 -1
- data/lib/wsdl/parser.rb +5 -21
- data/lib/wsdl/part.rb +0 -1
- data/lib/wsdl/port.rb +0 -1
- data/lib/wsdl/portType.rb +0 -1
- data/lib/wsdl/service.rb +0 -1
- data/lib/wsdl/soap/address.rb +0 -1
- data/lib/wsdl/soap/binding.rb +0 -1
- data/lib/wsdl/soap/body.rb +0 -1
- data/lib/wsdl/soap/cgiStubCreator.rb +0 -1
- data/lib/wsdl/soap/classDefCreator.rb +20 -1
- data/lib/wsdl/soap/classDefCreatorSupport.rb +1 -2
- data/lib/wsdl/soap/classNameCreator.rb +0 -1
- data/lib/wsdl/soap/clientSkeltonCreator.rb +2 -5
- data/lib/wsdl/soap/complexType.rb +0 -1
- data/lib/wsdl/soap/data.rb +0 -1
- data/lib/wsdl/soap/definitions.rb +1 -2
- data/lib/wsdl/soap/driverCreator.rb +75 -74
- data/lib/wsdl/soap/element.rb +0 -1
- data/lib/wsdl/soap/encodedMappingRegistryCreator.rb +0 -1
- data/lib/wsdl/soap/fault.rb +0 -1
- data/lib/wsdl/soap/header.rb +0 -1
- data/lib/wsdl/soap/headerfault.rb +0 -1
- data/lib/wsdl/soap/literalMappingRegistryCreator.rb +0 -1
- data/lib/wsdl/soap/mappingRegistryCreator.rb +0 -1
- data/lib/wsdl/soap/mappingRegistryCreatorSupport.rb +0 -1
- data/lib/wsdl/soap/methodDefCreator.rb +9 -1
- data/lib/wsdl/soap/operation.rb +1 -2
- data/lib/wsdl/soap/servantSkeltonCreator.rb +2 -5
- data/lib/wsdl/soap/servletStubCreator.rb +0 -1
- data/lib/wsdl/soap/standaloneServerStubCreator.rb +0 -1
- data/lib/wsdl/soap/wsdl2ruby.rb +9 -5
- data/lib/wsdl/types.rb +0 -1
- data/lib/wsdl/wsdl.rb +0 -1
- data/lib/wsdl/xmlSchema/all.rb +0 -1
- data/lib/wsdl/xmlSchema/annotation.rb +0 -1
- data/lib/wsdl/xmlSchema/any.rb +0 -1
- data/lib/wsdl/xmlSchema/anyAttribute.rb +0 -1
- data/lib/wsdl/xmlSchema/attribute.rb +0 -1
- data/lib/wsdl/xmlSchema/attributeGroup.rb +0 -1
- data/lib/wsdl/xmlSchema/choice.rb +0 -1
- data/lib/wsdl/xmlSchema/complexContent.rb +0 -1
- data/lib/wsdl/xmlSchema/complexExtension.rb +0 -1
- data/lib/wsdl/xmlSchema/complexRestriction.rb +0 -1
- data/lib/wsdl/xmlSchema/complexType.rb +0 -1
- data/lib/wsdl/xmlSchema/content.rb +0 -1
- data/lib/wsdl/xmlSchema/data.rb +0 -1
- data/lib/wsdl/xmlSchema/element.rb +1 -2
- data/lib/wsdl/xmlSchema/enumeration.rb +0 -1
- data/lib/wsdl/xmlSchema/fractiondigits.rb +0 -1
- data/lib/wsdl/xmlSchema/group.rb +0 -1
- data/lib/wsdl/xmlSchema/import.rb +1 -1
- data/lib/wsdl/xmlSchema/importHandler.rb +1 -1
- data/lib/wsdl/xmlSchema/importer.rb +0 -1
- data/lib/wsdl/xmlSchema/include.rb +1 -1
- data/lib/wsdl/xmlSchema/length.rb +0 -1
- data/lib/wsdl/xmlSchema/list.rb +0 -1
- data/lib/wsdl/xmlSchema/maxexclusive.rb +0 -1
- data/lib/wsdl/xmlSchema/maxinclusive.rb +0 -1
- data/lib/wsdl/xmlSchema/maxlength.rb +0 -1
- data/lib/wsdl/xmlSchema/minexclusive.rb +0 -1
- data/lib/wsdl/xmlSchema/mininclusive.rb +0 -1
- data/lib/wsdl/xmlSchema/minlength.rb +0 -1
- data/lib/wsdl/xmlSchema/parser.rb +4 -5
- data/lib/wsdl/xmlSchema/pattern.rb +0 -1
- data/lib/wsdl/xmlSchema/ref.rb +0 -1
- data/lib/wsdl/xmlSchema/schema.rb +0 -1
- data/lib/wsdl/xmlSchema/sequence.rb +0 -1
- data/lib/wsdl/xmlSchema/simpleContent.rb +0 -1
- data/lib/wsdl/xmlSchema/simpleExtension.rb +0 -1
- data/lib/wsdl/xmlSchema/simpleRestriction.rb +0 -1
- data/lib/wsdl/xmlSchema/simpleType.rb +0 -1
- data/lib/wsdl/xmlSchema/totaldigits.rb +0 -1
- data/lib/wsdl/xmlSchema/union.rb +0 -1
- data/lib/wsdl/xmlSchema/unique.rb +0 -1
- data/lib/wsdl/xmlSchema/whitespace.rb +0 -1
- data/lib/wsdl/xmlSchema/xsd2ruby.rb +0 -3
- data/lib/xsd/charset.rb +162 -152
- data/lib/xsd/codegen/classdef.rb +0 -1
- data/lib/xsd/codegen/commentdef.rb +0 -1
- data/lib/xsd/codegen/gensupport.rb +5 -9
- data/lib/xsd/codegen/methoddef.rb +0 -1
- data/lib/xsd/codegen/moduledef.rb +0 -1
- data/lib/xsd/codegen.rb +0 -1
- data/lib/xsd/datatypes.rb +1122 -1098
- data/lib/xsd/datatypes1999.rb +0 -1
- data/lib/xsd/iconvcharset.rb +2 -19
- data/lib/xsd/mapping.rb +0 -1
- data/lib/xsd/namedelements.rb +0 -1
- data/lib/xsd/ns.rb +1 -2
- data/lib/xsd/qname.rb +2 -3
- data/lib/xsd/xmlparser/libxmlparser.rb +22 -39
- data/lib/xsd/xmlparser/parser.rb +1 -2
- data/lib/xsd/xmlparser/rexmlparser.rb +8 -4
- data/lib/xsd/xmlparser/xmlparser.rb +50 -0
- data/lib/xsd/xmlparser/xmlscanner.rb +149 -0
- data/lib/xsd/xmlparser.rb +18 -23
- data/lib/xsd/xmlparser.rb.orig +76 -0
- data/rtiss_soap4r.gemspec +751 -0
- data/rubyStyle.css +104 -0
- data/sample/attachment/complexmime/EdmService.rb +124 -0
- data/sample/attachment/complexmime/README.txt +3 -0
- data/sample/attachment/complexmime/client.rb +57 -0
- data/sample/attachment/complexmime/drift.cdf +1 -0
- data/sample/attachment/complexmime/plaatje.png +1 -0
- data/sample/attachment/complexmime/server.rb +68 -0
- data/sample/attachment/swa/client.rb +13 -0
- data/sample/attachment/swa/server.rb +23 -0
- data/sample/basic/apacheClient.rb +92 -0
- data/sample/basic/babelfish.rb +16 -0
- data/sample/basic/calc/calc.rb +17 -0
- data/sample/basic/calc/calc2.rb +29 -0
- data/sample/basic/calc/client.rb +26 -0
- data/sample/basic/calc/client2.rb +29 -0
- data/sample/basic/calc/httpd.rb +20 -0
- data/sample/basic/calc/samplehttpd.conf +2 -0
- data/sample/basic/calc/server.cgi +15 -0
- data/sample/basic/calc/server.fcgi +22 -0
- data/sample/basic/calc/server.rb +21 -0
- data/sample/basic/calc/server2.rb +24 -0
- data/sample/basic/exchange/client.rb +19 -0
- data/sample/basic/exchange/exchange.rb +17 -0
- data/sample/basic/exchange/httpd.rb +20 -0
- data/sample/basic/exchange/samplehttpd.conf +2 -0
- data/sample/basic/exchange/server.cgi +14 -0
- data/sample/basic/exchange/server.rb +20 -0
- data/sample/basic/flickr.rb +26 -0
- data/sample/basic/helloworld/client.rb +6 -0
- data/sample/basic/helloworld/server.rb +20 -0
- data/sample/basic/sampleStruct/client.rb +16 -0
- data/sample/basic/sampleStruct/httpd.rb +20 -0
- data/sample/basic/sampleStruct/iSampleStruct.rb +22 -0
- data/sample/basic/sampleStruct/sampleStruct.rb +13 -0
- data/sample/basic/sampleStruct/samplehttpd.conf +2 -0
- data/sample/basic/sampleStruct/server.cgi +14 -0
- data/sample/basic/sampleStruct/server.rb +20 -0
- data/sample/basic/whois.rb +14 -0
- data/sample/basic/wsdl_helloworld/README +15 -0
- data/sample/basic/wsdl_helloworld/client/default.rb +1 -0
- data/sample/basic/wsdl_helloworld/client/defaultDriver.rb +47 -0
- data/sample/basic/wsdl_helloworld/client/hws.wsdl +46 -0
- data/sample/basic/wsdl_helloworld/client/hwsClient.rb +22 -0
- data/sample/basic/wsdl_helloworld/server/hw_s.rb +25 -0
- data/sample/basic/wsdl_helloworld/server/hws.wsdl +46 -0
- data/sample/basic/yahooNewsSearch.rb +36 -0
- data/sample/howto/as_xml/client.rb +22 -0
- data/sample/howto/as_xml/server.rb +22 -0
- data/sample/howto/base64/client.rb +17 -0
- data/sample/howto/base64/server.rb +30 -0
- data/sample/howto/custom_ns/client.rb +37 -0
- data/sample/howto/custom_ns/server.rb +42 -0
- data/sample/howto/documentliteral/README.txt +19 -0
- data/sample/howto/documentliteral/client.rb +11 -0
- data/sample/howto/documentliteral/echo.wsdl +66 -0
- data/sample/howto/documentliteral/servant.rb +11 -0
- data/sample/howto/filter/client.rb +42 -0
- data/sample/howto/filter/server.rb +67 -0
- data/sample/howto/scopesample/client.rb +34 -0
- data/sample/howto/scopesample/httpd.rb +22 -0
- data/sample/howto/scopesample/samplehttpd.conf +2 -0
- data/sample/howto/scopesample/servant.rb +18 -0
- data/sample/howto/scopesample/server.cgi +29 -0
- data/sample/howto/scopesample/server.rb +20 -0
- data/sample/howto/styleuse/client.rb +21 -0
- data/sample/howto/styleuse/server.rb +86 -0
- data/sample/howto/wsdl_fault/README.txt +11 -0
- data/sample/howto/wsdl_fault/fault/AddClient.rb +24 -0
- data/sample/howto/wsdl_fault/fault/AddServer.rb +15 -0
- data/sample/howto/wsdl_fault/fault/AddServiceImpl.rb +18 -0
- data/sample/howto/wsdl_fault/fault/fault.wsdl +79 -0
- data/sample/howto/wsdl_fault/multifault/AddClient.rb +28 -0
- data/sample/howto/wsdl_fault/multifault/AddServer.rb +15 -0
- data/sample/howto/wsdl_fault/multifault/AddServiceImpl.rb +24 -0
- data/sample/howto/wsdl_fault/multifault/fault.wsdl +96 -0
- data/sample/howto/wsdl_hash/client.rb +11 -0
- data/sample/howto/wsdl_hash/hash.wsdl +69 -0
- data/sample/howto/wsdl_hash/server.rb +17 -0
- data/sample/marshal/customfactory.rb +97 -0
- data/sample/marshal/customregistry.rb +17 -0
- data/sample/marshal/digraph.rb +43 -0
- data/sample/marshal/enum/README.txt +6 -0
- data/sample/marshal/enum/enum.xsd +23 -0
- data/sample/marshal/enum/enumsample.rb +20 -0
- data/sample/marshal/enum/enumsample_mapper.rb +7 -0
- data/sample/marshal/enum/enumsample_mapping_registry.rb +23 -0
- data/sample/marshal/enum/marshal.rb +9 -0
- data/sample/payload/basicauth/client.rb +10 -0
- data/sample/payload/basicauth/htpasswd +2 -0
- data/sample/payload/basicauth/server.rb +43 -0
- data/sample/payload/cookies/calc.rb +52 -0
- data/sample/payload/cookies/client.rb +30 -0
- data/sample/payload/cookies/filterclient.rb +52 -0
- data/sample/payload/cookies/server.rb +24 -0
- data/sample/payload/gzipped/client.rb +8 -0
- data/sample/payload/gzipped/server.rb +21 -0
- data/sample/payload/ssl/files/README +1 -0
- data/sample/payload/ssl/files/ca.cert +23 -0
- data/sample/payload/ssl/files/client.cert +19 -0
- data/sample/payload/ssl/files/client.key +15 -0
- data/sample/payload/ssl/files/server.cert +19 -0
- data/sample/payload/ssl/files/server.key +15 -0
- data/sample/payload/ssl/files/sslclient.properties +5 -0
- data/sample/payload/ssl/files/sslclient_require_noserverauth.properties +2 -0
- data/sample/payload/ssl/files/sslclient_with_clientauth.properties +9 -0
- data/sample/payload/ssl/files/subca.cert +21 -0
- data/sample/payload/ssl/sslclient.rb +12 -0
- data/sample/payload/ssl/sslclient_require_noserverauth.rb +12 -0
- data/sample/payload/ssl/sslclient_with_clientauth.rb +12 -0
- data/sample/payload/ssl/sslserver.rb +49 -0
- data/sample/payload/ssl/sslserver_noauth.rb +45 -0
- data/sample/payload/ssl/sslserver_require_clientauth.rb +50 -0
- data/sample/showcase/soap/hippo5tq/hippo5tq.rb +41 -0
- data/sample/showcase/soap/hippo5tq/hippo5tq2.rb +99 -0
- data/sample/showcase/soap/hippo5tq/hippoClient.rb +106 -0
- data/sample/showcase/soap/icd/IICD.rb +17 -0
- data/sample/showcase/soap/icd/icd.rb +46 -0
- data/sample/showcase/soap/mssoap/README.txt +62 -0
- data/sample/showcase/soap/mssoap/client.vba +19 -0
- data/sample/showcase/soap/mssoap/stockQuoteService.cgi +44 -0
- data/sample/showcase/soap/mssoap/stockQuoteService.rb +9 -0
- data/sample/showcase/soap/mssoap/stockQuoteService.wsdl +47 -0
- data/sample/showcase/soap/mssoap/stockQuoteServiceClient.rb +26 -0
- data/sample/showcase/soap/mssoap/stockQuoteServiceClient.xls +0 -0
- data/sample/showcase/soap/mssoap/stockQuoteServicePortTypeDriver.rb +46 -0
- data/sample/showcase/soap/netDicV06/INetDicV06.rb +36 -0
- data/sample/showcase/soap/netDicV06/netDicV06.rb +16 -0
- data/sample/showcase/soap/raa/SOAP__Lite.pl +15 -0
- data/sample/showcase/soap/raa/pocketSOAP.js +33 -0
- data/sample/showcase/soap/raa2.4/raa.rb +332 -0
- data/sample/showcase/soap/raa2.4/raa.wsdl +644 -0
- data/sample/showcase/soap/raa2.4/raaDriver.rb +255 -0
- data/sample/showcase/soap/raa2.4/raaServiceClient.rb +354 -0
- data/sample/showcase/soap/raa2.4/sample.rb +115 -0
- data/sample/showcase/soap/rwiki/rwikiClient.rb +29 -0
- data/sample/showcase/soap/rwiki/rwikiServer.cgi +44 -0
- data/sample/showcase/soap/soapbox/ContactsDataSet.xml +37 -0
- data/sample/showcase/soap/soapbox/ExceptionDataSet.xml +23 -0
- data/sample/showcase/soap/soapbox/MessageDataSet.xml +8 -0
- data/sample/showcase/soap/soapbox/SoapBoxWebService.wsdl +1233 -0
- data/sample/showcase/soap/soapbox/SoapBoxWebServiceWithRawXML.wsdl +1226 -0
- data/sample/showcase/soap/soapbox/wsdlDriver.rb +23 -0
- data/sample/showcase/wsdl/PayPalSvc/client.rb +36 -0
- data/sample/showcase/wsdl/amazon/AmazonSearch.rb +3160 -0
- data/sample/showcase/wsdl/amazon/AmazonSearchDriver.rb +546 -0
- data/sample/showcase/wsdl/amazon/sampleClient.rb +37 -0
- data/sample/showcase/wsdl/amazon/wsdlDriver.rb +52 -0
- data/sample/showcase/wsdl/amazonEC/client.rb +13 -0
- data/sample/showcase/wsdl/eBaySvc/sampleclient.rb +60 -0
- data/sample/showcase/wsdl/googleAdwords/CampaignService.wsdl +785 -0
- data/sample/showcase/wsdl/googleAdwords/ca.pem +19 -0
- data/sample/showcase/wsdl/googleAdwords/client.rb +40 -0
- data/sample/showcase/wsdl/googleAdwords/soap/property +1 -0
- data/sample/showcase/wsdl/googleSearch/GoogleSearch.rb +97 -0
- data/sample/showcase/wsdl/googleSearch/GoogleSearchDriver.rb +102 -0
- data/sample/showcase/wsdl/googleSearch/README +6 -0
- data/sample/showcase/wsdl/googleSearch/httpd.rb +20 -0
- data/sample/showcase/wsdl/googleSearch/sampleClient.rb +56 -0
- data/sample/showcase/wsdl/googleSearch/samplehttpd.conf +2 -0
- data/sample/showcase/wsdl/googleSearch/sjissearch.sh +3 -0
- data/sample/showcase/wsdl/googleSearch/wsdlDriver.rb +29 -0
- data/sample/showcase/wsdl/noaa/README.txt +5 -0
- data/sample/showcase/wsdl/noaa/client.rb +44 -0
- data/sample/showcase/wsdl/noaa/default.rb +46 -0
- data/sample/showcase/wsdl/noaa/defaultDriver.rb +66 -0
- data/sample/showcase/wsdl/noaa/defaultMappingRegistry.rb +74 -0
- data/sample/showcase/wsdl/noaa/ndfdXMLClient.rb +43 -0
- data/sample/showcase/wsdl/raa2.4/raa.rb +134 -0
- data/sample/showcase/wsdl/raa2.4/raa.wsdl +644 -0
- data/sample/showcase/wsdl/raa2.4/wsdlDriver.rb +117 -0
- data/sample/showcase/wsdl/rnn/client.rb +59 -0
- data/sample/showcase/wsdl/rnn/post.rb +27 -0
- data/sample/showcase/wsdl/rnn/rnn-hash.wsdl +282 -0
- data/sample/showcase/wsdl/rnn/rnn.wsdl +310 -0
- data/sample/showcase/wsdl/rnn/submit.rb +63 -0
- data/sample/showcase/wsdl/salesforce/SforceServiceClient.rb +280 -0
- data/sample/showcase/wsdl/salesforce/ca.pem +35 -0
- data/sample/showcase/wsdl/salesforce/client.rb +156 -0
- data/sample/showcase/wsdl/salesforce/default.rb +1740 -0
- data/sample/showcase/wsdl/salesforce/defaultDriver.rb +165 -0
- data/sample/showcase/wsdl/salesforce/soap/property +1 -0
- data/sample/soapheader/authheader/authmgr.rb +41 -0
- data/sample/soapheader/authheader/client.rb +40 -0
- data/sample/soapheader/authheader/client2.rb +42 -0
- data/sample/soapheader/authheader/server.rb +73 -0
- data/sample/soapheader/authheader/server2.rb +83 -0
- data/sample/soapheader/soapext_basicauth/client.rb +25 -0
- data/sample/soapheader/soapext_basicauth/mms_MizGIS.rb +701 -0
- data/sample/soapheader/soapext_basicauth/mms_MizGIS.wsdl +1007 -0
- data/sample/soapheader/soapext_basicauth/mms_MizGISClient.rb +231 -0
- data/sample/soapheader/soapext_basicauth/mms_MizGISDriver.rb +210 -0
- data/sample/soapheader/soapext_basicauth/mms_MizGISMappingRegistry.rb +1232 -0
- data/test/16runner.rb +68 -0
- data/test/interopR2/README.txt +2 -0
- data/test/interopR2/SOAPBuildersInterop_R2.wsdl +461 -0
- data/test/interopR2/SOAPBuildersInterop_R2GrB.wsdl +19 -0
- data/test/interopR2/base.rb +288 -0
- data/test/interopR2/client.NetRemoting.rb +17 -0
- data/test/interopR2/client.rb +1234 -0
- data/test/interopR2/client4S4C.rb +15 -0
- data/test/interopR2/client4S4C2.rb +14 -0
- data/test/interopR2/clientASP.NET.rb +17 -0
- data/test/interopR2/clientApacheAxis.rb +16 -0
- data/test/interopR2/clientApacheSOAP.rb +17 -0
- data/test/interopR2/clientBEAWebLogic.rb +17 -0
- data/test/interopR2/clientBase.rb +1967 -0
- data/test/interopR2/clientCapeConnect.rb +18 -0
- data/test/interopR2/clientDelphi.rb +19 -0
- data/test/interopR2/clientEasySoap.rb +14 -0
- data/test/interopR2/clientFrontier.rb +25 -0
- data/test/interopR2/clientGLUE.rb +32 -0
- data/test/interopR2/clientHP.rb +13 -0
- data/test/interopR2/clientJAX-RPC.rb +19 -0
- data/test/interopR2/clientJSOAP.rb +14 -0
- data/test/interopR2/clientKafkaXSLT.rb +15 -0
- data/test/interopR2/clientMSSOAPToolkit2.0.rb +17 -0
- data/test/interopR2/clientMSSOAPToolkit3.0.rb +17 -0
- data/test/interopR2/clientNuSOAP.rb +19 -0
- data/test/interopR2/clientNuWave.rb +15 -0
- data/test/interopR2/clientOpenLink.rb +15 -0
- data/test/interopR2/clientOracle.rb +15 -0
- data/test/interopR2/clientPEAR.rb +18 -0
- data/test/interopR2/clientPhalanx.rb +18 -0
- data/test/interopR2/clientSIMACE.rb +18 -0
- data/test/interopR2/clientSOAP4R.rb +18 -0
- data/test/interopR2/clientSOAP__Lite.rb +14 -0
- data/test/interopR2/clientSQLData.rb +18 -0
- data/test/interopR2/clientSilverStream.rb +17 -0
- data/test/interopR2/clientSpray2001.rb +17 -0
- data/test/interopR2/clientSun.rb +19 -0
- data/test/interopR2/clientVWOpentalkSoap.rb +19 -0
- data/test/interopR2/clientWASP.rb +19 -0
- data/test/interopR2/clientWASPC.rb +18 -0
- data/test/interopR2/clientWebMethods.rb +15 -0
- data/test/interopR2/clientWhiteMesa.rb +28 -0
- data/test/interopR2/clientWingfoot.rb +15 -0
- data/test/interopR2/clientXMLBus.rb +19 -0
- data/test/interopR2/clientXMLRPC-EPI.rb +17 -0
- data/test/interopR2/clientXSOAP.rb +14 -0
- data/test/interopR2/clientZSI.rb +19 -0
- data/test/interopR2/clienteSOAP.rb +18 -0
- data/test/interopR2/clientgSOAP.rb +18 -0
- data/test/interopR2/clientkSOAP.rb +17 -0
- data/test/interopR2/iSimonReg.rb +112 -0
- data/test/interopR2/interopResultBase.rb +114 -0
- data/test/interopR2/interopService.rb +247 -0
- data/test/interopR2/rwikiInteropService.rb +105 -0
- data/test/interopR2/server.cgi +270 -0
- data/test/interopR2/server.rb +275 -0
- data/test/interopR2/simonReg.rb +123 -0
- data/test/interopR2/test.sh +49 -0
- data/test/interopR4/client.rb +112 -0
- data/test/results +4810 -0
- data/test/runner.rb +7 -0
- data/test/sm11/classDef.rb +156 -0
- data/test/sm11/client.rb +542 -0
- data/test/sm11/driver.rb +183 -0
- data/test/sm11/servant.rb +1067 -0
- data/test/sm11/server.rb +25 -0
- data/test/soap/asp.net/hello.wsdl +96 -0
- data/test/soap/asp.net/test_aspdotnet.rb +123 -0
- data/test/soap/auth/htdigest +2 -0
- data/test/soap/auth/htpasswd +2 -0
- data/test/soap/auth/test_basic.rb +116 -0
- data/test/soap/auth/test_digest.rb +118 -0
- data/test/soap/calc/calc.rb +17 -0
- data/test/soap/calc/calc2.rb +29 -0
- data/test/soap/calc/server.cgi +13 -0
- data/test/soap/calc/server.rb +17 -0
- data/test/soap/calc/server2.rb +20 -0
- data/test/soap/calc/test_calc2.rb +55 -0
- data/test/soap/case/test_mapping.rb +33 -0
- data/test/soap/fault/test_customfault.rb +60 -0
- data/test/soap/fault/test_fault.rb +46 -0
- data/test/soap/fault/test_soaparray.rb +35 -0
- data/test/soap/filter/test_filter.rb +147 -0
- data/test/soap/header/server.cgi +122 -0
- data/test/soap/header/session.pstoredb +0 -0
- data/test/soap/header/test_authheader.rb +234 -0
- data/test/soap/header/test_authheader_cgi.rb +120 -0
- data/test/soap/header/test_simplehandler.rb +120 -0
- data/test/soap/helloworld/hw_s.rb +16 -0
- data/test/soap/helloworld/test_helloworld.rb +42 -0
- data/test/soap/htpasswd +2 -0
- data/test/soap/literalArrayMapping/amazonEc.rb +4778 -0
- data/test/soap/literalArrayMapping/amazonEcDriver.rb +172 -0
- data/test/soap/literalArrayMapping/amazonresponse.xml +100 -0
- data/test/soap/literalArrayMapping/test_definedarray.rb +33 -0
- data/test/soap/marshal/marshaltestlib.rb +456 -0
- data/test/soap/marshal/test_digraph.rb +56 -0
- data/test/soap/marshal/test_marshal.rb +26 -0
- data/test/soap/marshal/test_struct.rb +47 -0
- data/test/soap/ssl/README +1 -0
- data/test/soap/ssl/ca.cert +23 -0
- data/test/soap/ssl/client.cert +19 -0
- data/test/soap/ssl/client.key +15 -0
- data/test/soap/ssl/server.cert +19 -0
- data/test/soap/ssl/server.key +15 -0
- data/test/soap/ssl/sslsvr.rb +57 -0
- data/test/soap/ssl/subca.cert +21 -0
- data/test/soap/ssl/test_ssl.rb +238 -0
- data/test/soap/struct/test_struct.rb +69 -0
- data/test/soap/styleuse/client.rb +20 -0
- data/test/soap/styleuse/server.rb +86 -0
- data/test/soap/swa/test_file.rb +76 -0
- data/test/soap/test_basetype.rb +1090 -0
- data/test/soap/test_cookie.rb +111 -0
- data/test/soap/test_custom_ns.rb +105 -0
- data/test/soap/test_custommap.rb +110 -0
- data/test/soap/test_empty.rb +105 -0
- data/test/soap/test_envelopenamespace.rb +84 -0
- data/test/soap/test_extraattr.rb +54 -0
- data/test/soap/test_generator.rb +27 -0
- data/test/soap/test_httpconfigloader.rb +71 -0
- data/test/soap/test_mapping.rb +122 -0
- data/test/soap/test_nestedexception.rb +61 -0
- data/test/soap/test_nil.rb +61 -0
- data/test/soap/test_no_indent.rb +88 -0
- data/test/soap/test_property.rb +427 -0
- data/test/soap/test_response_as_xml.rb +116 -0
- data/test/soap/test_soapelement.rb +138 -0
- data/test/soap/test_streamhandler.rb +269 -0
- data/test/soap/test_styleuse.rb +327 -0
- data/test/soap/wsdlDriver/README.txt +2 -0
- data/test/soap/wsdlDriver/calc.wsdl +126 -0
- data/test/soap/wsdlDriver/document.wsdl +54 -0
- data/test/soap/wsdlDriver/echo_version.rb +29 -0
- data/test/soap/wsdlDriver/simpletype.wsdl +63 -0
- data/test/soap/wsdlDriver/test_calc.rb +72 -0
- data/test/soap/wsdlDriver/test_document.rb +72 -0
- data/test/soap/wsdlDriver/test_simpletype.rb +81 -0
- data/test/test_helper.rb +82 -0
- data/test/wsdl/abstract/abstract.rb +102 -0
- data/test/wsdl/abstract/abstract.wsdl +176 -0
- data/test/wsdl/abstract/abstractDriver.rb +73 -0
- data/test/wsdl/abstract/abstractMappingRegistry.rb +139 -0
- data/test/wsdl/abstract/test_abstract.rb +158 -0
- data/test/wsdl/anonymous/expectedClassDef.rb +128 -0
- data/test/wsdl/anonymous/expectedDriver.rb +61 -0
- data/test/wsdl/anonymous/expectedMappingRegistry.rb +176 -0
- data/test/wsdl/anonymous/lp.rb +128 -0
- data/test/wsdl/anonymous/lp.wsdl +147 -0
- data/test/wsdl/anonymous/lpDriver.rb +61 -0
- data/test/wsdl/anonymous/lpMappingRegistry.rb +176 -0
- data/test/wsdl/anonymous/test_anonymous.rb +130 -0
- data/test/wsdl/any/any.wsdl +114 -0
- data/test/wsdl/any/echo.rb +57 -0
- data/test/wsdl/any/echoDriver.rb +70 -0
- data/test/wsdl/any/echoMappingRegistry.rb +63 -0
- data/test/wsdl/any/echoServant.rb +52 -0
- data/test/wsdl/any/echo_service.rb +69 -0
- data/test/wsdl/any/echo_serviceClient.rb +52 -0
- data/test/wsdl/any/expectedDriver.rb +70 -0
- data/test/wsdl/any/expectedEcho.rb +57 -0
- data/test/wsdl/any/expectedMappingRegistry.rb +63 -0
- data/test/wsdl/any/expectedService.rb +69 -0
- data/test/wsdl/any/test_any.rb +193 -0
- data/test/wsdl/axisArray/axisArray.wsdl +87 -0
- data/test/wsdl/axisArray/itemList.rb +31 -0
- data/test/wsdl/axisArray/itemListDriver.rb +62 -0
- data/test/wsdl/axisArray/itemListMappingRegistry.rb +60 -0
- data/test/wsdl/axisArray/test_axisarray.rb +124 -0
- data/test/wsdl/choice/choice.rb +117 -0
- data/test/wsdl/choice/choice.wsdl +167 -0
- data/test/wsdl/choice/choiceDriver.rb +69 -0
- data/test/wsdl/choice/choiceMappingRegistry.rb +131 -0
- data/test/wsdl/choice/test_choice.rb +310 -0
- data/test/wsdl/complexcontent/complexContent.rb +40 -0
- data/test/wsdl/complexcontent/complexContent.wsdl +83 -0
- data/test/wsdl/complexcontent/complexContentMappingRegistry.rb +67 -0
- data/test/wsdl/complexcontent/test_echo.rb +89 -0
- data/test/wsdl/datetime/DatetimeService.rb +44 -0
- data/test/wsdl/datetime/datetime.rb +0 -0
- data/test/wsdl/datetime/datetime.wsdl +45 -0
- data/test/wsdl/datetime/datetimeServant.rb +22 -0
- data/test/wsdl/datetime/test_datetime.rb +88 -0
- data/test/wsdl/document/array/double.rb +114 -0
- data/test/wsdl/document/array/double.wsdl +161 -0
- data/test/wsdl/document/array/doubleDriver.rb +69 -0
- data/test/wsdl/document/array/doubleMappingRegistry.rb +115 -0
- data/test/wsdl/document/array/test_array.rb +202 -0
- data/test/wsdl/document/document.wsdl +76 -0
- data/test/wsdl/document/echo.rb +120 -0
- data/test/wsdl/document/echoDriver.rb +53 -0
- data/test/wsdl/document/echoMappingRegistry.rb +64 -0
- data/test/wsdl/document/number.wsdl +54 -0
- data/test/wsdl/document/ping_nosoapaction.wsdl +66 -0
- data/test/wsdl/document/test_nosoapaction.rb +102 -0
- data/test/wsdl/document/test_number.rb +92 -0
- data/test/wsdl/document/test_rpc.rb +351 -0
- data/test/wsdl/emptycomplextype.wsdl +31 -0
- data/test/wsdl/fault/Add.rb +53 -0
- data/test/wsdl/fault/AddMappingRegistry.rb +46 -0
- data/test/wsdl/fault/AddServant.rb +28 -0
- data/test/wsdl/fault/AddService.rb +51 -0
- data/test/wsdl/fault/fault.wsdl +79 -0
- data/test/wsdl/fault/multifault.wsdl +96 -0
- data/test/wsdl/fault/test_fault.rb +119 -0
- data/test/wsdl/fault/test_multifault.rb +133 -0
- data/test/wsdl/group/echo.rb +58 -0
- data/test/wsdl/group/echoDriver.rb +53 -0
- data/test/wsdl/group/echoMappingRegistry.rb +67 -0
- data/test/wsdl/group/expectedClassdef.rb +58 -0
- data/test/wsdl/group/expectedDriver.rb +53 -0
- data/test/wsdl/group/expectedMappingRegistry.rb +67 -0
- data/test/wsdl/group/group.wsdl +88 -0
- data/test/wsdl/group/test_rpc.rb +145 -0
- data/test/wsdl/list/list.rb +55 -0
- data/test/wsdl/list/list.wsdl +93 -0
- data/test/wsdl/list/listDriver.rb +53 -0
- data/test/wsdl/list/listMappingRegistry.rb +40 -0
- data/test/wsdl/list/test_list.rb +123 -0
- data/test/wsdl/map/map.wsdl +92 -0
- data/test/wsdl/map/map.xml +43 -0
- data/test/wsdl/map/test_map.rb +100 -0
- data/test/wsdl/marshal/Person.rb +23 -0
- data/test/wsdl/marshal/person.wsdl +21 -0
- data/test/wsdl/marshal/person_org.rb +23 -0
- data/test/wsdl/marshal/test_wsdlmarshal.rb +76 -0
- data/test/wsdl/multiplefault.wsdl +75 -0
- data/test/wsdl/oneway/oneway.rb +17 -0
- data/test/wsdl/oneway/oneway.wsdl +36 -0
- data/test/wsdl/oneway/onewayDriver.rb +52 -0
- data/test/wsdl/oneway/onewayMappingRegistry.rb +20 -0
- data/test/wsdl/oneway/test_oneway.rb +107 -0
- data/test/wsdl/overload/OverloadServiceClient.rb +37 -0
- data/test/wsdl/overload/default.rb +1 -0
- data/test/wsdl/overload/defaultDriver.rb +61 -0
- data/test/wsdl/overload/defaultMappingRegistry.rb +8 -0
- data/test/wsdl/overload/defaultServant.rb +35 -0
- data/test/wsdl/overload/expectedClient.rb +37 -0
- data/test/wsdl/overload/expectedDriver.rb +61 -0
- data/test/wsdl/overload/expectedServant.rb +35 -0
- data/test/wsdl/overload/overload.wsdl +70 -0
- data/test/wsdl/overload/test_overload.rb +131 -0
- data/test/wsdl/qualified/default.rb +30 -0
- data/test/wsdl/qualified/defaultDriver.rb +51 -0
- data/test/wsdl/qualified/defaultMappingRegistry.rb +29 -0
- data/test/wsdl/qualified/lp.rb +45 -0
- data/test/wsdl/qualified/lp.wsdl +47 -0
- data/test/wsdl/qualified/lp.xsd +26 -0
- data/test/wsdl/qualified/lpDriver.rb +51 -0
- data/test/wsdl/qualified/lpMappingRegistry.rb +96 -0
- data/test/wsdl/qualified/np.wsdl +51 -0
- data/test/wsdl/qualified/test_qualified.rb +136 -0
- data/test/wsdl/qualified/test_unqualified.rb +138 -0
- data/test/wsdl/raa/RAAService.rb +125 -0
- data/test/wsdl/raa/README.txt +8 -0
- data/test/wsdl/raa/expectedClassDef.rb +100 -0
- data/test/wsdl/raa/expectedDriver.rb +96 -0
- data/test/wsdl/raa/expectedMappingRegistry.rb +121 -0
- data/test/wsdl/raa/raa.wsdl +264 -0
- data/test/wsdl/raa/test_raa.rb +128 -0
- data/test/wsdl/ref/expectedDriver.rb +53 -0
- data/test/wsdl/ref/expectedProduct.rb +243 -0
- data/test/wsdl/ref/product.rb +243 -0
- data/test/wsdl/ref/product.wsdl +147 -0
- data/test/wsdl/ref/productDriver.rb +53 -0
- data/test/wsdl/ref/productMappingRegistry.rb +150 -0
- data/test/wsdl/ref/test_ref.rb +267 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitions.rb +90 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitionsDriver.rb +149 -0
- data/test/wsdl/rpc/RPC-Literal-TestDefinitionsMappingRegistry.rb +168 -0
- data/test/wsdl/rpc/echo.rb +35 -0
- data/test/wsdl/rpc/echoDriver.rb +74 -0
- data/test/wsdl/rpc/echoMappingRegistry.rb +46 -0
- data/test/wsdl/rpc/rpc.wsdl +109 -0
- data/test/wsdl/rpc/test-rpc-lit.wsdl +371 -0
- data/test/wsdl/rpc/test_rpc.rb +177 -0
- data/test/wsdl/rpc/test_rpc_lit.rb +471 -0
- data/test/wsdl/simplecontent/simpleContent.rb +78 -0
- data/test/wsdl/simplecontent/simpleContentDriver.rb +53 -0
- data/test/wsdl/simplecontent/simpleContentMappingRegistry.rb +77 -0
- data/test/wsdl/simplecontent/simplecontent.wsdl +84 -0
- data/test/wsdl/simplecontent/test_simplecontent.rb +101 -0
- data/test/wsdl/simpletype/rpc/expectedClient.rb +34 -0
- data/test/wsdl/simpletype/rpc/expectedDriver.rb +58 -0
- data/test/wsdl/simpletype/rpc/expectedEchoVersion.rb +36 -0
- data/test/wsdl/simpletype/rpc/expectedMappingRegistry.rb +57 -0
- data/test/wsdl/simpletype/rpc/expectedServant.rb +32 -0
- data/test/wsdl/simpletype/rpc/expectedService.rb +55 -0
- data/test/wsdl/simpletype/rpc/rpc.wsdl +98 -0
- data/test/wsdl/simpletype/rpc/test_rpc.rb +52 -0
- data/test/wsdl/simpletype/simpletype.wsdl +114 -0
- data/test/wsdl/simpletype/test_simpletype.rb +93 -0
- data/test/wsdl/soap/soapbodyparts.wsdl +103 -0
- data/test/wsdl/soap/test_soapbodyparts.rb +80 -0
- data/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb +21 -0
- data/test/wsdl/soap/wsdl2ruby/expectedClient.rb +34 -0
- data/test/wsdl/soap/wsdl2ruby/expectedDriver.rb +58 -0
- data/test/wsdl/soap/wsdl2ruby/expectedMappingRegistry.rb +36 -0
- data/test/wsdl/soap/wsdl2ruby/expectedServant.rb +32 -0
- data/test/wsdl/soap/wsdl2ruby/expectedService.cgi +48 -0
- data/test/wsdl/soap/wsdl2ruby/expectedService.rb +55 -0
- data/test/wsdl/soap/wsdl2ruby/rpc.wsdl +80 -0
- data/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb +37 -0
- data/test/wsdl/soap/wsdl2ruby/section/mysample.rb +37 -0
- data/test/wsdl/soap/wsdl2ruby/section/section.xsd +31 -0
- data/test/wsdl/soap/wsdl2ruby/section/test_section.rb +53 -0
- data/test/wsdl/soap/wsdl2ruby/soapenc/echo.rb +21 -0
- data/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl +64 -0
- data/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb +83 -0
- data/test/wsdl/soap/wsdl2ruby/test_wsdl2ruby.rb +102 -0
- data/test/wsdl/soaptype/echo.rb +23 -0
- data/test/wsdl/soaptype/echoDriver.rb +55 -0
- data/test/wsdl/soaptype/echoMappingRegistry.rb +32 -0
- data/test/wsdl/soaptype/soaptype.wsdl +61 -0
- data/test/wsdl/soaptype/test_soaptype.rb +176 -0
- data/test/wsdl/test_emptycomplextype.rb +21 -0
- data/test/wsdl/test_fault.rb +50 -0
- data/test/wsdl/test_multiplefault.rb +41 -0
- data/test/xsd/codegen/test_classdef.rb +244 -0
- data/test/xsd/noencoding.xml +4 -0
- data/test/xsd/test_iconvcharset.rb +20 -0
- data/test/xsd/test_noencoding.rb +33 -0
- data/test/xsd/test_ns.rb +41 -0
- data/test/xsd/test_xmlschemaparser.rb +22 -0
- data/test/xsd/test_xsd.rb +1640 -0
- data/test/xsd/xmllang.xml +43 -0
- data/test/xsd/xmlschema.xml +12 -0
- data/test/xsd/xsd2ruby/expected_mysample.rb +65 -0
- data/test/xsd/xsd2ruby/expected_mysample_mapper.rb +11 -0
- data/test/xsd/xsd2ruby/expected_mysample_mapping_registry.rb +51 -0
- data/test/xsd/xsd2ruby/mysample.rb +65 -0
- data/test/xsd/xsd2ruby/mysample_mapper.rb +11 -0
- data/test/xsd/xsd2ruby/mysample_mapping_registry.rb +51 -0
- data/test/xsd/xsd2ruby/section.xsd +49 -0
- data/test/xsd/xsd2ruby/test_xsd2ruby.rb +89 -0
- metadata +762 -24
- data/lib/xsd/xmlparser/nokogiriparser.rb +0 -63
- data/lib/xsd/xmlparser/ogaparser.rb +0 -53
- data/lib/xsd/xmlparser/oxparser.rb +0 -97
data/lib/wsdl/operation.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - WSDL bound operation definition.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -86,12 +85,12 @@ class OperationBinding < Info
|
|
86
85
|
end
|
87
86
|
|
88
87
|
def operation_info
|
89
|
-
qname = soapoperation_name
|
90
|
-
style = soapoperation_style
|
88
|
+
qname = soapoperation_name
|
89
|
+
style = soapoperation_style
|
91
90
|
use_input = soapbody_use(@input)
|
92
91
|
use_output = soapbody_use(@output)
|
93
92
|
info = OperationInfo.new(boundid, qname, style, use_input, use_output)
|
94
|
-
op = find_operation
|
93
|
+
op = find_operation
|
95
94
|
if style == :rpc
|
96
95
|
info.parts.concat(collect_rpcparameter(op))
|
97
96
|
else
|
data/lib/wsdl/param.rb
CHANGED
data/lib/wsdl/parser.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - WSDL XML Instance parser library.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -114,10 +113,10 @@ private
|
|
114
113
|
elename = ns.parse(name)
|
115
114
|
if !parent
|
116
115
|
if elename == DefinitionsName
|
117
|
-
|
116
|
+
o = Definitions.parse_element(elename)
|
118
117
|
o.location = @location
|
119
118
|
else
|
120
|
-
|
119
|
+
raise UnknownElementError.new("unknown element: #{elename}")
|
121
120
|
end
|
122
121
|
o.root = @originalroot if @originalroot # o.root = o otherwise
|
123
122
|
else
|
@@ -129,18 +128,16 @@ private
|
|
129
128
|
end
|
130
129
|
if o.nil?
|
131
130
|
unless @ignored.key?(elename)
|
132
|
-
warn("ignored element: #{elename}")
|
131
|
+
warn("ignored element: #{elename} : #{parent.inspect}")
|
133
132
|
@ignored[elename] = elename
|
134
133
|
end
|
135
|
-
|
134
|
+
o = Documentation.new # which accepts any element.
|
136
135
|
end
|
137
136
|
# node could be a pseudo element. pseudo element has its own parent.
|
138
137
|
o.root = parent.root
|
139
138
|
o.parent = parent if o.parent.nil?
|
140
139
|
end
|
141
|
-
|
142
|
-
key = attr[:key]
|
143
|
-
value = attr[:value]
|
140
|
+
attrs.each do |key, value|
|
144
141
|
attr_ele = ns.parse(key, true)
|
145
142
|
value_ele = ns.parse(value, false)
|
146
143
|
value_ele.source = value # for recovery; value may not be a QName
|
@@ -161,19 +158,6 @@ private
|
|
161
158
|
def decode_text(ns, text)
|
162
159
|
@textbuf << text
|
163
160
|
end
|
164
|
-
|
165
|
-
def to_array_and_splice_name_to_first(attrs)
|
166
|
-
attrs_name = []
|
167
|
-
attrs_other = []
|
168
|
-
attrs.each do |key, value|
|
169
|
-
if key == "name"
|
170
|
-
attrs_name << { :key => key, :value => value }
|
171
|
-
elsif
|
172
|
-
attrs_other << { :key => key, :value => value }
|
173
|
-
end
|
174
|
-
end
|
175
|
-
attrs_name.concat(attrs_other)
|
176
|
-
end
|
177
161
|
end
|
178
162
|
|
179
163
|
|
data/lib/wsdl/part.rb
CHANGED
data/lib/wsdl/port.rb
CHANGED
data/lib/wsdl/portType.rb
CHANGED
data/lib/wsdl/service.rb
CHANGED
data/lib/wsdl/soap/address.rb
CHANGED
data/lib/wsdl/soap/binding.rb
CHANGED
data/lib/wsdl/soap/body.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating class definition from WSDL
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -107,11 +106,31 @@ private
|
|
107
106
|
def dump_simpletype(target = nil)
|
108
107
|
@simpletypes.collect { |type|
|
109
108
|
next if target and target != type.name
|
109
|
+
|
110
|
+
# Create the class definition for the simple type
|
110
111
|
c = create_simpletypedef(@modulepath, type.name, type)
|
112
|
+
|
113
|
+
# If it's an enumeration type, add constants for the enumeration values
|
114
|
+
# if c && type.restriction && type.restriction.enumeration && !type.restriction.enumeration.empty?
|
115
|
+
# # Add constants for each enumeration value
|
116
|
+
# type.restriction.enumeration.each do |enum|
|
117
|
+
# # Extract the value, depending on whether enum is an object or a string
|
118
|
+
# enum_value = enum.respond_to?(:value) ? enum.value : enum.to_s
|
119
|
+
#
|
120
|
+
# # Convert the enumeration value to a valid constant name
|
121
|
+
# # e.g., "1.9" becomes "C_19"
|
122
|
+
# const_name = "C_" + enum_value.gsub(/[^\w]/, '')
|
123
|
+
#
|
124
|
+
# # Only add the new() version, not the string constant
|
125
|
+
# c.def_const(const_name, "new(#{ndq(enum_value)})")
|
126
|
+
# end
|
127
|
+
# end
|
128
|
+
|
111
129
|
c ? c.dump : nil
|
112
130
|
}.compact.join("\n")
|
113
131
|
end
|
114
132
|
|
133
|
+
|
115
134
|
def dump_complextype(target = nil)
|
116
135
|
definitions = sort_dependency(@complextypes).collect { |type|
|
117
136
|
next if target and target != type.name
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating class code support from WSDL.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -52,7 +51,7 @@ module ClassDefCreatorSupport
|
|
52
51
|
#
|
53
52
|
__EOD__
|
54
53
|
unless fault.empty?
|
55
|
-
str
|
54
|
+
str <<<<__EOD__
|
56
55
|
# RAISES
|
57
56
|
#{dump_fault_type(fault, element_definitions)}
|
58
57
|
#
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating client skelton code from WSDL.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -34,8 +33,7 @@ class ClientSkeltonCreator
|
|
34
33
|
result = ""
|
35
34
|
if @modulepath
|
36
35
|
result << "\n"
|
37
|
-
|
38
|
-
result << modulepath.collect { |ele| "module #{ele}" }.join("; ")
|
36
|
+
result << @modulepath.each.collect { |ele| "module #{ele}" }.join("; ")
|
39
37
|
result << "\n\n"
|
40
38
|
end
|
41
39
|
services.ports.each do |port|
|
@@ -44,8 +42,7 @@ class ClientSkeltonCreator
|
|
44
42
|
end
|
45
43
|
if @modulepath
|
46
44
|
result << "\n\n"
|
47
|
-
|
48
|
-
result << modulepath.collect { |ele| "end" }.join("; ")
|
45
|
+
result << @modulepath.each.collect { |ele| "end" }.join("; ")
|
49
46
|
result << "\n"
|
50
47
|
end
|
51
48
|
result
|
data/lib/wsdl/soap/data.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - WSDL additional definitions for SOAP.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -116,7 +115,7 @@ private
|
|
116
115
|
def collect_fault_messages
|
117
116
|
result = []
|
118
117
|
porttypes.each do |porttype|
|
119
|
-
port_binding = porttype.find_binding
|
118
|
+
port_binding = porttype.find_binding
|
120
119
|
next unless port_binding
|
121
120
|
porttype.operations.each do |operation|
|
122
121
|
op_binding = port_binding.operations.find { |ele| ele.name == operation.name }
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating driver code from WSDL.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -15,82 +14,84 @@ require 'xsd/codegen'
|
|
15
14
|
|
16
15
|
|
17
16
|
module WSDL
|
18
|
-
module SOAP
|
17
|
+
module SOAP
|
19
18
|
|
20
19
|
|
21
|
-
class DriverCreator
|
22
|
-
|
20
|
+
class DriverCreator
|
21
|
+
include ClassDefCreatorSupport
|
23
22
|
|
24
|
-
|
25
|
-
|
23
|
+
attr_reader :definitions
|
24
|
+
attr_accessor :drivername_postfix
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
def dump(porttype = nil)
|
35
|
-
result = "require 'soap/rpc/driver'\n\n"
|
36
|
-
if @modulepath
|
37
|
-
modulepath = @modulepath.respond_to?(:lines) ? @modulepath.lines : @modulepath # RubyJedi: compatible with Ruby 1.8.6 and above
|
38
|
-
modulepath.each do |name|
|
39
|
-
result << "module #{name}\n"
|
40
|
-
end
|
41
|
-
result << "\n"
|
42
|
-
end
|
43
|
-
if porttype.nil?
|
44
|
-
@definitions.porttypes.each do |type|
|
45
|
-
result << dump_porttype(type.name)
|
46
|
-
result << "\n"
|
26
|
+
def initialize(definitions, name_creator, modulepath = nil)
|
27
|
+
@definitions = definitions
|
28
|
+
@name_creator = name_creator
|
29
|
+
@modulepath = modulepath
|
30
|
+
@drivername_postfix = ''
|
47
31
|
end
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
32
|
+
|
33
|
+
def dump(porttype = nil)
|
34
|
+
result = "require 'soap/rpc/driver'\n\n"
|
35
|
+
if @modulepath
|
36
|
+
@modulepath.each do |name|
|
37
|
+
result << "module #{name}\n"
|
38
|
+
end
|
39
|
+
result << "\n"
|
40
|
+
end
|
41
|
+
if porttype.nil?
|
42
|
+
@definitions.porttypes.each do |type|
|
43
|
+
result << dump_porttype(type.name)
|
44
|
+
result << "\n"
|
45
|
+
end
|
46
|
+
else
|
47
|
+
result << dump_porttype(porttype)
|
48
|
+
end
|
49
|
+
if @modulepath
|
50
|
+
result << "\n"
|
51
|
+
@modulepath.each do |name|
|
52
|
+
result << "end\n"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
result
|
56
56
|
end
|
57
|
-
end
|
58
|
-
result
|
59
|
-
end
|
60
57
|
|
61
|
-
private
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
58
|
+
private
|
59
|
+
|
60
|
+
def dump_porttype(porttype)
|
61
|
+
drivername = porttype.name + @drivername_postfix
|
62
|
+
qname = XSD::QName.new(porttype.namespace, drivername)
|
63
|
+
class_name = mapped_class_basename(qname, @modulepath)
|
64
|
+
defined_const = {}
|
65
|
+
mdcreator = MethodDefCreator.new(@definitions, @name_creator, @modulepath, defined_const)
|
66
|
+
methoddef = mdcreator.dump(porttype)
|
67
|
+
binding = @definitions.bindings.find { |item| item.type == porttype }
|
68
|
+
if binding.nil? or binding.soapbinding.nil?
|
69
|
+
# not bound or not a SOAP binding
|
70
|
+
return ''
|
71
|
+
end
|
72
|
+
address = @definitions.porttype(porttype).locations[0]
|
73
|
+
|
74
|
+
c = XSD::CodeGen::ClassDef.new(class_name, "::SOAP::RPC::Driver")
|
75
|
+
c.def_const("DefaultEndpointUrl", ndq(address))
|
76
|
+
c.def_code <<-EOD
|
77
77
|
Methods = [
|
78
78
|
#{methoddef.gsub(/^/, " ")}
|
79
79
|
]
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
80
|
+
EOD
|
81
|
+
wsdl_name = @definitions.name ? @definitions.name.name : 'default'
|
82
|
+
mrname = safeconstname(wsdl_name + 'MappingRegistry')
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
c.def_method("initialize", "endpoint_url = nil") do
|
87
|
+
%Q[endpoint_url ||= DefaultEndpointUrl\n] +
|
88
|
+
%Q[super(endpoint_url, nil)\n] +
|
89
|
+
%Q[self.mapping_registry = #{mrname}::EncodedRegistry\n] +
|
90
|
+
%Q[self.literal_mapping_registry = #{mrname}::LiteralRegistry\n] +
|
91
|
+
%Q[init_methods]
|
92
|
+
end
|
93
|
+
c.def_privatemethod("init_methods") do
|
94
|
+
<<-EOD
|
94
95
|
Methods.each do |definitions|
|
95
96
|
opt = definitions.last
|
96
97
|
if opt[:request_style] == :document
|
@@ -107,14 +108,14 @@ Methods = [
|
|
107
108
|
end
|
108
109
|
end
|
109
110
|
EOD
|
111
|
+
end
|
112
|
+
defined_const.each do |ns, tag|
|
113
|
+
c.def_const(tag, dq(ns))
|
114
|
+
end
|
115
|
+
c.dump
|
116
|
+
end
|
110
117
|
end
|
111
|
-
defined_const.each do |ns, tag|
|
112
|
-
c.def_const(tag, dq(ns))
|
113
|
-
end
|
114
|
-
c.dump
|
115
|
-
end
|
116
|
-
end
|
117
118
|
|
118
119
|
|
119
|
-
end
|
120
|
+
end
|
120
121
|
end
|
data/lib/wsdl/soap/element.rb
CHANGED
data/lib/wsdl/soap/fault.rb
CHANGED
data/lib/wsdl/soap/header.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating method definition from WSDL
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -39,13 +38,22 @@ class MethodDefCreator
|
|
39
38
|
def dump(name)
|
40
39
|
methoddef = ""
|
41
40
|
porttype = @definitions.porttype(name)
|
41
|
+
|
42
|
+
if porttype.nil?
|
43
|
+
STDERR.puts "Warning: No port type with the name #{name} found"
|
44
|
+
return methoddef
|
45
|
+
end
|
46
|
+
|
42
47
|
binding = porttype.find_binding
|
43
48
|
if binding
|
44
49
|
create(binding.name).each do |mdef|
|
45
50
|
methoddef << ",\n" unless methoddef.empty?
|
46
51
|
methoddef << dump_method(mdef).chomp
|
47
52
|
end
|
53
|
+
else
|
54
|
+
STDERR.puts "Warning: No binding for the port type #{name} found"
|
48
55
|
end
|
56
|
+
|
49
57
|
methoddef
|
50
58
|
end
|
51
59
|
|
data/lib/wsdl/soap/operation.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - WSDL SOAP operation definition.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -83,7 +82,7 @@ private
|
|
83
82
|
end
|
84
83
|
|
85
84
|
def create_param_info(name_info, param)
|
86
|
-
op_style = operation_style
|
85
|
+
op_style = operation_style
|
87
86
|
op_use = param.soapbody_use
|
88
87
|
op_encodingstyle = param.soapbody_encodingstyle
|
89
88
|
op_name = name_info.op_name
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - Creating servant skelton code from WSDL.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -32,8 +31,7 @@ class ServantSkeltonCreator
|
|
32
31
|
result = ""
|
33
32
|
if @modulepath
|
34
33
|
result << "\n"
|
35
|
-
|
36
|
-
result << modulepath.collect { |ele| "module #{ele}" }.join("; ")
|
34
|
+
result << @modulepath.collect { |ele| "module #{ele}" }.join("; ")
|
37
35
|
result << "\n\n"
|
38
36
|
end
|
39
37
|
if porttype.nil?
|
@@ -46,8 +44,7 @@ class ServantSkeltonCreator
|
|
46
44
|
end
|
47
45
|
if @modulepath
|
48
46
|
result << "\n\n"
|
49
|
-
|
50
|
-
result << modulepath.collect { |ele| "end" }.join("; ")
|
47
|
+
result << @modulepath.collect { |ele| "end" }.join("; ")
|
51
48
|
result << "\n"
|
52
49
|
end
|
53
50
|
result
|
data/lib/wsdl/soap/wsdl2ruby.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# WSDL4R - WSDL to ruby mapping library.
|
3
2
|
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
4
3
|
|
@@ -8,7 +7,6 @@
|
|
8
7
|
|
9
8
|
|
10
9
|
require 'logger'
|
11
|
-
require 'logger-application' unless defined?(Logger::Application)
|
12
10
|
require 'xsd/qname'
|
13
11
|
require 'wsdl/importer'
|
14
12
|
require 'wsdl/soap/classDefCreator'
|
@@ -60,7 +58,7 @@ private
|
|
60
58
|
end
|
61
59
|
|
62
60
|
def create_file
|
63
|
-
@modulepath = @opt['module_path']
|
61
|
+
@modulepath = @opt['module_path']&.split("::")
|
64
62
|
create_classdef if @opt.key?('classdef')
|
65
63
|
create_mapping_registry if @opt.key?('mapping_registry')
|
66
64
|
create_servant_skelton(@opt['servant_skelton']) if @opt.key?('servant_skelton')
|
@@ -185,8 +183,14 @@ private
|
|
185
183
|
if @basedir
|
186
184
|
filename = File.join(basedir, filename)
|
187
185
|
end
|
188
|
-
|
189
|
-
|
186
|
+
begin
|
187
|
+
File.open(filename, "w") do |f|
|
188
|
+
yield f
|
189
|
+
end
|
190
|
+
@logger.info { "Successfully wrote file '#{filename}'." }
|
191
|
+
rescue => e
|
192
|
+
@logger.error { "Failed to write file '#{filename}': #{e.message}" }
|
193
|
+
raise
|
190
194
|
end
|
191
195
|
end
|
192
196
|
|
data/lib/wsdl/types.rb
CHANGED
data/lib/wsdl/wsdl.rb
CHANGED
data/lib/wsdl/xmlSchema/all.rb
CHANGED
data/lib/wsdl/xmlSchema/any.rb
CHANGED