ProductService

API change history

submitOrder

Try it

Request

Request URL

Request headers

  • (optional)
    string
    Media type of the body sent to the API.
  • (optional)
  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

IContosoFitnessService_submitOrder_InputMessage

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <submitOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      <order>
        <customer_id xmlns="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap">1</customer_id>
        <line_items xmlns="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap">
          <int xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">1</int>
        </line_items>
        <order_header_data xmlns="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap">
          <Bar>true</Bar>
          <Foo>Foo1</Foo>
        </order_header_data>
        <order_id xmlns="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap">1</order_id>
        <shipping_address xmlns="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap">
          <Address1>Address11</Address1>
          <Address2>Address21</Address2>
          <City>City1</City>
          <Country>Country1</Country>
          <StateCounty>StateCounty1</StateCounty>
          <ZipPostcode>ZipPostcode1</ZipPostcode>
        </shipping_address>
      </order>
    </submitOrder>
  </Body>
</Envelope>
<xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:q1="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q2="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q3="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q4="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:apim-wsdltns="http://tempuri.org/">
  <xs:import schemaLocation="http://contosofitnesssoap.azurewebsites.net/ContosoFitnessService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
  <xs:element name="submitOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="order" nillable="true" type="q1:Order" xmlns:q1="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="submitOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="submitOrderResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOpenOrders">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="cust" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOpenOrdersResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetOpenOrdersResult" nillable="true" type="q2:ArrayOfOrderSummary" xmlns:q2="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMostRecentOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="cust" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMostRecentOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetMostRecentOrderResult" nillable="true" type="q3:Order" xmlns:q3="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="orderId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetOrderResult" nillable="true" type="q4:Order" xmlns:q4="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CancelOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="orderId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CancelOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="CancelOrderResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Responses

200 OK

IContosoFitnessService_submitOrder_OutputMessage

Representations

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <submitOrderResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      <submitOrderResult>1</submitOrderResult>
    </submitOrderResponse>
  </Body>
</Envelope>
<xs:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:q1="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q2="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q3="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:q4="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" xmlns:apim-wsdltns="http://tempuri.org/">
  <xs:import schemaLocation="http://contosofitnesssoap.azurewebsites.net/ContosoFitnessService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
  <xs:element name="submitOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="order" nillable="true" type="q1:Order" xmlns:q1="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="submitOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="submitOrderResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOpenOrders">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="cust" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOpenOrdersResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetOpenOrdersResult" nillable="true" type="q2:ArrayOfOrderSummary" xmlns:q2="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMostRecentOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="cust" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetMostRecentOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetMostRecentOrderResult" nillable="true" type="q3:Order" xmlns:q3="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="orderId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="GetOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="GetOrderResult" nillable="true" type="q4:Order" xmlns:q4="http://schemas.datacontract.org/2004/07/ContosoFitnessAPISoap" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CancelOrder">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="orderId" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CancelOrderResponse">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="CancelOrderResult" type="xs:int" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>