LonelyRanger
Junior Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Здравствуйте, друзья. Никак не могу понять как правильно составить запросы soap в perl и получить ответы. Яндекс и Гугл не дают чёткого ответа. В общем задача: есть сайт поставщика и у него API по остаткам работает через soap. Нужно отправить запрос с параметром и получить ответ по наличию. Дали вот такую ссылку http://37.128.92.210:885/WebService.asmx и pdf инструкцию, в которой написано следующее: Цитата: 2. Access to WebSerwice URL access to the Web Service: http://37.128.92.210:885/WebService.asmx User name: will be provided by Helikon-Tex® Password: will be provided by Helikon-Tex 3. The procedures 3.1. GetAllProducts(string cus, bool only_in_stock, Lang lang, Currency currency) The procedure returns a list of all products available in the system B2B of Helikon-Tex®. The default procedure returns the products both available and unavailable. Parameters: - cus – customer ID (company name which is used to login to B2B panel),
- only_in_stock – returns only the available products,
- lang – language of products descriptions,
- currency – prices currency.
3.2. GetProductById(string cus, int id, Lang lang, Currency currency) The procedure returns a single product by product id. Parametry: - cus – customer ID (company name which is used to login to B2B panel),
- id – product ID,
- lang – language of products descriptions,
- currency – prices currency.
3.3. GetProductByCode(string cus, string code, Lang lang, Currency currency) Procedura zwraca pojedynczy produkt według przekazanego kodu produktu. Parametry: - cus – customer ID (company name which is used to login to B2B panel),
- code – product code,
- lang – language of products descriptions,
- currency – prices currency.4. Definiton of product class
product - int product_id – unique product id,
- string product_code – unique product code,
- string product_name – product name,
- decimal product_price – purchace price,
- decimal product_price_min – MRP,
- decimal product_price_suggested – SRP,
- string product_producer – product manufacturer,
- string product_brand – product brand,
- decimal product_weight – product weight,
- string product_ean – EAN code,
- string product_cn – CN code,
- string product_unit – unit of measure,
- string product_specification – material specification,
- string product_description – product Description,
- List variants – list of variants (features) of the product
o int variant_id – unique id variant (features) of the product o string variant_type – type of variant (features) o string variant_name – name of the variant (features) o decimal variant_stock – number of available products in stock in variant (features) Wartosc zwracana w zmiennej variant_stock: - varinat_stock >= 0 – the exact state of stock in pieces,
- variant_stock =-1 – corresponds to the sign yellow availability in IZAM (small amount)
- variant_stock = -2 – corresponds to the sign green availability in IZAM (high amount)
5. Auxiliary variables enum Lang { Polish, English } enum Currency { PLN, USD, EUR, GBP } | Помогите составить запрос на PERL и получить ответ. Заранее благодарю. |