1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/soap/wsdlDriver/calc.wsdl
nahi eb3f829be9 * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.4.
== SOAP client and server ==

	  === for both client side and server side ===

	  * improved document/literal service support.
	    style(rpc,document)/use(encoding, literal) combination are all
	    supported.  for the detail about combination, see
	    test/soap/test_style.rb.

	  * let WSDLEncodedRegistry#soap2obj map SOAP/OM to Ruby according to
	    WSDL as well as obj2soap.  closes #70.

	  * let SOAP::Mapping::Object handle XML attribute for doc/lit service.
	    you can set/get XML attribute via accessor methods which as a name
	    'xmlattr_' prefixed (<foo name="bar"/> -> Foo#xmlattr_name).

	  === client side ===

	  * WSDLDriver capitalized name operation bug fixed.  from
	    1.5.3-ruby1.8.2, operation which has capitalized name (such as
	    KeywordSearchRequest in AWS) is defined as a method having
	    uncapitalized name. (converted with GenSupport.safemethodname
	    to handle operation name 'foo-bar').  it introduced serious
	    incompatibility; in the past, it was defined as a capitalized.
	    define capitalized method as well under that circumstance.

	  * added new factory interface 'WSDLDriverFactory#create_rpc_driver'
	    to create RPC::Driver, not WSDLDriver (RPC::Driver and WSDLDriver
	    are merged).  'WSDLDriverFactory#create_driver' still creates
	    WSDLDriver for compatibility but it warns that the method is
	    deprecated.  please use create_rpc_driver instead of create_driver.

	  * allow to use an URI object as an endpoint_url even with net/http,
	    not http-access2.

	  === server side ===

	  * added mod_ruby support to SOAP::CGIStub.  rename a CGI script
	    server.cgi to server.rb and let mod_ruby's RubyHandler handles the
	    script.  CGIStub detects if it's running under mod_ruby environment
	    or not.

	  * added fcgi support to SOAP::CGIStub.  see the sample at
	    sample/soap/calc/server.fcgi.  (almost same as server.cgi but has
	    fcgi handler at the bottom.)

	  * allow to return a SOAPFault object to respond customized SOAP fault.

	  * added the interface 'generate_explicit_type' for server side
	    (CGIStub, HTTPServer).  call 'self.generate_explicit_type = true'
	    if you want to return simplified XML even if it's rpc/encoded
	    service.

	  == WSDL ==

	  === WSDL definition ===

	  * improved XML Schema support such as extension, restriction,
	    simpleType, complexType + simpleContent, ref, length, import,
	    include.

	  * reduced "unknown element/attribute" warnings (warn only 1 time for
	    each QName).

	  * importing XSD file at schemaLocation with xsd:import.

	  === code generation from WSDL ===

	  * generator crashed when there's '-' in defined element/attribute
	    name.

	  * added ApacheMap WSDL definition.

	* sample/{soap,wsdl}: removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-22 13:03:38 +00:00

126 lines
5.2 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!--generated by GLUE Standard 4.0.1 on Wed Mar 09 10:20:07 GMT-08:00
2005-->
<wsdl:definitions name='Calculator'
targetNamespace='http://www.themindelectric.com/wsdl/Calculator/'
xmlns:tns='http://www.themindelectric.com/wsdl/Calculator/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:http='http://schemas.xmlsoap.org/wsdl/http/'
xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns:tme='http://www.themindelectric.com/'>
<wsdl:message name='add0In'>
<wsdl:part name='x' type='xsd:float'/>
<wsdl:part name='y' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='add0Out'>
<wsdl:part name='Result' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='divide1In'>
<wsdl:part name='numerator' type='xsd:float'/>
<wsdl:part name='denominator' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='divide1Out'>
<wsdl:part name='Result' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='multiply2In'>
<wsdl:part name='x' type='xsd:float'/>
<wsdl:part name='y' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='multiply2Out'>
<wsdl:part name='Result' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='subtract3In'>
<wsdl:part name='x' type='xsd:float'/>
<wsdl:part name='y' type='xsd:float'/>
</wsdl:message>
<wsdl:message name='subtract3Out'>
<wsdl:part name='Result' type='xsd:float'/>
</wsdl:message>
<wsdl:portType name='ICalculator'>
<wsdl:operation name='add' parameterOrder='x y'>
<wsdl:input name='add0In' message='tns:add0In'/>
<wsdl:output name='add0Out' message='tns:add0Out'/>
</wsdl:operation>
<wsdl:operation name='divide' parameterOrder='numerator
denominator'>
<wsdl:input name='divide1In' message='tns:divide1In'/>
<wsdl:output name='divide1Out' message='tns:divide1Out'/>
</wsdl:operation>
<wsdl:operation name='multiply' parameterOrder='x y'>
<wsdl:input name='multiply2In' message='tns:multiply2In'/>
<wsdl:output name='multiply2Out'
message='tns:multiply2Out'/>
</wsdl:operation>
<wsdl:operation name='subtract' parameterOrder='x y'>
<wsdl:input name='subtract3In' message='tns:subtract3In'/>
<wsdl:output name='subtract3Out'
message='tns:subtract3Out'/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name='ICalculator' type='tns:ICalculator'>
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
<wsdl:operation name='add'>
<soap:operation soapAction='add' style='rpc'/>
<wsdl:input name='add0In'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:input>
<wsdl:output name='add0Out'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name='divide'>
<soap:operation soapAction='divide' style='rpc'/>
<wsdl:input name='divide1In'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:input>
<wsdl:output name='divide1Out'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name='multiply'>
<soap:operation soapAction='multiply' style='rpc'/>
<wsdl:input name='multiply2In'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:input>
<wsdl:output name='multiply2Out'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name='subtract'>
<soap:operation soapAction='subtract' style='rpc'/>
<wsdl:input name='subtract3In'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:input>
<wsdl:output name='subtract3Out'>
<soap:body use='encoded'
namespace='http://www.fred.com'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name='Calculator'>
<wsdl:documentation>calculator service</wsdl:documentation>
<wsdl:port name='ICalculator' binding='tns:ICalculator'>
<soap:address
location='http://ukulele:8080/calcapp/services/calculator'/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>