Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1477

Show
Ignore:
Timestamp:
04/15/05 16:36:43 (4 years ago)
Author:
nahi
Message:

follow the library change in [1474].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/wsdl/any/expectedEcho.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# urn:example.com:echo-type 
    24class FooBar 
  • trunk/test/wsdl/marshal/person_org.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# http://www.jin.gr.jp/~nahi/xmlns/sample/Person 
    24class Person 
  • trunk/test/wsdl/ref/expectedProduct.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# urn:product 
    24module Rating 
  • trunk/test/wsdl/simpletype/rpc/expectedEchoVersion.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# urn:example.com:simpletype-rpc-type 
    24class Version_struct 
  • trunk/test/wsdl/simpletype/simpletype.wsdl

    r1470 r1477  
    2424        </xsd:restriction> 
    2525      </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> 
    2635    </xsd:schema> 
    2736  </types> 
     
    3342  <message name="ping_out"> 
    3443    <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"/> 
    3552  </message> 
    3653 
     
    4562    </operation> 
    4663 
     64    <operation name="ping_id"> 
     65      <input message="tns:ping_id_in"/> 
     66      <output message="tns:ping_id_out"/> 
     67    </operation> 
     68 
    4769    <operation name="echo_version"> 
    4870      <input message="tns:versionmsg"/> 
     
    5476    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> 
    5577    <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"/> 
    5785      <input><soap:body use="literal"/></input> 
    5886      <output><soap:body use="literal"/></output> 
  • trunk/test/wsdl/simpletype/test_simpletype.rb

    r1470 r1477  
    1111  class Server < ::SOAP::RPC::StandaloneServer 
    1212    def on_init 
    13       add_document_method(self, 'urn:example.com:simpletype', 'ruby', 
     13      add_document_method(self, 'urn:example.com:simpletype:ping', 'ping', 
    1414        XSD::QName.new('urn:example.com:simpletype', 'ruby'), 
    1515        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')) 
    1619    end 
    1720   
    18     def ruby(ruby) 
     21    def ping(ruby) 
    1922      version = ruby["myversion"] 
    2023      date = ruby["date"] 
    2124      "#{version} (#{date})" 
     25    end 
     26 
     27    def ping_id(id) 
     28      id 
    2229    end 
    2330  end 
     
    7380    assert_equal("1.9 (2004-01-01T00:00:00Z)", ret) 
    7481  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 
    7593end 
    7694 
  • trunk/test/wsdl/soap/wsdl2ruby/expectedClassdef.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# urn:example.com:simpletype-rpc-type 
    24class Version_struct 
  • trunk/test/wsdl/soap/wsdl2ruby/section/expectedClassdef.rb

    r1471 r1477  
     1require 'xsd/qname' 
     2 
    13# urn:mysample 
    24class Question