diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:10:18 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-18 11:10:18 +0000 |
commit | 290034fde815cbc389d29d3111553dbde4ab676a (patch) | |
tree | 80f8352e7612adc1ada88350438d28ff93b60e31 /lib/wsdl | |
parent | 11685dc1eea123132fc6feebbd98d3e9dfcbb41c (diff) | |
download | ruby-290034fde815cbc389d29d3111553dbde4ab676a.tar.gz |
* lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of
"parts" attribute of soap:body element in WSDL.
* lib/wsdl/xmlSchema/schema.rb: friendly warning message for
simpleType element which is not supported for now.
* test/wsdl/soap/{soapbodyparts.wsdl,test_soapbodyparts.wsdl}: new
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/wsdl')
-rw-r--r-- | lib/wsdl/soap/operation.rb | 5 | ||||
-rw-r--r-- | lib/wsdl/xmlSchema/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/wsdl/soap/operation.rb b/lib/wsdl/soap/operation.rb index e50356cf35..bb49f2099c 100644 --- a/lib/wsdl/soap/operation.rb +++ b/lib/wsdl/soap/operation.rb @@ -104,7 +104,10 @@ private op_name.namespace = soapbody.namespace end if soapbody.parts - raise NotImplementedError.new("soap:body parts") + target = soapbody.parts.split(/\s+/) + bodyparts = name_info.parts.find_all { |part| + target.include?(part.name) + } else bodyparts = name_info.parts end diff --git a/lib/wsdl/xmlSchema/schema.rb b/lib/wsdl/xmlSchema/schema.rb index 1d7759605e..b2a195d41f 100644 --- a/lib/wsdl/xmlSchema/schema.rb +++ b/lib/wsdl/xmlSchema/schema.rb @@ -43,6 +43,9 @@ class Schema < Info o = ComplexType.new @complextypes << o o + when SimpleTypeName + STDERR.puts("Restriction of basetype with simpleType definition is ignored for now.") + nil when ElementName o = Element.new @elements << o |