Yes -- this is correct.

On 7/7/06, Grzegorz Chwajol <[EMAIL PROTECTED]> wrote:
Thank you very much, Anne, for your deep explanation, it helped me a lot.
However, I have a question yet:

> My preference is to define a
> complexType called "void" and to define specific return message
> elements which are of type "void". For example:
>
>     <s:complexType name="void">
>          <s:sequence/>
>     </s:complexType>
>
>     <s:element name="MyMethodReturn" type="tns:void"/>
>
>     <w:message name="MyMessageResponse">
>         <w:part name="parameters" element="MyMethodReturn"/>
>     </w:message>

For to be sure:
may I apply this in a similar way into input messages for several
operations with no input parameters?
For example:
String myFirstMethod();
String mySecondMethod();


<s:complexType name="void">
    <s:sequence/>
</s:complexType>

<s:element name="myFirstMethod" type="tns:void"/>
<s:element name="mySecondMethod" type="tns:void"/>

<w:message name="myFirstMethodRequest">
  <w:part name="parameters" element="myFirstMethod"/>
</w:message>

<w:message name="mySecondMethodRequest">
  <w:part name="parameters" element="mySecondMethod"/>
</w:message>

Is this correct and is this a proper way of doing to assure interoperability?

Regards,
--
Grzegorz ChwajoƂ

Reply via email to