ProductService

API change history

CancelOrder

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_CancelOrder_InputMessage

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <CancelOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      <orderId>1</orderId>
    </CancelOrder>
  </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_CancelOrder_OutputMessage

Representations

<?xml version="1.0" encoding="utf-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
  <Body>
    <CancelOrderResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      <CancelOrderResult>1</CancelOrderResult>
    </CancelOrderResponse>
  </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>