diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-24 15:18:44 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-24 15:18:44 +0000 |
commit | db9445103c082a306ba085f7677da02ea94b8841 (patch) | |
tree | a311d59f031ae5def87f68be71ed1f58abadc031 /test/wsdl | |
parent | 8c2fb77787d1f20b4c19c9c52552856c339b86e9 (diff) |
* lib/soap/* (29 files): SOAP4R added.
* lib/wsdl/* (42 files): WSDL4R added.
* lib/xsd/* (12 files): XSD4R added.
* test/soap/* (16 files): added.
* test/wsdl/* (2 files): added.
* test/xsd/* (3 files): added.
* sample/soap/* (27 files): added.
* sample/wsdl/* (13 files): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/wsdl')
-rw-r--r-- | test/wsdl/emptycomplextype.wsdl | 78 | ||||
-rw-r--r-- | test/wsdl/test_emptycomplextype.rb | 14 |
2 files changed, 92 insertions, 0 deletions
diff --git a/test/wsdl/emptycomplextype.wsdl b/test/wsdl/emptycomplextype.wsdl new file mode 100644 index 0000000000..a4504c95ba --- /dev/null +++ b/test/wsdl/emptycomplextype.wsdl @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<definitions + xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:i1="http://www.winfessor.com/SoapBoxWebService/RosterDataSet.xsd" + xmlns:s="http://www.w3.org/2001/XMLSchema" + xmlns:s0="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService" + xmlns:i2="http://www.winfessor.com/SoapBoxWebService/ExceptionDataSet.xsd" + xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:i0="http://www.winfessor.com/SoapBoxWebService/MessageDataSet.xsd" + xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" + xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" + targetNamespace="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService" + xmlns="http://schemas.xmlsoap.org/wsdl/"> + + <types> + <s:schema + elementFormDefault="qualified" + targetNamespace="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService"> + <s:element name="typeIn"> + <s:complexType /> + </s:element> + + <s:element name="typeOut"> + <s:complexType> + <s:sequence> + <s:element minOccurs="0" maxOccurs="1" name="str1" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="str2" type="s:string" /> + <s:element minOccurs="0" maxOccurs="1" name="seq"> + <s:complexType> + <s:sequence> + <s:any /> + </s:sequence> + </s:complexType> + </s:element> + </s:sequence> + </s:complexType> + </s:element> + </s:schema> + </types> + + <message name="doIn"> + <part name="parameters" element="s0:typeIn" /> + </message> + <message name="doOut"> + <part name="parameters" element="s0:typeOut" /> + </message> + + <portType name="DotNetPortType"> + <operation name="do"> + <input message="s0:doIn" /> + <output message="s0:doOut" /> + </operation> + </portType> + + <binding name="DotNetBinding" type="s0:DotNetPortType"> + <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> + <operation name="do"> + <soap:operation soapAction="http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService/SessionClose" style="document" /> + <input> + <soap:body use="literal" /> + <soap:header message="s0:SessionCloseSoapBoxHeader" part="SoapBoxHeader" use="literal" /> + </input> + <output> + <soap:body use="literal" /> + <soap:header message="s0:SessionCloseSoapBoxHeader" part="SoapBoxHeader" use="literal" /> + </output> + </operation> + </binding> + + <service name="DotNetService"> + <documentation>doc doc doc.</documentation> + <port name="DotNetPort" binding="s0:DotNetBinding"> + <soap:address location="http://localhost:8808" /> + <!-- <soap:address location="http://www.winfessor.com/SoapBoxWebservice/SoapBoxWebService.asmx" /> --> + </port> + </service> +</definitions> diff --git a/test/wsdl/test_emptycomplextype.rb b/test/wsdl/test_emptycomplextype.rb new file mode 100644 index 0000000000..f44c72f840 --- /dev/null +++ b/test/wsdl/test_emptycomplextype.rb @@ -0,0 +1,14 @@ +require 'test/unit' +require 'wsdl/parser' + +class TestWSDL < Test::Unit::TestCase + def self.setup(filename) + @@filename = filename + end + + def test_wsdl + @wsdl = WSDL::Parser.new.parse(File.open(@@filename).read) + end +end + +TestWSDL.setup(File.join(File.dirname(__FILE__), 'emptycomplextype.wsdl')) |