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…



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

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

         <s:complexType name="AddRequestMsg">


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

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



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

        <s:complexType name="AddResponseMsg">


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






<message name="AddSoapIn">

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



<message name="AddSoapOut">

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



<portType name="CalculatorSoap">

   <operation name="Add">

      <input message="s0:AddSoapIn" />

      <output message="s0:AddSoapOut" />



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


Comments are closed.

Skip to main content