StockService
Click here for a complete list of operations.
ProductSave
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 /RoseComServicesTest/RoseCommServiceV3/APIV1/StockService.asmx HTTP/1.1
Host: rosecommunications.salestarconnect.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ProductSave"
<?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>
<ProductSave xmlns="http://tempuri.org/">
<pProduct>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductCategory>
<ProductDepartment>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductDepartment>
<Manufacturer>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Manufacturer>
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier>
<SupplierReference>string</SupplierReference>
<SupplierName>string</SupplierName>
<POAddress>
<AddressLine1>string</AddressLine1>
<AddressLine2>string</AddressLine2>
<AddressLine3>string</AddressLine3>
<AddressLine4>string</AddressLine4>
<AddressLine5>string</AddressLine5>
<City>string</City>
<State>string</State>
<PostCode>string</PostCode>
<Country xsi:nil="true" />
<IsDefault>boolean</IsDefault>
<DateSince>dateTime</DateSince>
<DurationFromInMonths>int</DurationFromInMonths>
<PremisesType xsi:nil="true" />
<IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
<AddressSequence>int</AddressSequence>
<FullAddress>string</FullAddress>
<HouseName>string</HouseName>
<ConsigneeName>string</ConsigneeName>
<AddressCode>string</AddressCode>
<PhoneNumber>string</PhoneNumber>
<CustomerID>int</CustomerID>
<ContactID>int</ContactID>
</POAddress>
<IsDefault>boolean</IsDefault>
</DefaultSupplier>
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</TaxGroup>
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ConnectabilityType>
<IsTrackable>boolean</IsTrackable>
<ProductCountry>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductCountry>
<ProductClass>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductClass>
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ReplenishingFormula>
<Location>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Location>
<Site>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Site>
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</TariffProfitability>
<BonusBand>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</BonusBand>
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</pProduct>
<pAuthentication>
<UserName>string</UserName>
<Password>string</Password>
<DealerCode>string</DealerCode>
<PasswordLevel2>string</PasswordLevel2>
<IsAuthenticated>boolean</IsAuthenticated>
<NewPassword>string</NewPassword>
<EmployeeID>int</EmployeeID>
<AppServerPath>string</AppServerPath>
<IsAPIUser>boolean</IsAPIUser>
</pAuthentication>
</ProductSave>
</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>
<ProductSaveResponse xmlns="http://tempuri.org/">
<ProductSaveResult>
<IsError>boolean</IsError>
<ErrorCode>int</ErrorCode>
<ErrorMessage>string</ErrorMessage>
<BusinessObjectList>
<Product>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory xsi:nil="true" />
<ProductDepartment xsi:nil="true" />
<Manufacturer xsi:nil="true" />
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier xsi:nil="true" />
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup xsi:nil="true" />
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType xsi:nil="true" />
<IsTrackable>boolean</IsTrackable>
<ProductCountry xsi:nil="true" />
<ProductClass xsi:nil="true" />
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula xsi:nil="true" />
<Location xsi:nil="true" />
<Site xsi:nil="true" />
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability xsi:nil="true" />
<BonusBand xsi:nil="true" />
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</Product>
<Product>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory xsi:nil="true" />
<ProductDepartment xsi:nil="true" />
<Manufacturer xsi:nil="true" />
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier xsi:nil="true" />
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup xsi:nil="true" />
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType xsi:nil="true" />
<IsTrackable>boolean</IsTrackable>
<ProductCountry xsi:nil="true" />
<ProductClass xsi:nil="true" />
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula xsi:nil="true" />
<Location xsi:nil="true" />
<Site xsi:nil="true" />
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability xsi:nil="true" />
<BonusBand xsi:nil="true" />
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</Product>
</BusinessObjectList>
<ActualRecordsCount>int</ActualRecordsCount>
<MetaData>string</MetaData>
<BusinessObjectBool>boolean</BusinessObjectBool>
</ProductSaveResult>
</ProductSaveResponse>
</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 /RoseComServicesTest/RoseCommServiceV3/APIV1/StockService.asmx HTTP/1.1
Host: rosecommunications.salestarconnect.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:Body>
<ProductSave xmlns="http://tempuri.org/">
<pProduct>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductCategory>
<ProductDepartment>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductDepartment>
<Manufacturer>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Manufacturer>
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier>
<SupplierReference>string</SupplierReference>
<SupplierName>string</SupplierName>
<POAddress>
<AddressLine1>string</AddressLine1>
<AddressLine2>string</AddressLine2>
<AddressLine3>string</AddressLine3>
<AddressLine4>string</AddressLine4>
<AddressLine5>string</AddressLine5>
<City>string</City>
<State>string</State>
<PostCode>string</PostCode>
<Country xsi:nil="true" />
<IsDefault>boolean</IsDefault>
<DateSince>dateTime</DateSince>
<DurationFromInMonths>int</DurationFromInMonths>
<PremisesType xsi:nil="true" />
<IsUsedForCreditCheck>boolean</IsUsedForCreditCheck>
<AddressSequence>int</AddressSequence>
<FullAddress>string</FullAddress>
<HouseName>string</HouseName>
<ConsigneeName>string</ConsigneeName>
<AddressCode>string</AddressCode>
<PhoneNumber>string</PhoneNumber>
<CustomerID>int</CustomerID>
<ContactID>int</ContactID>
</POAddress>
<IsDefault>boolean</IsDefault>
</DefaultSupplier>
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</TaxGroup>
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ConnectabilityType>
<IsTrackable>boolean</IsTrackable>
<ProductCountry>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductCountry>
<ProductClass>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ProductClass>
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</ReplenishingFormula>
<Location>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Location>
<Site>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</Site>
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</TariffProfitability>
<BonusBand>
<ID>int</ID>
<Name>string</Name>
<DataType>int</DataType>
<Length>int</Length>
<IsMandatory>boolean</IsMandatory>
</BonusBand>
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</pProduct>
<pAuthentication>
<UserName>string</UserName>
<Password>string</Password>
<DealerCode>string</DealerCode>
<PasswordLevel2>string</PasswordLevel2>
<IsAuthenticated>boolean</IsAuthenticated>
<NewPassword>string</NewPassword>
<EmployeeID>int</EmployeeID>
<AppServerPath>string</AppServerPath>
<IsAPIUser>boolean</IsAPIUser>
</pAuthentication>
</ProductSave>
</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>
<ProductSaveResponse xmlns="http://tempuri.org/">
<ProductSaveResult>
<IsError>boolean</IsError>
<ErrorCode>int</ErrorCode>
<ErrorMessage>string</ErrorMessage>
<BusinessObjectList>
<Product>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory xsi:nil="true" />
<ProductDepartment xsi:nil="true" />
<Manufacturer xsi:nil="true" />
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier xsi:nil="true" />
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup xsi:nil="true" />
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType xsi:nil="true" />
<IsTrackable>boolean</IsTrackable>
<ProductCountry xsi:nil="true" />
<ProductClass xsi:nil="true" />
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula xsi:nil="true" />
<Location xsi:nil="true" />
<Site xsi:nil="true" />
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability xsi:nil="true" />
<BonusBand xsi:nil="true" />
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</Product>
<Product>
<ProductTypeName>string</ProductTypeName>
<ProductCode>string</ProductCode>
<ProductName>string</ProductName>
<voucherType>int</voucherType>
<ProductDescription>string</ProductDescription>
<ProductCategory xsi:nil="true" />
<ProductDepartment xsi:nil="true" />
<Manufacturer xsi:nil="true" />
<AccountCode>string</AccountCode>
<CostAccountCode>string</CostAccountCode>
<DefaultSupplier xsi:nil="true" />
<SellingPrice>decimal</SellingPrice>
<DealerPrice>decimal</DealerPrice>
<DealerSpecialPrice>decimal</DealerSpecialPrice>
<IsActive>boolean</IsActive>
<TaxRate>decimal</TaxRate>
<TaxGroup xsi:nil="true" />
<CostPrice>decimal</CostPrice>
<QtyInStock>decimal</QtyInStock>
<ConnectabilityType xsi:nil="true" />
<IsTrackable>boolean</IsTrackable>
<ProductCountry xsi:nil="true" />
<ProductClass xsi:nil="true" />
<Model>string</Model>
<Make>string</Make>
<BasicPicture>base64Binary</BasicPicture>
<WebPicture>base64Binary</WebPicture>
<IsSharerTariff>boolean</IsSharerTariff>
<ReplenishingFormula xsi:nil="true" />
<Location xsi:nil="true" />
<Site xsi:nil="true" />
<QtyAvailableForSale>decimal</QtyAvailableForSale>
<HandsetOption>int</HandsetOption>
<RestockingFee>decimal</RestockingFee>
<HandsetOptionValue>string</HandsetOptionValue>
<ExcludeFromForecast>boolean</ExcludeFromForecast>
<ExcludeFromKeyIndicator>boolean</ExcludeFromKeyIndicator>
<ReorderQuantity>int</ReorderQuantity>
<MinimumQuantity>int</MinimumQuantity>
<MaximumQuantity>int</MaximumQuantity>
<MonthlyCharge>decimal</MonthlyCharge>
<AssessmentCode>string</AssessmentCode>
<AssessmentRating>string</AssessmentRating>
<TariffProfitability xsi:nil="true" />
<BonusBand xsi:nil="true" />
<IsOwnProduct>boolean</IsOwnProduct>
<ApplicationID>int</ApplicationID>
<DealerID>int</DealerID>
<EffectiveDate>dateTime</EffectiveDate>
<ReturnReasonID>int</ReturnReasonID>
</Product>
</BusinessObjectList>
<ActualRecordsCount>int</ActualRecordsCount>
<MetaData>string</MetaData>
<BusinessObjectBool>boolean</BusinessObjectBool>
</ProductSaveResult>
</ProductSaveResponse>
</soap12:Body>
</soap12:Envelope>