Web Services Quiz: Issue 1


Given the following messages and port type, what method signature will .NET's wsdl.exe generate?


Answer (and more important explanations) will follow…


 


<types>


   <s:schema elementFormDefault="qualified" targetNamespace="uri.beatsch.com/ooops">


      <s:element name="AddRequestMsg" type="s0:AddRequestMsg" />


         <s:complexType name="AddRequestMsg">


            <s:sequence>


               <s:element minOccurs="1" maxOccurs="1" name="a" type="s:int" />


               <s:element minOccurs="1" maxOccurs="1" name="b" type="s:int" />


           </s:sequence>


        </s:complexType>


        <s:element name="AddResult" type="s0:AddResponseMsg" />


        <s:complexType name="AddResponseMsg">


           <s:sequence>


              <s:element minOccurs="1" maxOccurs="1" name="result" type="s:int" />


           </s:sequence>


        </s:complexType>


     </s:schema>


 </types>


 


<message name="AddSoapIn">


    <part name="parameters" element="s0:AddRequestMsg" />


</message>


 


<message name="AddSoapOut">


   <part name="parameters" element="s0:AddResult" />


</message>


 


<portType name="CalculatorSoap">


   <operation name="Add">


      <input message="s0:AddSoapIn" />


      <output message="s0:AddSoapOut" />


   </operation>


</portType>


Comments (2)
  1. Anonymous says:

    Something like AddResult Add(AddRequestMsg parameters) should be fine. With two generated types AddRequestMsg and AddResponseMsg.

  2. Anonymous says:

    I would say the same as you Christian

    -Klaus

Comments are closed.

Skip to main content