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

Changeset 1059

Show
Ignore:
Timestamp:
11/25/03 15:11:04 (5 years ago)
Author:
nahi
Message:

* simplify the test case.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/wsdl/emptycomplextype.wsdl

    r1010 r1059  
    11<?xml version="1.0" encoding="utf-8"?> 
    2 <definitions 
    3     xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
    4     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    5     xmlns:i1="http://www.winfessor.com/SoapBoxWebService/RosterDataSet.xsd" 
    6     xmlns:s="http://www.w3.org/2001/XMLSchema" 
    7     xmlns:s0="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService" 
    8     xmlns:i2="http://www.winfessor.com/SoapBoxWebService/ExceptionDataSet.xsd" 
    9     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
    10     xmlns:i0="http://www.winfessor.com/SoapBoxWebService/MessageDataSet.xsd" 
    11     xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
    12     targetNamespace="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService" 
     2<definitions name = "emptycomplextype" 
     3    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     4    targetNamespace="urn:jp.gr.jin.rrr.example.emptycomplextype" 
    135    xmlns="http://schemas.xmlsoap.org/wsdl/"> 
    146 
    157  <types> 
    16     <s:schema 
    17         elementFormDefault="qualified" 
    18         targetNamespace="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService"> 
    19       <s:element name="typeIn"> 
    20         <s:complexType /> 
    21       </s:element> 
     8    <xsd:schema elementFormDefault="qualified" 
     9        targetNamespace="urn:jp.gr.jin.rrr.example.emptycomplextype"> 
     10      <xsd:element name="typeIn"> 
     11        <xsd:complexType /> 
     12      </xsd:element> 
    2213 
    23       <s:element name="typeOut"> 
    24         <s:complexType> 
    25           <s:sequence> 
    26             <s:element minOccurs="0" maxOccurs="1" name="str1" type="s:string" /> 
    27             <s:element minOccurs="0" maxOccurs="1" name="str2" type="s:string" /> 
    28             <s:element minOccurs="0" maxOccurs="1" name="seq"> 
    29               <s:complexType> 
    30                 <s:sequence> 
    31                   <s:any /> 
    32                 </s:sequence> 
    33               </s:complexType> 
    34             </s:element> 
    35           </s:sequence> 
    36         </s:complexType> 
    37       </s:element> 
    38     </s:schema> 
     14      <xsd:element name="typeOut"> 
     15        <xsd:complexType> 
     16          <xsd:sequence> 
     17            <xsd:element minOccurs="0" maxOccurs="1" name="str1" type="xsd:string" /> 
     18            <xsd:element minOccurs="0" maxOccurs="1" name="str2" type="xsd:string" /> 
     19            <xsd:element minOccurs="0" maxOccurs="1" name="seq"> 
     20              <xsd:complexType> 
     21                <xsd:sequence> 
     22                  <xsd:any /> 
     23                </xsd:sequence> 
     24              </xsd:complexType> 
     25            </xsd:element> 
     26          </xsd:sequence> 
     27        </xsd:complexType> 
     28      </xsd:element> 
     29    </xsd:schema> 
    3930  </types> 
    40  
    41   <message name="doIn"> 
    42     <part name="parameters" element="s0:typeIn" /> 
    43   </message> 
    44   <message name="doOut"> 
    45     <part name="parameters" element="s0:typeOut" /> 
    46   </message> 
    47  
    48   <portType name="DotNetPortType"> 
    49     <operation name="do"> 
    50       <input message="s0:doIn" /> 
    51       <output message="s0:doOut" /> 
    52     </operation> 
    53   </portType> 
    54  
    55   <binding name="DotNetBinding" type="s0:DotNetPortType"> 
    56     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> 
    57     <operation name="do"> 
    58       <soap:operation soapAction="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService/SessionClose" style="document" /> 
    59       <input> 
    60         <soap:body use="literal" /> 
    61         <soap:header message="s0:SessionCloseSoapBoxHeader" part="SoapBoxHeader" use="literal" /> 
    62       </input> 
    63       <output> 
    64         <soap:body use="literal" /> 
    65         <soap:header message="s0:SessionCloseSoapBoxHeader" part="SoapBoxHeader" use="literal" /> 
    66       </output> 
    67     </operation> 
    68   </binding> 
    69  
    70   <service name="DotNetService"> 
    71     <documentation>doc doc doc.</documentation> 
    72     <port name="DotNetPort" binding="s0:DotNetBinding"> 
    73       <soap:address location="http://localhost:8808" /> 
    74       <!-- <soap:address location="http://www.winfessor.com/SoapBoxWebservice/SoapBoxWebService.asmx" /> --> 
    75     </port> 
    76   </service> 
    7731</definitions> 
  • trunk/test/wsdl/test_emptycomplextype.rb

    r1053 r1059  
    77 
    88class TestWSDL < Test::Unit::TestCase 
    9   def self.setup(filename) 
    10     @@filename = filename 
     9  def setup 
     10    @file = File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl') 
    1111  end 
    1212 
    1313  def test_wsdl 
    14     @wsdl = WSDL::Parser.new.parse(File.open(@@filename) { |f| f.read }) 
     14    @wsdl = WSDL::Parser.new.parse(File.open(@file) { |f| f.read }) 
     15    assert_equal("#<WSDL::Definitions:{urn:jp.gr.jin.rrr.example.emptycomplextype}emptycomplextype>", @wsdl.inspect) 
    1516  end 
    1617end 
    1718 
    18 TestWSDL.setup(File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl')) 
    1919 
    2020