Service


Click here for a complete list of operations.

ProcessArticle

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/ProcessArticle"

<?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>
    <ProcessArticle xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <art>
        <ArticleOperation>CreateOrUpdate</ArticleOperation>
        <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
        <ArticleSystemId>int</ArticleSystemId>
        <ArticleNumber>string</ArticleNumber>
        <ArticleName>string</ArticleName>
        <ProductCode>string</ProductCode>
        <BarCode>string</BarCode>
        <SupplierArticleNumber>string</SupplierArticleNumber>
        <ArticleDescription>string</ArticleDescription>
        <ArticleUnitCode>string</ArticleUnitCode>
        <CountryOfOriginCode>string</CountryOfOriginCode>
        <StatisticsNumber>string</StatisticsNumber>
        <PurchaseCurrencyCode>string</PurchaseCurrencyCode>
        <Weight>decimal</Weight>
        <NetWeight>decimal</NetWeight>
        <Volume>decimal</Volume>
        <Length>decimal</Length>
        <Width>decimal</Width>
        <Height>decimal</Height>
        <QuantityPerPallet>int</QuantityPerPallet>
        <QuantityPerPackage>int</QuantityPerPackage>
        <OrderPoint>int</OrderPoint>
        <Price>decimal</Price>
        <CustomerPrice>decimal</CustomerPrice>
        <PurchasePrice>decimal</PurchasePrice>
        <IsStockArticle>boolean</IsStockArticle>
        <ArticleGroup>
          <ArticleGroupOperation>Find or FindOrCreate or Clear or CreateOrUpdate</ArticleGroupOperation>
          <ArticleGroupIdentification>ArticleGroupCode or ArticleGroupName</ArticleGroupIdentification>
          <ArticleGroupCode>string</ArticleGroupCode>
          <ArticleGroupName>string</ArticleGroupName>
        </ArticleGroup>
        <ArticleCategory>
          <TypeOperation>CreateOrUpdate or Find or FindOrCreate</TypeOperation>
          <TypeIdentification>Code or Name</TypeIdentification>
          <Code>string</Code>
          <Name>string</Name>
        </ArticleCategory>
        <VatCode>
          <VatCodeOperation>Find or CreateNotUpdate</VatCodeOperation>
          <VatCodeIdentification>VatTypeCode or VatPercent</VatCodeIdentification>
          <VatCode>string</VatCode>
          <VatPercent>decimal</VatPercent>
        </VatCode>
        <DangerousGoods>
          <UNNumber>string</UNNumber>
          <UNIsMarineHazard>boolean</UNIsMarineHazard>
          <UNIsDangerousGoods>boolean</UNIsDangerousGoods>
          <UNPackageType>I or II or III or Unknown</UNPackageType>
          <UNTunnelCodes>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
          </UNTunnelCodes>
          <UNClassNumber>string</UNClassNumber>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNLabelNumbers>string</UNLabelNumbers>
          <DangerousGoodsCoefficient>decimal</DangerousGoodsCoefficient>
          <EmSCode>string</EmSCode>
        </DangerousGoods>
        <DangerousGoods>
          <UNNumber>string</UNNumber>
          <UNIsMarineHazard>boolean</UNIsMarineHazard>
          <UNIsDangerousGoods>boolean</UNIsDangerousGoods>
          <UNPackageType>I or II or III or Unknown</UNPackageType>
          <UNTunnelCodes>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
          </UNTunnelCodes>
          <UNClassNumber>string</UNClassNumber>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNLabelNumbers>string</UNLabelNumbers>
          <DangerousGoodsCoefficient>decimal</DangerousGoodsCoefficient>
          <EmSCode>string</EmSCode>
        </DangerousGoods>
        <ArticleNames>
          <ArticleName>
            <Language xsi:nil="true" />
            <ArticleName>string</ArticleName>
          </ArticleName>
          <ArticleName>
            <Language xsi:nil="true" />
            <ArticleName>string</ArticleName>
          </ArticleName>
        </ArticleNames>
        <ArticleStructureSpecification ArticleStructureType="StructureArticle or ProductionArticle">
          <StructureArticleDefinition>
            <NumberOfItems>decimal</NumberOfItems>
            <SubArticleDefinition xsi:nil="true" />
          </StructureArticleDefinition>
          <StructureArticleDefinition>
            <NumberOfItems>decimal</NumberOfItems>
            <SubArticleDefinition xsi:nil="true" />
          </StructureArticleDefinition>
        </ArticleStructureSpecification>
        <MainSupplier>
          <SupplierIdentificationType>SupplierNumber or SupplierName or FullNameAndAdress</SupplierIdentificationType>
          <SupplierOperation>CreateOrUpdate or Find or CreateOrFind</SupplierOperation>
          <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>
          <comment>string</comment>
        </MainSupplier>
        <IsGSPCertified>boolean</IsGSPCertified>
        <MaxStockDays>int</MaxStockDays>
        <BarCodePackage>string</BarCodePackage>
        <LinkToPicture>string</LinkToPicture>
        <BarCodePallet>string</BarCodePallet>
        <QuantityPerLayer>int</QuantityPerLayer>
        <PalletHeight>decimal</PalletHeight>
        <TaricNumbers>
          <TaricNumber>
            <Country xsi:nil="true" />
            <TaricNumber>string</TaricNumber>
          </TaricNumber>
          <TaricNumber>
            <Country xsi:nil="true" />
            <TaricNumber>string</TaricNumber>
          </TaricNumber>
        </TaricNumbers>
        <IsObsolete>boolean</IsObsolete>
        <MinDaysToExpiryDate>int</MinDaysToExpiryDate>
        <AdditionalStatisticsNumber>string</AdditionalStatisticsNumber>
        <CustomsExportConditions>string</CustomsExportConditions>
        <ArticleColor>
          <ColorCode>string</ColorCode>
          <ColorName>string</ColorName>
        </ArticleColor>
        <ArticleSize>
          <SizeCode>string</SizeCode>
          <SizeName>string</SizeName>
        </ArticleSize>
        <IsSerialNumberArticle>boolean</IsSerialNumberArticle>
        <IsBatchArticle>boolean</IsBatchArticle>
        <ArticleDefinitionClasses>
          <ArticleDefinitionClassesOperation>FindOrCreate</ArticleDefinitionClassesOperation>
          <Classes>
            <Class xsi:nil="true" />
            <Class xsi:nil="true" />
          </Classes>
        </ArticleDefinitionClasses>
        <ArticleFreeDecimal1>decimal</ArticleFreeDecimal1>
        <ArticleFreeDecimal2>decimal</ArticleFreeDecimal2>
        <ArticleStoragePriority>int</ArticleStoragePriority>
        <SubQuantityPerItem>decimal</SubQuantityPerItem>
      </art>
    </ProcessArticle>
  </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>
    <ProcessArticleResponse xmlns="http://ongoingsystems.se/WSI">
      <ProcessArticleResult>
        <ErrorMessage>string</ErrorMessage>
        <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        <OrderId>int</OrderId>
        <InOrderId>int</InOrderId>
        <ArticleDefId>int</ArticleDefId>
        <Success>boolean</Success>
        <Message>string</Message>
      </ProcessArticleResult>
    </ProcessArticleResponse>
  </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>
    <ProcessArticle xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <art>
        <ArticleOperation>CreateOrUpdate</ArticleOperation>
        <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
        <ArticleSystemId>int</ArticleSystemId>
        <ArticleNumber>string</ArticleNumber>
        <ArticleName>string</ArticleName>
        <ProductCode>string</ProductCode>
        <BarCode>string</BarCode>
        <SupplierArticleNumber>string</SupplierArticleNumber>
        <ArticleDescription>string</ArticleDescription>
        <ArticleUnitCode>string</ArticleUnitCode>
        <CountryOfOriginCode>string</CountryOfOriginCode>
        <StatisticsNumber>string</StatisticsNumber>
        <PurchaseCurrencyCode>string</PurchaseCurrencyCode>
        <Weight>decimal</Weight>
        <NetWeight>decimal</NetWeight>
        <Volume>decimal</Volume>
        <Length>decimal</Length>
        <Width>decimal</Width>
        <Height>decimal</Height>
        <QuantityPerPallet>int</QuantityPerPallet>
        <QuantityPerPackage>int</QuantityPerPackage>
        <OrderPoint>int</OrderPoint>
        <Price>decimal</Price>
        <CustomerPrice>decimal</CustomerPrice>
        <PurchasePrice>decimal</PurchasePrice>
        <IsStockArticle>boolean</IsStockArticle>
        <ArticleGroup>
          <ArticleGroupOperation>Find or FindOrCreate or Clear or CreateOrUpdate</ArticleGroupOperation>
          <ArticleGroupIdentification>ArticleGroupCode or ArticleGroupName</ArticleGroupIdentification>
          <ArticleGroupCode>string</ArticleGroupCode>
          <ArticleGroupName>string</ArticleGroupName>
        </ArticleGroup>
        <ArticleCategory>
          <TypeOperation>CreateOrUpdate or Find or FindOrCreate</TypeOperation>
          <TypeIdentification>Code or Name</TypeIdentification>
          <Code>string</Code>
          <Name>string</Name>
        </ArticleCategory>
        <VatCode>
          <VatCodeOperation>Find or CreateNotUpdate</VatCodeOperation>
          <VatCodeIdentification>VatTypeCode or VatPercent</VatCodeIdentification>
          <VatCode>string</VatCode>
          <VatPercent>decimal</VatPercent>
        </VatCode>
        <DangerousGoods>
          <UNNumber>string</UNNumber>
          <UNIsMarineHazard>boolean</UNIsMarineHazard>
          <UNIsDangerousGoods>boolean</UNIsDangerousGoods>
          <UNPackageType>I or II or III or Unknown</UNPackageType>
          <UNTunnelCodes>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
          </UNTunnelCodes>
          <UNClassNumber>string</UNClassNumber>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNLabelNumbers>string</UNLabelNumbers>
          <DangerousGoodsCoefficient>decimal</DangerousGoodsCoefficient>
          <EmSCode>string</EmSCode>
        </DangerousGoods>
        <DangerousGoods>
          <UNNumber>string</UNNumber>
          <UNIsMarineHazard>boolean</UNIsMarineHazard>
          <UNIsDangerousGoods>boolean</UNIsDangerousGoods>
          <UNPackageType>I or II or III or Unknown</UNPackageType>
          <UNTunnelCodes>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
            <UNTunnelCode>A or B or C or D or E</UNTunnelCode>
          </UNTunnelCodes>
          <UNClassNumber>string</UNClassNumber>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNProperShippingName>
            <Name>string</Name>
            <LanguageCode>string</LanguageCode>
          </UNProperShippingName>
          <UNLabelNumbers>string</UNLabelNumbers>
          <DangerousGoodsCoefficient>decimal</DangerousGoodsCoefficient>
          <EmSCode>string</EmSCode>
        </DangerousGoods>
        <ArticleNames>
          <ArticleName>
            <Language xsi:nil="true" />
            <ArticleName>string</ArticleName>
          </ArticleName>
          <ArticleName>
            <Language xsi:nil="true" />
            <ArticleName>string</ArticleName>
          </ArticleName>
        </ArticleNames>
        <ArticleStructureSpecification ArticleStructureType="StructureArticle or ProductionArticle">
          <StructureArticleDefinition>
            <NumberOfItems>decimal</NumberOfItems>
            <SubArticleDefinition xsi:nil="true" />
          </StructureArticleDefinition>
          <StructureArticleDefinition>
            <NumberOfItems>decimal</NumberOfItems>
            <SubArticleDefinition xsi:nil="true" />
          </StructureArticleDefinition>
        </ArticleStructureSpecification>
        <MainSupplier>
          <SupplierIdentificationType>SupplierNumber or SupplierName or FullNameAndAdress</SupplierIdentificationType>
          <SupplierOperation>CreateOrUpdate or Find or CreateOrFind</SupplierOperation>
          <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>
          <comment>string</comment>
        </MainSupplier>
        <IsGSPCertified>boolean</IsGSPCertified>
        <MaxStockDays>int</MaxStockDays>
        <BarCodePackage>string</BarCodePackage>
        <LinkToPicture>string</LinkToPicture>
        <BarCodePallet>string</BarCodePallet>
        <QuantityPerLayer>int</QuantityPerLayer>
        <PalletHeight>decimal</PalletHeight>
        <TaricNumbers>
          <TaricNumber>
            <Country xsi:nil="true" />
            <TaricNumber>string</TaricNumber>
          </TaricNumber>
          <TaricNumber>
            <Country xsi:nil="true" />
            <TaricNumber>string</TaricNumber>
          </TaricNumber>
        </TaricNumbers>
        <IsObsolete>boolean</IsObsolete>
        <MinDaysToExpiryDate>int</MinDaysToExpiryDate>
        <AdditionalStatisticsNumber>string</AdditionalStatisticsNumber>
        <CustomsExportConditions>string</CustomsExportConditions>
        <ArticleColor>
          <ColorCode>string</ColorCode>
          <ColorName>string</ColorName>
        </ArticleColor>
        <ArticleSize>
          <SizeCode>string</SizeCode>
          <SizeName>string</SizeName>
        </ArticleSize>
        <IsSerialNumberArticle>boolean</IsSerialNumberArticle>
        <IsBatchArticle>boolean</IsBatchArticle>
        <ArticleDefinitionClasses>
          <ArticleDefinitionClassesOperation>FindOrCreate</ArticleDefinitionClassesOperation>
          <Classes>
            <Class xsi:nil="true" />
            <Class xsi:nil="true" />
          </Classes>
        </ArticleDefinitionClasses>
        <ArticleFreeDecimal1>decimal</ArticleFreeDecimal1>
        <ArticleFreeDecimal2>decimal</ArticleFreeDecimal2>
        <ArticleStoragePriority>int</ArticleStoragePriority>
        <SubQuantityPerItem>decimal</SubQuantityPerItem>
      </art>
    </ProcessArticle>
  </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>
    <ProcessArticleResponse xmlns="http://ongoingsystems.se/WSI">
      <ProcessArticleResult>
        <ErrorMessage>string</ErrorMessage>
        <GoodsOwnerOrderNumber>string</GoodsOwnerOrderNumber>
        <OrderId>int</OrderId>
        <InOrderId>int</InOrderId>
        <ArticleDefId>int</ArticleDefId>
        <Success>boolean</Success>
        <Message>string</Message>
      </ProcessArticleResult>
    </ProcessArticleResponse>
  </soap12:Body>
</soap12:Envelope>