MediabilityWebService_test
Click here for a complete list of operations.
CreateProduct
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 /MediabilityWebService_test.asmx HTTP/1.1
Host: visma.mediability.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "MediabilityWebservice/CreateProduct"
<?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:Header>
<AuthHeader xmlns="MediabilityWebservice">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap:Header>
<soap:Body>
<CreateProduct xmlns="MediabilityWebservice">
<product>
<ProductNo>string</ProductNo>
<Description>string</Description>
<DefaultSalesUnits>string</DefaultSalesUnits>
<TaxAndAccountingGroup>int</TaxAndAccountingGroup>
<Group1>int</Group1>
<Group2>int</Group2>
<Group3>int</Group3>
<Group4>int</Group4>
<Information1>string</Information1>
<Information4>string</Information4>
<Information6>string</Information6>
<Information7>string</Information7>
<Information8>string</Information8>
<NormalWarehouseNo>int</NormalWarehouseNo>
<CostPriceAdditionPercent>int</CostPriceAdditionPercent>
<SalesPrice>decimal</SalesPrice>
<PurchasePrice>decimal</PurchasePrice>
<SupplierNo>int</SupplierNo>
<NormalSupplierNo>int</NormalSupplierNo>
<SupplierProductNo>string</SupplierProductNo>
<SourceCountryNo>string</SourceCountryNo>
<Customs>decimal</Customs>
<LeadTime>int</LeadTime>
<CostCurrencyNo>string</CostCurrencyNo>
<PurchaseUnit>int</PurchaseUnit>
<Official1>int</Official1>
<AlternativeProductNo>string</AlternativeProductNo>
<NetWeight>int</NetWeight>
<Length>int</Length>
<Width>int</Width>
<Height>int</Height>
<GrossWeight>int</GrossWeight>
<LegalEntity>string</LegalEntity>
<SupplierName>string</SupplierName>
<EuGoodsStatisticsNo>int</EuGoodsStatisticsNo>
<ShowOnWeb>boolean</ShowOnWeb>
<Active>boolean</Active>
<EAN>string</EAN>
</product>
</CreateProduct>
</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>
<CreateProductResponse xmlns="MediabilityWebservice">
<CreateProductResult>
<CreatedOrUpdate>string</CreatedOrUpdate>
</CreateProductResult>
</CreateProductResponse>
</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 /MediabilityWebService_test.asmx HTTP/1.1
Host: visma.mediability.com
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:Header>
<AuthHeader xmlns="MediabilityWebservice">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<CreateProduct xmlns="MediabilityWebservice">
<product>
<ProductNo>string</ProductNo>
<Description>string</Description>
<DefaultSalesUnits>string</DefaultSalesUnits>
<TaxAndAccountingGroup>int</TaxAndAccountingGroup>
<Group1>int</Group1>
<Group2>int</Group2>
<Group3>int</Group3>
<Group4>int</Group4>
<Information1>string</Information1>
<Information4>string</Information4>
<Information6>string</Information6>
<Information7>string</Information7>
<Information8>string</Information8>
<NormalWarehouseNo>int</NormalWarehouseNo>
<CostPriceAdditionPercent>int</CostPriceAdditionPercent>
<SalesPrice>decimal</SalesPrice>
<PurchasePrice>decimal</PurchasePrice>
<SupplierNo>int</SupplierNo>
<NormalSupplierNo>int</NormalSupplierNo>
<SupplierProductNo>string</SupplierProductNo>
<SourceCountryNo>string</SourceCountryNo>
<Customs>decimal</Customs>
<LeadTime>int</LeadTime>
<CostCurrencyNo>string</CostCurrencyNo>
<PurchaseUnit>int</PurchaseUnit>
<Official1>int</Official1>
<AlternativeProductNo>string</AlternativeProductNo>
<NetWeight>int</NetWeight>
<Length>int</Length>
<Width>int</Width>
<Height>int</Height>
<GrossWeight>int</GrossWeight>
<LegalEntity>string</LegalEntity>
<SupplierName>string</SupplierName>
<EuGoodsStatisticsNo>int</EuGoodsStatisticsNo>
<ShowOnWeb>boolean</ShowOnWeb>
<Active>boolean</Active>
<EAN>string</EAN>
</product>
</CreateProduct>
</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>
<CreateProductResponse xmlns="MediabilityWebservice">
<CreateProductResult>
<CreatedOrUpdate>string</CreatedOrUpdate>
</CreateProductResult>
</CreateProductResponse>
</soap12:Body>
</soap12:Envelope>