Web Services Quiz: Issue 6

Given the following schema, how will your corresponding CLR types look like?

As always, answer and explanation will follow…

   <xsd:schema targetNamespace="https://beatsch/issue6/types"

        xmlns:tns="https://beatsch/issue6/types"

  xmlns:xsd="https://www.w3.org/2001/XMLSchema">

  <xsd:complexType name="AddRequestMsgType">

  <xsd:sequence>

  <xsd:element maxOccurs="1" minOccurs="1" name="a" type="xsd:integer"/>

  <xsd:element maxOccurs="1" minOccurs="1" name="b" type="xsd:integer"/>

  </xsd:sequence>

  </xsd:complexType>

  <xsd:complexType name="AddResponseMsgType">

  <xsd:sequence>

  <xsd:element maxOccurs="1" minOccurs="1" name="c" type="xsd:integer"/>

  </xsd:sequence>

  </xsd:complexType>

  </xsd:schema>