Changeset 1477
- Timestamp:
- 04/15/05 16:36:43 (4 years ago)
- Files:
-
- trunk/test/wsdl/any/expectedEcho.rb (modified) (1 diff)
- trunk/test/wsdl/marshal/person_org.rb (modified) (1 diff)
- trunk/test/wsdl/ref/expectedProduct.rb (modified) (1 diff)
- trunk/test/wsdl/simpletype/rpc/expectedEchoVersion.rb (modified) (1 diff)
- trunk/test/wsdl/simpletype/simpletype.wsdl (modified) (4 diffs)
- trunk/test/wsdl/simpletype/test_simpletype.rb (modified) (2 diffs)
- trunk/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb (modified) (1 diff)
- trunk/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/wsdl/any/expectedEcho.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # urn:example.com:echo-type 2 4 class FooBar trunk/test/wsdl/marshal/person_org.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # http://www.jin.gr.jp/~nahi/xmlns/sample/Person 2 4 class Person trunk/test/wsdl/ref/expectedProduct.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # urn:product 2 4 module Rating trunk/test/wsdl/simpletype/rpc/expectedEchoVersion.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # urn:example.com:simpletype-rpc-type 2 4 class Version_struct trunk/test/wsdl/simpletype/simpletype.wsdl
r1470 r1477 24 24 </xsd:restriction> 25 25 </xsd:simpleType> 26 27 <xsd:element name="myid" type="tns:ID"/> 28 29 <xsd:simpleType name="ID"> 30 <xsd:restriction base="xsd:string"> 31 <xsd:length value="18"/> 32 <xsd:pattern value='[a-zA-Z0-9]{18}'/> 33 </xsd:restriction> 34 </xsd:simpleType> 26 35 </xsd:schema> 27 36 </types> … … 33 42 <message name="ping_out"> 34 43 <part name="parameters" element="xsd:string"/> 44 </message> 45 46 <message name="ping_id_in"> 47 <part name="parameters" element="tns:myid"/> 48 </message> 49 50 <message name="ping_id_out"> 51 <part name="parameters" element="tns:myid"/> 35 52 </message> 36 53 … … 45 62 </operation> 46 63 64 <operation name="ping_id"> 65 <input message="tns:ping_id_in"/> 66 <output message="tns:ping_id_out"/> 67 </operation> 68 47 69 <operation name="echo_version"> 48 70 <input message="tns:versionmsg"/> … … 54 76 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> 55 77 <operation name="ping"> 56 <soap:operation soapAction="urn:example.com:simpletype" style="document"/> 78 <soap:operation soapAction="urn:example.com:simpletype:ping" style="document"/> 79 <input><soap:body use="literal"/></input> 80 <output><soap:body use="literal"/></output> 81 </operation> 82 83 <operation name="ping_id"> 84 <soap:operation soapAction="urn:example.com:simpletype:ping_id" style="document"/> 57 85 <input><soap:body use="literal"/></input> 58 86 <output><soap:body use="literal"/></output> trunk/test/wsdl/simpletype/test_simpletype.rb
r1470 r1477 11 11 class Server < ::SOAP::RPC::StandaloneServer 12 12 def on_init 13 add_document_method(self, 'urn:example.com:simpletype ', 'ruby',13 add_document_method(self, 'urn:example.com:simpletype:ping', 'ping', 14 14 XSD::QName.new('urn:example.com:simpletype', 'ruby'), 15 15 XSD::QName.new('http://www.w3.org/2001/XMLSchema', 'string')) 16 add_document_method(self, 'urn:example.com:simpletype:ping_id', 'ping_id', 17 XSD::QName.new('urn:example.com:simpletype', 'myid'), 18 XSD::QName.new('urn:example.com:simpletype', 'myid')) 16 19 end 17 20 18 def ruby(ruby)21 def ping(ruby) 19 22 version = ruby["myversion"] 20 23 date = ruby["date"] 21 24 "#{version} (#{date})" 25 end 26 27 def ping_id(id) 28 id 22 29 end 23 30 end … … 73 80 assert_equal("1.9 (2004-01-01T00:00:00Z)", ret) 74 81 end 82 83 def test_ping_id 84 ret = @client.ping_id("012345678901234567") 85 assert_equal("012345678901234567", ret) 86 assert_raise(XSD::ValueSpaceError) do 87 @client.ping_id("0123456789012345678") 88 end 89 assert_raise(XSD::ValueSpaceError) do 90 @client.ping_id("01234567890123456;") 91 end 92 end 75 93 end 76 94 trunk/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # urn:example.com:simpletype-rpc-type 2 4 class Version_struct trunk/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb
r1471 r1477 1 require 'xsd/qname' 2 1 3 # urn:mysample 2 4 class Question