Share via


Step 2: Create the Request and Response Schemas

The next step is to create the request and response schemas. The schemas are created by copying and pasting the following XML.

CalculatorRequest Schema

<CalculatorRequest xmlns="https://windowsazure.cat.microsoft.com/samples/servicebus">
  <Method>DynamicSendPortOrchestration</Method>
  <Operations>
    <Operation>
      <Operator>+</Operator>
      <Operand1>82</Operand1>
      <Operand2>18</Operand2>
    </Operation>
    <Operation>
      <Operator>-</Operator>
      <Operand1>30</Operand1>
      <Operand2>12</Operand2>
    </Operation>
    <Operation>
      <Operator>*</Operator>
      <Operand1>25</Operand1>
      <Operand2>8</Operand2>
    </Operation>
    <Operation>
      <Operator>\</Operator>
      <Operand1>100</Operand1>
      <Operand2>25</Operand2>
    </Operation>
      <Operation>
      <Operator>+</Operator>
      <Operand1>100</Operand1>
      <Operand2>32</Operand2>
    </Operation>
  </Operations>
</CalculatorRequest>

CalculatorResponse Schema

<CalculatorResponse xmlns="https://windowsazure.cat.microsoft.com/samples/servicebus">
      <Status>Ok</Status>
      <Results>
            <Result>
                  <Value>100</Value>
                  <Error>None</Error>
            </Result>
            <Result>
                  <Value>18</Value>
                  <Error>None</Error>
            </Result>
            <Result>
                  <Value>200</Value>
                  <Error>None</Error>
            </Result>
            <Result>
                  <Value>4</Value>
                  <Error>None</Error>
            </Result>
            <Result>
                  <Value>132</Value>
                  <Error>None</Error>
            </Result>
      </Results>
</CalculatorResponse>

Next Step

Step 3: Configure the Receive Locations

See Also

Concepts

Step 1: Create the Property Schemas
Step 2: Create the Request and Response Schemas
Step 3: Configure the Receive Locations
Step 4: Configure the Send Ports
Step 5: Create the Orchestrations
Create the BizTalk artifacts