MediabilityWebService_test
Click here for a complete list of operations.
CreateOrder
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/CreateOrder"
<?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>
<CreateOrder xmlns="MediabilityWebservice">
<order>
<CustomerNo>int</CustomerNo>
<OrderDate>dateTime</OrderDate>
<SellerOrbuyer>int</SellerOrbuyer>
<InvoiceCustomerNo>int</InvoiceCustomerNo>
<DeliveryAssociateNo>int</DeliveryAssociateNo>
<CurrencyNo>int</CurrencyNo>
<ProjectNo>int</ProjectNo>
<OurReference>string</OurReference>
<YourReference>string</YourReference>
<DepartmentNo>int</DepartmentNo>
<ContactEmail>string</ContactEmail>
<ContactName>string</ContactName>
<ContactPhone>string</ContactPhone>
<OrderLine>
<OrderLine>
<ProductNo>string</ProductNo>
<Description>string</Description>
<LineDescription>string</LineDescription>
<Quantity>decimal</Quantity>
<PriceInCurrency>decimal</PriceInCurrency>
<Discount>decimal</Discount>
<SerialNo>string</SerialNo>
<CostPriceInCurrency>decimal</CostPriceInCurrency>
<TransGr1>int</TransGr1>
<TransGr2>int</TransGr2>
<TransGr3>int</TransGr3>
<RentalStart>dateTime</RentalStart>
<RentalEnd>dateTime</RentalEnd>
</OrderLine>
<OrderLine>
<ProductNo>string</ProductNo>
<Description>string</Description>
<LineDescription>string</LineDescription>
<Quantity>decimal</Quantity>
<PriceInCurrency>decimal</PriceInCurrency>
<Discount>decimal</Discount>
<SerialNo>string</SerialNo>
<CostPriceInCurrency>decimal</CostPriceInCurrency>
<TransGr1>int</TransGr1>
<TransGr2>int</TransGr2>
<TransGr3>int</TransGr3>
<RentalStart>dateTime</RentalStart>
<RentalEnd>dateTime</RentalEnd>
</OrderLine>
</OrderLine>
<LegalEntity>string</LegalEntity>
<PaymentTerms>int</PaymentTerms>
<TaxCode>int</TaxCode>
<CreditNote>boolean</CreditNote>
<DeliveryTerms>int</DeliveryTerms>
<DeliveryPriority>int</DeliveryPriority>
<DeliveryMethod>int</DeliveryMethod>
<RequiredDeliveryDate>dateTime</RequiredDeliveryDate>
<DeliveryCountryNo>string</DeliveryCountryNo>
<OrderPreferences>int</OrderPreferences>
<OrderStatus>int</OrderStatus>
<Memo>string</Memo>
<DeliveryName>string</DeliveryName>
<DeliveryAddress1>string</DeliveryAddress1>
<DeliveryAddress2>string</DeliveryAddress2>
<DeliveryAddress3>string</DeliveryAddress3>
<DeliveryAddress4>string</DeliveryAddress4>
<DeliveryPostcode>string</DeliveryPostcode>
<DeliveryPostalArea>string</DeliveryPostalArea>
<TradeArea>int</TradeArea>
<SalesforceOrderId>string</SalesforceOrderId>
<CustomerOrSupplierOrder>string</CustomerOrSupplierOrder>
<BillingName>string</BillingName>
<BillingAddress1>string</BillingAddress1>
<BillingAddress2>string</BillingAddress2>
<BillingAddress3>string</BillingAddress3>
<BillingAddress4>string</BillingAddress4>
<BillingPostcode>string</BillingPostcode>
<BillingPostalArea>string</BillingPostalArea>
<BillingState>string</BillingState>
<BillingCountry>string</BillingCountry>
</order>
</CreateOrder>
</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>
<CreateOrderResponse xmlns="MediabilityWebservice">
<CreateOrderResult>
<Success>boolean</Success>
<Message>string</Message>
<OrderNo>int</OrderNo>
</CreateOrderResult>
</CreateOrderResponse>
</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>
<CreateOrder xmlns="MediabilityWebservice">
<order>
<CustomerNo>int</CustomerNo>
<OrderDate>dateTime</OrderDate>
<SellerOrbuyer>int</SellerOrbuyer>
<InvoiceCustomerNo>int</InvoiceCustomerNo>
<DeliveryAssociateNo>int</DeliveryAssociateNo>
<CurrencyNo>int</CurrencyNo>
<ProjectNo>int</ProjectNo>
<OurReference>string</OurReference>
<YourReference>string</YourReference>
<DepartmentNo>int</DepartmentNo>
<ContactEmail>string</ContactEmail>
<ContactName>string</ContactName>
<ContactPhone>string</ContactPhone>
<OrderLine>
<OrderLine>
<ProductNo>string</ProductNo>
<Description>string</Description>
<LineDescription>string</LineDescription>
<Quantity>decimal</Quantity>
<PriceInCurrency>decimal</PriceInCurrency>
<Discount>decimal</Discount>
<SerialNo>string</SerialNo>
<CostPriceInCurrency>decimal</CostPriceInCurrency>
<TransGr1>int</TransGr1>
<TransGr2>int</TransGr2>
<TransGr3>int</TransGr3>
<RentalStart>dateTime</RentalStart>
<RentalEnd>dateTime</RentalEnd>
</OrderLine>
<OrderLine>
<ProductNo>string</ProductNo>
<Description>string</Description>
<LineDescription>string</LineDescription>
<Quantity>decimal</Quantity>
<PriceInCurrency>decimal</PriceInCurrency>
<Discount>decimal</Discount>
<SerialNo>string</SerialNo>
<CostPriceInCurrency>decimal</CostPriceInCurrency>
<TransGr1>int</TransGr1>
<TransGr2>int</TransGr2>
<TransGr3>int</TransGr3>
<RentalStart>dateTime</RentalStart>
<RentalEnd>dateTime</RentalEnd>
</OrderLine>
</OrderLine>
<LegalEntity>string</LegalEntity>
<PaymentTerms>int</PaymentTerms>
<TaxCode>int</TaxCode>
<CreditNote>boolean</CreditNote>
<DeliveryTerms>int</DeliveryTerms>
<DeliveryPriority>int</DeliveryPriority>
<DeliveryMethod>int</DeliveryMethod>
<RequiredDeliveryDate>dateTime</RequiredDeliveryDate>
<DeliveryCountryNo>string</DeliveryCountryNo>
<OrderPreferences>int</OrderPreferences>
<OrderStatus>int</OrderStatus>
<Memo>string</Memo>
<DeliveryName>string</DeliveryName>
<DeliveryAddress1>string</DeliveryAddress1>
<DeliveryAddress2>string</DeliveryAddress2>
<DeliveryAddress3>string</DeliveryAddress3>
<DeliveryAddress4>string</DeliveryAddress4>
<DeliveryPostcode>string</DeliveryPostcode>
<DeliveryPostalArea>string</DeliveryPostalArea>
<TradeArea>int</TradeArea>
<SalesforceOrderId>string</SalesforceOrderId>
<CustomerOrSupplierOrder>string</CustomerOrSupplierOrder>
<BillingName>string</BillingName>
<BillingAddress1>string</BillingAddress1>
<BillingAddress2>string</BillingAddress2>
<BillingAddress3>string</BillingAddress3>
<BillingAddress4>string</BillingAddress4>
<BillingPostcode>string</BillingPostcode>
<BillingPostalArea>string</BillingPostalArea>
<BillingState>string</BillingState>
<BillingCountry>string</BillingCountry>
</order>
</CreateOrder>
</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>
<CreateOrderResponse xmlns="MediabilityWebservice">
<CreateOrderResult>
<Success>boolean</Success>
<Message>string</Message>
<OrderNo>int</OrderNo>
</CreateOrderResult>
</CreateOrderResponse>
</soap12:Body>
</soap12:Envelope>