W3C home > Mailing lists > Public > www-ws-desc@w3.org > June 2002

RE: Rationale to close the operation overloading issue

From: <ryman@ca.ibm.com>
Date: Fri, 21 Jun 2002 17:13:10 -0400
To: Jochen.Ruetschlin@DaimlerChrysler.com
Cc: www-ws-desc@w3.org, www-ws-desc-request@w3.org
Message-ID: <OF05463F7B.D559BAB4-ON85256BDF.00734870@torolab.ibm.com>

The approach works for methods with any number of arguments since you can
define corresponding XML Schema types. In your example,

getAddress(name, surname)

I'd use the following type:

    <complexType name="getAddressType">
            <element name="socialNo" type="string"></element>
            <element name="nameSurname">
                        <element name="name" type="string"></element>
                        <element name="surname" type="string"></element>
            <element name="login" type="string">

There are many other equivalent ways to represent the method signatures as
XML Schema.

Arthur Ryman

                    rysler.com                        To:     Arthur Ryman/Toronto/IBM@IBMCA                                                
                    Sent by:                          cc:     <www-ws-desc@w3.org>                                                          
                    www-ws-desc-request@w3.org        Subject:     RE: Rationale to close the operation overloading issue                   
                    06/21/2002 03:59 AM                                                                                                     
                    Please respond to                                                                                                       

> These could be mapped to a single Web service operation named print that
> had an input message that allowed either int or float, e.g.
>     <complexType name="printType">
>         <choice>
>             <element name="int" type="int"/>
>             <element name="float" type="float"/>
>         </choice>
>     </complexType>

But this works only, if you have the same number of parameters.


Jochen Rütschlin
DaimlerChrysler · Research and Technology
Data and Process Management (RIC/ED)
P.O. Box 2360 · D-89013 Ulm (Donau) · Germany
Visitor's address: Wilhelm-Runge-Straße 11
Phone:   +49.731.505-2830
Telefax: +49.731.505-4401
Internet E-Mail: jochen.ruetschlin@DaimlerChrysler.com
Received on Friday, 21 June 2002 17:13:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:06:24 UTC