Service
Click here for a complete list of operations.
ProcessProductionOrder
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/ProcessProductionOrder" <?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> <ProcessProductionOrder xmlns="http://ongoingsystems.se/WSI"> <GoodsOwnerCode>string</GoodsOwnerCode> <UserName>string</UserName> <Password>string</Password> <ProductionOrder> <ProductionOrderIdentification>ProductionOrderNumber</ProductionOrderIdentification> <ProductionOrderNumber>string</ProductionOrderNumber> <ProductionOrderComment>string</ProductionOrderComment> <ProductionDate>dateTime</ProductionDate> <ExpiryDate>dateTime</ExpiryDate> <ProductionOrderLines> <ProductionOrderLine> <ProductionOrderLineIdentification>ProductionOrderLineNumber</ProductionOrderLineIdentification> <ToProduceNumberOfItems>decimal</ToProduceNumberOfItems> <ArticleNumber>string</ArticleNumber> <ProductionOrderLineComment>string</ProductionOrderLineComment> <ProductionOrderLineNumber>string</ProductionOrderLineNumber> <MinDaysToExpiryDate>int</MinDaysToExpiryDate> <Specification xsi:nil="true" /> <ProductionOrderLineProduceBatchNo>string</ProductionOrderLineProduceBatchNo> <ProductionOrderLineProduceSerial>string</ProductionOrderLineProduceSerial> </ProductionOrderLine> <ProductionOrderLine> <ProductionOrderLineIdentification>ProductionOrderLineNumber</ProductionOrderLineIdentification> <ToProduceNumberOfItems>decimal</ToProduceNumberOfItems> <ArticleNumber>string</ArticleNumber> <ProductionOrderLineComment>string</ProductionOrderLineComment> <ProductionOrderLineNumber>string</ProductionOrderLineNumber> <MinDaysToExpiryDate>int</MinDaysToExpiryDate> <Specification xsi:nil="true" /> <ProductionOrderLineProduceBatchNo>string</ProductionOrderLineProduceBatchNo> <ProductionOrderLineProduceSerial>string</ProductionOrderLineProduceSerial> </ProductionOrderLine> </ProductionOrderLines> <ProductionOrderOperation>CreateOrUpdate or Remove</ProductionOrderOperation> <ProductionOrderType> <ProductionOrderTypeOperation>Find or CreateOrFind</ProductionOrderTypeOperation> <ProductionOrderTypeIdentification>ProductionOrderTypeCode or ProductionOrderTypeName</ProductionOrderTypeIdentification> <ProductionOrderTypeCode>string</ProductionOrderTypeCode> <ProductionOrderTypeName>string</ProductionOrderTypeName> </ProductionOrderType> <ProductionOrderFreeBoolean1>boolean</ProductionOrderFreeBoolean1> <ProductionOrderFreeBoolean2>boolean</ProductionOrderFreeBoolean2> <ProductionOrderFreeText1>string</ProductionOrderFreeText1> </ProductionOrder> </ProcessProductionOrder> </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> <ProcessProductionOrderResponse xmlns="http://ongoingsystems.se/WSI"> <ProcessProductionOrderResult> <ProductionOrderId>int</ProductionOrderId> <Success>boolean</Success> <ProcessProductionOrderErrors> <ProcessProductionOrderError> <Message>string</Message> <ErrorType>LogonError or ProductionOrderNumberNotSupplied or UnknownError or NonExistingArticleSupplied or ToProduceNumberOfItemsNotAPositiveValue or ErrorUpdatingProductionOrderLine or NoneProductionArticleSupplied or NoProductionOrderLineSpecificationLines or SpecificationLineIsMissingLineNumber or SpecificationLineNumbersAreNotUnique or SpecificationLineIsMissingArticleIdentificationField or NoSpecificationLinesSpecified or SpecificationLineNumberIsConsumedAndArticleCanNotBeChanged</ErrorType> </ProcessProductionOrderError> <ProcessProductionOrderError> <Message>string</Message> <ErrorType>LogonError or ProductionOrderNumberNotSupplied or UnknownError or NonExistingArticleSupplied or ToProduceNumberOfItemsNotAPositiveValue or ErrorUpdatingProductionOrderLine or NoneProductionArticleSupplied or NoProductionOrderLineSpecificationLines or SpecificationLineIsMissingLineNumber or SpecificationLineNumbersAreNotUnique or SpecificationLineIsMissingArticleIdentificationField or NoSpecificationLinesSpecified or SpecificationLineNumberIsConsumedAndArticleCanNotBeChanged</ErrorType> </ProcessProductionOrderError> </ProcessProductionOrderErrors> </ProcessProductionOrderResult> </ProcessProductionOrderResponse> </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> <ProcessProductionOrder xmlns="http://ongoingsystems.se/WSI"> <GoodsOwnerCode>string</GoodsOwnerCode> <UserName>string</UserName> <Password>string</Password> <ProductionOrder> <ProductionOrderIdentification>ProductionOrderNumber</ProductionOrderIdentification> <ProductionOrderNumber>string</ProductionOrderNumber> <ProductionOrderComment>string</ProductionOrderComment> <ProductionDate>dateTime</ProductionDate> <ExpiryDate>dateTime</ExpiryDate> <ProductionOrderLines> <ProductionOrderLine> <ProductionOrderLineIdentification>ProductionOrderLineNumber</ProductionOrderLineIdentification> <ToProduceNumberOfItems>decimal</ToProduceNumberOfItems> <ArticleNumber>string</ArticleNumber> <ProductionOrderLineComment>string</ProductionOrderLineComment> <ProductionOrderLineNumber>string</ProductionOrderLineNumber> <MinDaysToExpiryDate>int</MinDaysToExpiryDate> <Specification xsi:nil="true" /> <ProductionOrderLineProduceBatchNo>string</ProductionOrderLineProduceBatchNo> <ProductionOrderLineProduceSerial>string</ProductionOrderLineProduceSerial> </ProductionOrderLine> <ProductionOrderLine> <ProductionOrderLineIdentification>ProductionOrderLineNumber</ProductionOrderLineIdentification> <ToProduceNumberOfItems>decimal</ToProduceNumberOfItems> <ArticleNumber>string</ArticleNumber> <ProductionOrderLineComment>string</ProductionOrderLineComment> <ProductionOrderLineNumber>string</ProductionOrderLineNumber> <MinDaysToExpiryDate>int</MinDaysToExpiryDate> <Specification xsi:nil="true" /> <ProductionOrderLineProduceBatchNo>string</ProductionOrderLineProduceBatchNo> <ProductionOrderLineProduceSerial>string</ProductionOrderLineProduceSerial> </ProductionOrderLine> </ProductionOrderLines> <ProductionOrderOperation>CreateOrUpdate or Remove</ProductionOrderOperation> <ProductionOrderType> <ProductionOrderTypeOperation>Find or CreateOrFind</ProductionOrderTypeOperation> <ProductionOrderTypeIdentification>ProductionOrderTypeCode or ProductionOrderTypeName</ProductionOrderTypeIdentification> <ProductionOrderTypeCode>string</ProductionOrderTypeCode> <ProductionOrderTypeName>string</ProductionOrderTypeName> </ProductionOrderType> <ProductionOrderFreeBoolean1>boolean</ProductionOrderFreeBoolean1> <ProductionOrderFreeBoolean2>boolean</ProductionOrderFreeBoolean2> <ProductionOrderFreeText1>string</ProductionOrderFreeText1> </ProductionOrder> </ProcessProductionOrder> </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> <ProcessProductionOrderResponse xmlns="http://ongoingsystems.se/WSI"> <ProcessProductionOrderResult> <ProductionOrderId>int</ProductionOrderId> <Success>boolean</Success> <ProcessProductionOrderErrors> <ProcessProductionOrderError> <Message>string</Message> <ErrorType>LogonError or ProductionOrderNumberNotSupplied or UnknownError or NonExistingArticleSupplied or ToProduceNumberOfItemsNotAPositiveValue or ErrorUpdatingProductionOrderLine or NoneProductionArticleSupplied or NoProductionOrderLineSpecificationLines or SpecificationLineIsMissingLineNumber or SpecificationLineNumbersAreNotUnique or SpecificationLineIsMissingArticleIdentificationField or NoSpecificationLinesSpecified or SpecificationLineNumberIsConsumedAndArticleCanNotBeChanged</ErrorType> </ProcessProductionOrderError> <ProcessProductionOrderError> <Message>string</Message> <ErrorType>LogonError or ProductionOrderNumberNotSupplied or UnknownError or NonExistingArticleSupplied or ToProduceNumberOfItemsNotAPositiveValue or ErrorUpdatingProductionOrderLine or NoneProductionArticleSupplied or NoProductionOrderLineSpecificationLines or SpecificationLineIsMissingLineNumber or SpecificationLineNumbersAreNotUnique or SpecificationLineIsMissingArticleIdentificationField or NoSpecificationLinesSpecified or SpecificationLineNumberIsConsumedAndArticleCanNotBeChanged</ErrorType> </ProcessProductionOrderError> </ProcessProductionOrderErrors> </ProcessProductionOrderResult> </ProcessProductionOrderResponse> </soap12:Body> </soap12:Envelope>