Service


Click here for a complete list of operations.

ProcessInOrder

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /apidemo/service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/ProcessInOrder"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ProcessInOrder xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <co>
        <InOrderInfo>
          <InOrderIdentification>ExternalOrderCode or GoodsOwnerOrderNumber or SystemId</InOrderIdentification>
          <InOrderOperation>Create or CreateOrUpdate or Remove</InOrderOperation>
          <InOrderId>int</InOrderId>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
          <SupplierOrderNumber>string</SupplierOrderNumber>
          <BatchNumber>string</BatchNumber>
          <GoodsOwnerReference>string</GoodsOwnerReference>
          <ReferenceNumber>string</ReferenceNumber>
          <WayOfDelivery>string</WayOfDelivery>
          <OrderRemark>string</OrderRemark>
          <InDate>dateTime</InDate>
          <OrderDate>dateTime</OrderDate>
          <BatchDate>dateTime</BatchDate>
          <Container>string</Container>
          <OrderStatusCreated>int</OrderStatusCreated>
          <OrderStatusUpdated>int</OrderStatusUpdated>
          <WayOfDeliveryType>
            <WayOfDeliveryTypeOperation>CreateOrUpdate or CreateOrFind or Find</WayOfDeliveryTypeOperation>
            <WayOfDeliveryTypeIdentification>Code or Name</WayOfDeliveryTypeIdentification>
            <Code>string</Code>
            <Name>string</Name>
          </WayOfDeliveryType>
          <InOrderType>
            <InOrderTypeOperation>Find or CreateOrFind</InOrderTypeOperation>
            <InOrderTypeIdentification>InOrderTypeCode or InOrderTypeName</InOrderTypeIdentification>
            <InOrderTypeCode>string</InOrderTypeCode>
            <InOrderTypeName>string</InOrderTypeName>
          </InOrderType>
          <InOrderIsReturnType>boolean</InOrderIsReturnType>
          <InvoiceNumber>string</InvoiceNumber>
          <TermsOfDeliveryType>
            <TermsOfDeliveryTypeOperation>CreateOrUpdate or Find</TermsOfDeliveryTypeOperation>
            <TermsOfDeliveryTypeIdentification>Code or Name</TermsOfDeliveryTypeIdentification>
            <Code>string</Code>
            <Name>string</Name>
          </TermsOfDeliveryType>
          <FreeText1>string</FreeText1>
          <FreeText2>string</FreeText2>
          <FreeText3>string</FreeText3>
          <FreeText4>string</FreeText4>
          <FreeText5>string</FreeText5>
          <Warehouse>
            <InOrderWarehouseIdentification>WarehouseName</InOrderWarehouseIdentification>
            <InOrderWarehouseOperation>Find</InOrderWarehouseOperation>
            <WarehouseName>string</WarehouseName>
          </Warehouse>
          <CustomsDeclaredDate>dateTime</CustomsDeclaredDate>
          <InOrderFreeDecimal1>decimal</InOrderFreeDecimal1>
          <InOrderFreeDecimal2>decimal</InOrderFreeDecimal2>
          <InOrderFreeBool1>boolean</InOrderFreeBool1>
          <InOrderFreeBool2>boolean</InOrderFreeBool2>
        </InOrderInfo>
        <InOrderCustomer>
          <InOrderCustomerIdentification>CustomerNumber or FullNameAndAdress</InOrderCustomerIdentification>
          <InOrderCustomerOperation>Find or CreateOrUpdate</InOrderCustomerOperation>
          <CustomerNumber>string</CustomerNumber>
          <Name>string</Name>
          <AddressName>string</AddressName>
          <Address>string</Address>
          <Address2>string</Address2>
          <Address3>string</Address3>
          <PostCode>string</PostCode>
          <City>string</City>
          <TelePhone>string</TelePhone>
          <AddressEmail>string</AddressEmail>
          <MobilePhone>string</MobilePhone>
          <CountryCode>string</CountryCode>
        </InOrderCustomer>
        <InOrderSupplier>
          <InOrderSupplierIdentificationType>SupplierNumber or FullNameAndAdress or SupplierName</InOrderSupplierIdentificationType>
          <InOrderSupplierOperation>CreateOrUpdate or Find</InOrderSupplierOperation>
          <SupplierNumber>string</SupplierNumber>
          <SupplierName>string</SupplierName>
          <Address>
            <Name>string</Name>
            <Address>string</Address>
            <Address2>string</Address2>
            <Address3>string</Address3>
            <PostCode>string</PostCode>
            <City>string</City>
            <TelePhone>string</TelePhone>
            <Remark>string</Remark>
            <Email>string</Email>
            <MobilePhone>string</MobilePhone>
            <IsEuCountry>boolean</IsEuCountry>
            <CountryStateCode>string</CountryStateCode>
            <CountryCode>string</CountryCode>
            <DeliveryInstruction>string</DeliveryInstruction>
            <IsVisible>boolean</IsVisible>
            <NotifyBySMS>boolean</NotifyBySMS>
            <NotifyByEmail>boolean</NotifyByEmail>
            <NotifyByTelephone>boolean</NotifyByTelephone>
          </Address>
        </InOrderSupplier>
        <GoodsOwner>
          <GoodsOwnerIdentification>SystemId or GoodsOwnerCode</GoodsOwnerIdentification>
          <GoodsOwnerCode>string</GoodsOwnerCode>
          <GoodsOwnerId>int</GoodsOwnerId>
          <FinancialCode>string</FinancialCode>
          <GoodsLocationCode>string</GoodsLocationCode>
        </GoodsOwner>
        <CommunicationInfo>
          <FromSystemName>string</FromSystemName>
          <ToSystemName>string</ToSystemName>
          <MessageId>string</MessageId>
        </CommunicationInfo>
        <InOrderLines>
          <InOrderLine>
            <OrderLineIdentification>ExternalOrderLineCode or ArticleNumber or ArticleName or ExternalOrderLineId or SystemId</OrderLineIdentification>
            <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
            <OrderLineSystemId>int</OrderLineSystemId>
            <ExternalOrderLineCode>string</ExternalOrderLineCode>
            <ExternalOrderLineId>string</ExternalOrderLineId>
            <InvoiceNumber>string</InvoiceNumber>
            <Indate>dateTime</Indate>
            <OrderLineComment>string</OrderLineComment>
            <ArticleSystemId>int</ArticleSystemId>
            <ArticleNumber>string</ArticleNumber>
            <ArticleName>string</ArticleName>
            <ArticleCode>string</ArticleCode>
            <CurrencyCode>string</CurrencyCode>
            <NumberOfItems>decimal</NumberOfItems>
            <RowPrice>decimal</RowPrice>
            <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
            <RowBatchNo>string</RowBatchNo>
            <Items xsi:nil="true" />
            <ProductCode>string</ProductCode>
            <ArticleDef xsi:nil="true" />
            <InOrderLineFreeDecimal1>decimal</InOrderLineFreeDecimal1>
            <InOrderLineFreeDateTime1>dateTime</InOrderLineFreeDateTime1>
            <InOrderLineType xsi:nil="true" />
          </InOrderLine>
          <InOrderLine>
            <OrderLineIdentification>ExternalOrderLineCode or ArticleNumber or ArticleName or ExternalOrderLineId or SystemId</OrderLineIdentification>
            <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
            <OrderLineSystemId>int</OrderLineSystemId>
            <ExternalOrderLineCode>string</ExternalOrderLineCode>
            <ExternalOrderLineId>string</ExternalOrderLineId>
            <InvoiceNumber>string</InvoiceNumber>
            <Indate>dateTime</Indate>
            <OrderLineComment>string</OrderLineComment>
            <ArticleSystemId>int</ArticleSystemId>
            <ArticleNumber>string</ArticleNumber>
            <ArticleName>string</ArticleName>
            <ArticleCode>string</ArticleCode>
            <CurrencyCode>string</CurrencyCode>
            <NumberOfItems>decimal</NumberOfItems>
            <RowPrice>decimal</RowPrice>
            <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
            <RowBatchNo>string</RowBatchNo>
            <Items xsi:nil="true" />
            <ProductCode>string</ProductCode>
            <ArticleDef xsi:nil="true" />
            <InOrderLineFreeDecimal1>decimal</InOrderLineFreeDecimal1>
            <InOrderLineFreeDateTime1>dateTime</InOrderLineFreeDateTime1>
            <InOrderLineType xsi:nil="true" />
          </InOrderLine>
        </InOrderLines>
      </co>
    </ProcessInOrder>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ProcessInOrderResponse xmlns="http://ongoingsystems.se/WSI">
      <ProcessInOrderResult>
        <ErrorMessage>string</ErrorMessage>
        <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        <OrderId>int</OrderId>
        <InOrderId>int</InOrderId>
        <ArticleDefId>int</ArticleDefId>
        <Success>boolean</Success>
        <Message>string</Message>
      </ProcessInOrderResult>
    </ProcessInOrderResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /apidemo/service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ProcessInOrder xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <co>
        <InOrderInfo>
          <InOrderIdentification>ExternalOrderCode or GoodsOwnerOrderNumber or SystemId</InOrderIdentification>
          <InOrderOperation>Create or CreateOrUpdate or Remove</InOrderOperation>
          <InOrderId>int</InOrderId>
          <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
          <SupplierOrderNumber>string</SupplierOrderNumber>
          <BatchNumber>string</BatchNumber>
          <GoodsOwnerReference>string</GoodsOwnerReference>
          <ReferenceNumber>string</ReferenceNumber>
          <WayOfDelivery>string</WayOfDelivery>
          <OrderRemark>string</OrderRemark>
          <InDate>dateTime</InDate>
          <OrderDate>dateTime</OrderDate>
          <BatchDate>dateTime</BatchDate>
          <Container>string</Container>
          <OrderStatusCreated>int</OrderStatusCreated>
          <OrderStatusUpdated>int</OrderStatusUpdated>
          <WayOfDeliveryType>
            <WayOfDeliveryTypeOperation>CreateOrUpdate or CreateOrFind or Find</WayOfDeliveryTypeOperation>
            <WayOfDeliveryTypeIdentification>Code or Name</WayOfDeliveryTypeIdentification>
            <Code>string</Code>
            <Name>string</Name>
          </WayOfDeliveryType>
          <InOrderType>
            <InOrderTypeOperation>Find or CreateOrFind</InOrderTypeOperation>
            <InOrderTypeIdentification>InOrderTypeCode or InOrderTypeName</InOrderTypeIdentification>
            <InOrderTypeCode>string</InOrderTypeCode>
            <InOrderTypeName>string</InOrderTypeName>
          </InOrderType>
          <InOrderIsReturnType>boolean</InOrderIsReturnType>
          <InvoiceNumber>string</InvoiceNumber>
          <TermsOfDeliveryType>
            <TermsOfDeliveryTypeOperation>CreateOrUpdate or Find</TermsOfDeliveryTypeOperation>
            <TermsOfDeliveryTypeIdentification>Code or Name</TermsOfDeliveryTypeIdentification>
            <Code>string</Code>
            <Name>string</Name>
          </TermsOfDeliveryType>
          <FreeText1>string</FreeText1>
          <FreeText2>string</FreeText2>
          <FreeText3>string</FreeText3>
          <FreeText4>string</FreeText4>
          <FreeText5>string</FreeText5>
          <Warehouse>
            <InOrderWarehouseIdentification>WarehouseName</InOrderWarehouseIdentification>
            <InOrderWarehouseOperation>Find</InOrderWarehouseOperation>
            <WarehouseName>string</WarehouseName>
          </Warehouse>
          <CustomsDeclaredDate>dateTime</CustomsDeclaredDate>
          <InOrderFreeDecimal1>decimal</InOrderFreeDecimal1>
          <InOrderFreeDecimal2>decimal</InOrderFreeDecimal2>
          <InOrderFreeBool1>boolean</InOrderFreeBool1>
          <InOrderFreeBool2>boolean</InOrderFreeBool2>
        </InOrderInfo>
        <InOrderCustomer>
          <InOrderCustomerIdentification>CustomerNumber or FullNameAndAdress</InOrderCustomerIdentification>
          <InOrderCustomerOperation>Find or CreateOrUpdate</InOrderCustomerOperation>
          <CustomerNumber>string</CustomerNumber>
          <Name>string</Name>
          <AddressName>string</AddressName>
          <Address>string</Address>
          <Address2>string</Address2>
          <Address3>string</Address3>
          <PostCode>string</PostCode>
          <City>string</City>
          <TelePhone>string</TelePhone>
          <AddressEmail>string</AddressEmail>
          <MobilePhone>string</MobilePhone>
          <CountryCode>string</CountryCode>
        </InOrderCustomer>
        <InOrderSupplier>
          <InOrderSupplierIdentificationType>SupplierNumber or FullNameAndAdress or SupplierName</InOrderSupplierIdentificationType>
          <InOrderSupplierOperation>CreateOrUpdate or Find</InOrderSupplierOperation>
          <SupplierNumber>string</SupplierNumber>
          <SupplierName>string</SupplierName>
          <Address>
            <Name>string</Name>
            <Address>string</Address>
            <Address2>string</Address2>
            <Address3>string</Address3>
            <PostCode>string</PostCode>
            <City>string</City>
            <TelePhone>string</TelePhone>
            <Remark>string</Remark>
            <Email>string</Email>
            <MobilePhone>string</MobilePhone>
            <IsEuCountry>boolean</IsEuCountry>
            <CountryStateCode>string</CountryStateCode>
            <CountryCode>string</CountryCode>
            <DeliveryInstruction>string</DeliveryInstruction>
            <IsVisible>boolean</IsVisible>
            <NotifyBySMS>boolean</NotifyBySMS>
            <NotifyByEmail>boolean</NotifyByEmail>
            <NotifyByTelephone>boolean</NotifyByTelephone>
          </Address>
        </InOrderSupplier>
        <GoodsOwner>
          <GoodsOwnerIdentification>SystemId or GoodsOwnerCode</GoodsOwnerIdentification>
          <GoodsOwnerCode>string</GoodsOwnerCode>
          <GoodsOwnerId>int</GoodsOwnerId>
          <FinancialCode>string</FinancialCode>
          <GoodsLocationCode>string</GoodsLocationCode>
        </GoodsOwner>
        <CommunicationInfo>
          <FromSystemName>string</FromSystemName>
          <ToSystemName>string</ToSystemName>
          <MessageId>string</MessageId>
        </CommunicationInfo>
        <InOrderLines>
          <InOrderLine>
            <OrderLineIdentification>ExternalOrderLineCode or ArticleNumber or ArticleName or ExternalOrderLineId or SystemId</OrderLineIdentification>
            <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
            <OrderLineSystemId>int</OrderLineSystemId>
            <ExternalOrderLineCode>string</ExternalOrderLineCode>
            <ExternalOrderLineId>string</ExternalOrderLineId>
            <InvoiceNumber>string</InvoiceNumber>
            <Indate>dateTime</Indate>
            <OrderLineComment>string</OrderLineComment>
            <ArticleSystemId>int</ArticleSystemId>
            <ArticleNumber>string</ArticleNumber>
            <ArticleName>string</ArticleName>
            <ArticleCode>string</ArticleCode>
            <CurrencyCode>string</CurrencyCode>
            <NumberOfItems>decimal</NumberOfItems>
            <RowPrice>decimal</RowPrice>
            <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
            <RowBatchNo>string</RowBatchNo>
            <Items xsi:nil="true" />
            <ProductCode>string</ProductCode>
            <ArticleDef xsi:nil="true" />
            <InOrderLineFreeDecimal1>decimal</InOrderLineFreeDecimal1>
            <InOrderLineFreeDateTime1>dateTime</InOrderLineFreeDateTime1>
            <InOrderLineType xsi:nil="true" />
          </InOrderLine>
          <InOrderLine>
            <OrderLineIdentification>ExternalOrderLineCode or ArticleNumber or ArticleName or ExternalOrderLineId or SystemId</OrderLineIdentification>
            <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
            <OrderLineSystemId>int</OrderLineSystemId>
            <ExternalOrderLineCode>string</ExternalOrderLineCode>
            <ExternalOrderLineId>string</ExternalOrderLineId>
            <InvoiceNumber>string</InvoiceNumber>
            <Indate>dateTime</Indate>
            <OrderLineComment>string</OrderLineComment>
            <ArticleSystemId>int</ArticleSystemId>
            <ArticleNumber>string</ArticleNumber>
            <ArticleName>string</ArticleName>
            <ArticleCode>string</ArticleCode>
            <CurrencyCode>string</CurrencyCode>
            <NumberOfItems>decimal</NumberOfItems>
            <RowPrice>decimal</RowPrice>
            <SupplierNumberOfItems>decimal</SupplierNumberOfItems>
            <RowBatchNo>string</RowBatchNo>
            <Items xsi:nil="true" />
            <ProductCode>string</ProductCode>
            <ArticleDef xsi:nil="true" />
            <InOrderLineFreeDecimal1>decimal</InOrderLineFreeDecimal1>
            <InOrderLineFreeDateTime1>dateTime</InOrderLineFreeDateTime1>
            <InOrderLineType xsi:nil="true" />
          </InOrderLine>
        </InOrderLines>
      </co>
    </ProcessInOrder>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ProcessInOrderResponse xmlns="http://ongoingsystems.se/WSI">
      <ProcessInOrderResult>
        <ErrorMessage>string</ErrorMessage>
        <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        <OrderId>int</OrderId>
        <InOrderId>int</InOrderId>
        <ArticleDefId>int</ArticleDefId>
        <Success>boolean</Success>
        <Message>string</Message>
      </ProcessInOrderResult>
    </ProcessInOrderResponse>
  </soap12:Body>
</soap12:Envelope>