|
Не создается ФабрикаXDTO на основании 2 схем | ☑ | ||
---|---|---|---|---|
0
SeriyP
10.07.19
✎
15:37
|
Есть такая площадка для госзакупок "Березка". Для автоматизации взаимодействия они предлагают присылать им в запросе XML, сформированный по 2 схемам (https://agregatoreat.ru/api/info-documents/?id=88): eatObjectTypes.xsd и eatObjects.xsd.
При выполнении кода: Схемы = Новый Массив; Схемы.Добавить("d:\Berezka\Skhema_EAT_1.11.0.1\eatObjectTypes.xsd"); Схемы.Добавить("d:\Berezka\Skhema_EAT_1.11.0.1\eatObjects.xsd"); МояФабрика = СоздатьФабрикуXDTO(Схемы); выдается ошибка: {ВнешняяОбработка.РаботаХМЛ.Форма.Форма.Форма(7)}: Ошибка при вызове метода контекста (СоздатьФабрикуXDTO) МояФабрика = СоздатьФабрикуXDTO(Схемы); по причине: Ошибка проверки модели XDTO: xdto-objectType-3.9.2 (определение анонимного типа) свойство: requestOfferSet пакет: http://agregatoreat.ru/eat/object-types/ Глобальное свойство '{http://agregatoreat.ru/eat/}Version' отсутствует или не определено {ВнешняяОбработка.РаботаХМЛ.Форма.Форма.Форма(7)}: Ошибка при вызове метода контекста (СоздатьФабрикуXDTO) МояФабрика = СоздатьФабрикуXDTO(Схемы); по причине: Ошибка проверки модели XDTO: xdto-objectType-3.9.2 (определение анонимного типа) свойство: requestOfferSet пакет: http://agregatoreat.ru/eat/object-types/ Глобальное свойство '{http://agregatoreat.ru/eat/}Version' отсутствует или не определено При проверке схемы, импортированной в конфигурацию из файла eatObjectTypes.xsd, выдаются ошибки типа: Ошибка проверки модели XDTO: xdto-objectType-3.9.2 (определение анонимного типа) свойство: requestOfferSet пакет: http://agregatoreat.ru/eat/object-types/ Глобальное свойство '{http://agregatoreat.ru/eat/}Version' отсутствует или не определено Ошибка проверки модели XDTO: xdto-package-4.4 пакет: http://agregatoreat.ru/eat/object-types/ Тип глобального свойства 'requestOfferSet' не найден в пакете типов 'http://agregatoreat.ru/eat/object-types/' и его зависимостях и т.д. При проверке схемы из файла eatObjects.xsd ошибок нет. Причем чтение XML-файлов из примеров (https://agregatoreat.ru/api/info-documents/?id=91) по этим схемам проходит штатно: ошибок не возникает, объекты и свойства читаются. Помогите разобраться, что я делаю не так и что не так с этими схемами? |
|||
1
Cyberhawk
10.07.19
✎
15:52
|
Выложи схемы
|
|||
2
SeriyP
10.07.19
✎
16:02
|
(1) eatObjectTypes.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:tns="http://agregatoreat.ru/eat/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://agregatoreat.ru/eat/" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:attribute name="Version" fixed="1.11.0"> <xs:annotation> <xs:documentation>Версия схемы</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="RequestUID" type="tns:tGUID"> <xs:annotation> <xs:documentation>Идентификатор запроса</xs:documentation> </xs:annotation> </xs:attribute> <xs:complexType name="catalogCategoryType"> <xs:annotation> <xs:documentation>Тип элемента: Перечень товаров, работ, услуг определенной категории</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="category" type="tns:tCategoryType"> <xs:annotation> <xs:documentation>Категория</xs:documentation> </xs:annotation> </xs:element> <xs:element name="patterns" minOccurs="0"> <xs:annotation> <xs:documentation>Шаблоны описания ТРУ (обобщенные, модельные товары, работы, услуги без привязки к производителю)</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="pattern" type="tns:patternType" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Шаблон описания ТРУ (обобщенный, модельный товар без привязки к производителю)</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="categorySetType"> <xs:annotation> <xs:documentation>Тип элемента: Набор категорий классификатора ТРУ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="category" type="tns:tCategoryType" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Категория</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="offerSetType"> <xs:annotation> <xs:documentation>Тип элемента: Набор предложений ТРУ e-commerce системы</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="deliveryAreas" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Зона поставки, данные в разрезе мест поставки (вся страна, регионы, города, районы)</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="areaCode" type="tns:tShortName"> <xs:annotation> <xs:documentation>Код зоны поставки</xs:documentation> </xs:annotation> </xs:element> <xs:element name="deliveryPlaces" type="tns:tDeliveryPlaceType" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Условия поставки в разрезе мест поставки (вся страна, регионы, города, районы)</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="offers" type="tns:offerType" maxOccurs="1000"> <xs:annotation> <xs:documentation>Предложение ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="sellerRef" type="tns:tSupplierRefType"> <xs:annotation> <xs:documentation>Ссылка на данные продавца</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="confirmationType"> <xs:annotation> <xs:documentation>Тип элемента: Подтверждение получения пакета</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="createDateTime"> <xs:annotation> <xs:documentation>Дата-время формирования подтверждения</xs:documentation> </xs:annotation> </xs:element> <xs:element name="violations" type="tns:tViolationType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Выявленные в процессе обработки нарушения и ошибки</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="contactType"> <xs:annotation> <xs:documentation>Тип: контактные данные</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="person" type="tns:tContactPersonType" minOccurs="0"> <xs:annotation> <xs:documentation>Контактная информация</xs:documentation> </xs:annotation> </xs:element> <xs:element name="email" type="tns:tShortName"> <xs:annotation> <xs:documentation>e-mail адрес контактного лица</xs:documentation> </xs:annotation> </xs:element> <xs:element name="phone" type="tns:tShortName" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Телефон контактного лица</xs:documentation> </xs:annotation> </xs:element> <xs:element name="fax" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Факс контактного лица</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="requestResultType"> <xs:annotation> <xs:documentation>Тип: Запрос результата обработки</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="eCommerce" type="tns:eCommerceType"> <xs:annotation> <xs:documentation>eCommerce система</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="offerRequestStatusType"> <xs:annotation> <xs:documentation>Тип: Запрос результата валидации предложения ТРУ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="code" type="tns:tShortName"> <xs:annotation> <xs:documentation>Внешний код предложения ТРУ</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="onlineOrderListType"> <xs:annotation> <xs:documentation>Тип элемента: Набор текущих закупкочных сессий</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="createDate" type="xs:dateTime"> <xs:annotation> <xs:documentation>Дата-время формирования списка</xs:documentation> </xs:annotation> </xs:element> <xs:element name="orders" type="tns:orderInfoType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Набор текущих закупочных сессий</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="requestOrderType"> <xs:annotation> <xs:documentation>Тип: Запрос данных закупочной сессии</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="OrderNumber" type="tns:tShortName"> <xs:annotation> <xs:documentation>Номер закупочной сессии</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="productInfoType"> <xs:sequence> <xs:element name="sequenceNumber" type="xs:byte"> <xs:annotation> <xs:documentation>Порядковый номер позиции</xs:documentation> </xs:annotation> </xs:element> <xs:element name="EATofferNumber" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Номер ТРУ ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="EATClassifierRefCode" type="tns:tShortName"> <xs:annotation> <xs:documentation>Код категории классификатора ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="name" type="tns:tLongName"> <xs:annotation> <xs:documentation>Полное наименование товара (работ, услуг) </xs:documentation> </xs:annotation> </xs:element> <xs:element name="requirements" type="tns:tLongName" minOccurs="0"> <xs:annotation> <xs:documentation>Требование к товарам (работам, услугам)</xs:documentation> </xs:annotation> </xs:element> <xs:element name="OKEI" type="tns:tOKEIType"> <xs:annotation> <xs:documentation>Единица измерения</xs:documentation> </xs:annotation> </xs:element> <xs:element name="OKPD" type="tns:tOKPD2Type"> <xs:annotation> <xs:documentation>ОКПД</xs:documentation> </xs:annotation> </xs:element> <xs:element name="features" type="tns:tExtraFeatureType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Характеристики товара, работы, услуги</xs:documentation> </xs:annotation> </xs:element> <xs:element name="availableVolume" type="xs:decimal"> <xs:annotation> <xs:documentation>Общее количество единиц товара\ Общий объем работы (услуги), предлагаемой к выполнению. Для услуг указываем 1.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="images" type="tns:tImageRefType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Изображения товара, </xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <!--Размещение ТРУ--> <xs:complexType name="tPriceType"> <xs:sequence> <xs:element name="price" type="tns:tPrice"> <xs:annotation> <xs:documentation>Цена за единицу с НДС</xs:documentation> </xs:annotation> </xs:element> <xs:element name="nds" type="tns:tNdsEnumType"> <xs:annotation> <xs:documentation>Вид НДС: none - Не облагается, 0 - 0%, 10 - 10%, 18 - 18%, 20 - 20%</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="productExtraType"> <xs:annotation> <xs:documentation>Тип: Товар, работа, услуга с указанием производителя, модели, торговой марки. Содержит уточнение характеристик шаблона описания ТРУ и дополнительные характеристики</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="name" type="tns:tShortName"> <xs:annotation> <xs:documentation>Наименование товара, работы услуги</xs:documentation> </xs:annotation> </xs:element> <xs:element name="catalogPatternRef" type="tns:tPatternRefType"> <xs:annotation> <xs:documentation>Ссылка на шаблон описания ТРУ из классификатора ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extraFeatures" type="tns:tExtraFeatureType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Перечень значений дополнительных характеристик, не указанных в наборе характеристик шаблона описания ТРУ</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="productNewType"> <xs:annotation> <xs:documentation>Тип: Товар, работа, услуга с указанием производителя, модели, торговой марки. Содержит уточнение характеристик шаблона описания ТРУ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="name" type="tns:tShortName"> <xs:annotation> <xs:documentation>Наименование товара, работы услуги</xs:documentation> </xs:annotation> </xs:element> <xs:element name="catalogCategoryRef" type="tns:tCatalogCategoryRefType"> <xs:annotation> <xs:documentation>Ссылка на категорию классификатора ЕАТ, к которой относится добавляемый ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="OKPD2" type="tns:tOKPD2Type"> <xs:annotation> <xs:documentation>Классификация по ОКПД2</xs:documentation> </xs:annotation> </xs:element> <xs:element name="kind" type="tns:tPatternKindType"> <xs:annotation> <xs:documentation>Вид шаблона описания ТРУ: 1 - товар; 2 - работа, 3 - услуга.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="OKEI" type="tns:tOKEIType" minOccurs="0"> <xs:annotation> <xs:documentation>Единица измерения колдичества товара, работы, услуги, указывается для измеримых товаров/работ/услуг. Ссылка на классификатор ОКЕИ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Features" type="tns:tExtraFeatureType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Перечень характеристик</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="offerTypeAdditional"> <xs:annotation> <xs:documentation>Дополнительная информация ТРУ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="availableVolume" type="xs:decimal" minOccurs="0"> <xs:annotation> <xs:documentation>Общее количество единиц товара, предлагаемых к поставке \ Общий объем работы (услуги), предлагаемой к выполнению (оказанию). Для услуг указываем 1.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="priceInfo" type="tns:tPriceType" minOccurs="0"> <xs:annotation> <xs:documentation>Информация о цене </xs:documentation> </xs:annotation> </xs:element> <xs:element name="images" type="tns:tImageRefType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Изображения товара, максимальное количество - 10. Максимальный размер каждого по большей стороне - 3500 пиккселей, минимальный - 250. Допустимы разрешения jpg, jpeg, png</xs:documentation> </xs:annotation> </xs:element> <xs:element name="tradeName" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Торговое наименование</xs:documentation> </xs:annotation> </xs:element> <xs:element name="deliveryAreaCode" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Код зоны поставки</xs:documentation> </xs:annotation> </xs:element> <xs:element name="offerExpireDate" type="xs:date" minOccurs="0"> <xs:annotation> <xs:documentation>Дата-время до которого актуально данное предложение ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="signInfo" type="tns:tSignType" minOccurs="0"> <xs:annotation> <xs:documentation>Данные подписи</xs:documentation> </xs:annotation> </xs:element> <xs:element name="accordanceDocuments" type="tns:tAccordanceDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документ, подтверждающий соответствие требованиям по валидации товаров на ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="documents" type="tns:tDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документы</xs:documentation> </xs:annotation> </xs:element> <xs:element name="manufacturerInfo" type="tns:tManufacturerType" minOccurs="0"> <xs:annotation> <xs:documentation>Данные производителя товара, работы услуги</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="offerType"> <xs:annotation> <xs:documentation>Тип: Оферта продавца, поставщика</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="offerCode" type="tns:tShortName"> <xs:annotation> <xs:documentation>Код предложения ТРУ поставщика </xs:documentation> </xs:annotation> </xs:element> <xs:element name="productPatternInfo" type="tns:productExtraType"> <xs:annotation> <xs:documentation>Данные товара, работы, услуги, характеристики должны совпадать с характеристиками из набора характеристик категории шаблона описания ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extras"> <xs:annotation> <xs:documentation>Дополнительная информация</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:restriction base="tns:offerTypeAdditional"> <xs:sequence> <xs:element name="availableVolume" type="xs:decimal"> <xs:annotation> <xs:documentation>Общее количество единиц товара, предлагаемых к поставке \ Общий объем работы (услуги), предлагаемой к выполнению (оказанию). Для услуг указываем 1.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="priceInfo" type="tns:tPriceType"> <xs:annotation> <xs:documentation>Информация о цене </xs:documentation> </xs:annotation> </xs:element> <xs:element name="images" type="tns:tImageRefType" maxOccurs="10"> <xs:annotation> <xs:documentation>Изображения товара, максимальное количество - 10. Максимальный размер каждого по большей стороне - 3500 пиккселей, минимальный - 250. Допустимы разрешения jpg, jpeg, png</xs:documentation> </xs:annotation> </xs:element> <xs:element name="tradeName" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Торговое наименование</xs:documentation> </xs:annotation> </xs:element> <xs:element name="deliveryAreaCode" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Код зоны поставки</xs:documentation> </xs:annotation> </xs:element> <xs:element name="offerExpireDate" type="xs:date" minOccurs="0"> <xs:annotation> <xs:documentation>Дата-время до которого актуально данное предложение ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="signInfo" type="tns:tSignType" minOccurs="0"> <xs:annotation> <xs:documentation>Данные подписи</xs:documentation> </xs:annotation> </xs:element> <xs:element name="accordanceDocuments" type="tns:tAccordanceDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документ, подтверждающий соответствие требованиям по валидации товаров на ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="documents" type="tns:tDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документы</xs:documentation> </xs:annotation> </xs:element> <xs:element name="manufacturerInfo" type="tns:tManufacturerType" minOccurs="0"> <xs:annotation> <xs:documentation>Данные производителя товара, работы услуги</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="offerChangesType"> <xs:annotation> <xs:documentation>Изменение дополнительных данных ТРУ</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="offerCode" type="tns:tShortName"> <xs:annotation> <xs:documentation>Код предложения ТРУ поставщика </xs:documentation> </xs:annotation> </xs:element> <xs:element name="isArchiv" type="xs:boolean" minOccurs="0"> <xs:annotation> <xs:documentation>Признак перевода предложения в архив (для обеспечения возможности перевода в архив и восстановления из архива)</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extras"> <xs:complexType> <xs:complexContent> <xs:restriction base="tns:offerTypeAdditional"> <xs:sequence> <xs:element name="availableVolume" type="xs:decimal" minOccurs="0"> <xs:annotation> <xs:documentation>Общее количество единиц товара, предлагаемых к поставке \ Общий объем работы (услуги), предлагаемой к выполнению (оказанию). Для услуг указываем 1.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="priceInfo" type="tns:tPriceType" minOccurs="0"> <xs:annotation> <xs:documentation>Информация о цене </xs:documentation> </xs:annotation> </xs:element> <xs:element name="images" type="tns:tImageRefType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Изображения товара, максимальное количество - 10. Максимальный размер каждого по большей стороне - 3500 пиккселей, минимальный - 250. Допустимы разрешения jpg, jpeg, png</xs:documentation> </xs:annotation> </xs:element> <xs:element name="tradeName" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Торговое наименование</xs:documentation> </xs:annotation> </xs:element> <xs:element name="offerExpireDate" type="xs:date" minOccurs="0"> <xs:annotation> <xs:documentation>Дата-время до которого актуально данное предложение ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="accordanceDocuments" type="tns:tAccordanceDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документ, подтверждающий соответствие требованиям по валидации товаров на ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="documents" type="tns:tDocumentType" minOccurs="0" maxOccurs="10"> <xs:annotation> <xs:documentation>Документы</xs:documentation> </xs:annotation> </xs:element> <xs:element name="manufacturerInfo" type="tns:tManufacturerType" minOccurs="0"> <xs:annotation> <xs:documentation>Данные производителя товара, работы услуги</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <!--Закупочная сессия--> <xs:complexType name="OrderNotificationType"> <xs:annotation> <xs:documentation>Краткие данные закупочной сессии</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="OrderNumber" type="tns:tShortName"> <xs:annotation> <xs:documentation>Номер закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="startDate" type="xs:dateTime"> <xs:annotation> <xs:documentation>Дата-время старта закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="orderExpireDate" type="xs:dateTime"> <xs:annotation> <xs:documentation>Дата-время окончания закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="typePurchase" type="tns:tShortName"> <xs:annotation> <xs:documentation>Тип закупки</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Product" type="tns:productInfoType" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Перечень товаров, работ услуг</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Customer" type="tns:CustomerType"> <xs:annotation> <xs:documentation>Информация о покупателе</xs:documentation> </xs:annotation> </xs:element> <xs:element name="maxOrderCost" type="tns:tPrice"> <xs:annotation> <xs:documentation>Стартовая цена, руб (с учетом всех накладных расходов, в том числе НДС)</xs:documentation> </xs:annotation> </xs:element> <xs:element name="PaymentDetails" type="tns:PaymentDetailsType"> <xs:annotation> <xs:documentation>Сведения об оплате</xs:documentation> </xs:annotation> </xs:element> <xs:element name="DeliveryAddress" type="tns:OrderAddressType"> <xs:annotation> <xs:documentation>Адрес доставки товара (выполнения работ, оказания услуг)/самовывоза</xs:documentation> </xs:annotation> </xs:element> <xs:element name="DeliveryDate" type="xs:date"> <xs:annotation> <xs:documentation>Максимальный срок поставки товаров (выполнения работ, оказания услуг)</xs:documentation> </xs:annotation> </xs:element> <xs:element name="DeliverySchedule" type="tns:tLongName" minOccurs="0"> <xs:annotation> <xs:documentation>График поставки товаров (выполнения работ, оказания услуг)</xs:documentation> </xs:annotation> </xs:element> <xs:element name="WWWReference" type="tns:tLongName"> <xs:annotation> <xs:documentation>Ссылка на карточку закупочной сессии на ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="planDateConclusion" type="xs:date"> <xs:annotation> <xs:documentation>Планируемая дата заключения договора</xs:documentation> </xs:annotation> </xs:element> <xs:element name="infoTermination" type="tns:tLongName" minOccurs="0"> <xs:annotation> <xs:documentation>Информация о возможности и случаях одностороннего расторжения сделки в соответствии с действующим законодательством Российской Федерации</xs:documentation> </xs:annotation> </xs:element> <xs:element name="RNP44Flag" type="tns:tYesNo"> <xs:annotation> <xs:documentation>Участником закупочной сессии не может быть лицо, информация о котором включена в Реестр недобросовестных поставщиков 44-ФЗ</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="OrderNotificationFullType"> <xs:annotation> <xs:documentation>Данные закупочной сессии</xs:documentation> </xs:annotation> <xs:complexContent> <xs:extension base="tns:OrderNotificationType"> <xs:sequence> <xs:element name="PriceTrends" type="tns:tOfferType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Динамика предложений</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extNumber" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Внешний код закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="supplierLicense" type="xs:boolean" minOccurs="0"> <xs:annotation> <xs:documentation>Флаг необходимости указания данных лицензии поставщика</xs:documentation> </xs:annotation> </xs:element> <xs:element name="agrementDraft" type="tns:tFileRefType" minOccurs="0"> <xs:annotation> <xs:documentation>Файл проекта договора</xs:documentation> </xs:annotation> </xs:element> <xs:element name="attachments" type="tns:tFileRefType" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Файлы, приложенные к объявлению о закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="notificationPrintForm" type="tns:tFileRefType" minOccurs="0"> <xs:annotation> <xs:documentation>Печатная форма объявления о закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="medicalCommissionDate" type="xs:date" minOccurs="0"> <xs:annotation> <xs:documentation>Дата решения врачебной комиссии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="medicalCommissionNumber" type="tns:tShortName" minOccurs="0"> <xs:annotation> <xs:documentation>Номер решения врачебной комиссии</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="PaymentDetailsType"> <xs:annotation> <xs:documentation>Сведения об оплате</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="PaymentType" type="tns:tShortName"> <xs:annotation> <xs:documentation>Вид оплаты</xs:documentation> </xs:annotation> </xs:element> <xs:element name="PaymentTerms" type="tns:tShortName"> <xs:annotation> <xs:documentation>Условия оплаты</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Prepay" type="tns:tSum" minOccurs="0"> <xs:annotation> <xs:documentation>Размер аванса</xs:documentation> </xs:annotation> </xs:element> <xs:choice> <xs:element name="PaymentDeadlineDate" type="xs:date"> <xs:annotation> <xs:documentation>Крайний срок оплаты, дата</xs:documentation> </xs:annotation> </xs:element> <xs:element name="PaymentDeadlineInterval" type="xs:int"> <xs:annotation> <xs:documentation>Крайний срок оплаты, Календарных дней с момента исполнения договора</xs:documentation> </xs:annotation> </xs:element> </xs:choice> </xs:sequence> </xs:complexType> <xs:complexType name="orderInfoType"> <xs:annotation> <xs:documentation>Тип элемента: Информация об объявлении закупочной сессии</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="regNumber" type="tns:tShortName"> <xs:annotation> <xs:documentation>Номер закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="startTime" type="xs:dateTime"> <xs:annotation> <xs:documentation>Дата-время старта закупочной сесссии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="expireTime" type="xs:dateTime"> <xs:annotation> <xs:documentation>Дата-время окончания закупочной сесссии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="catalogCategoryRef" type="tns:tCatalogCategoryRefType"> <xs:annotation> <xs:documentation>Ссылка на категорию классификатора ЕАТ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="deliveryPlace" type="tns:OrderAddressType"> <xs:annotation> <xs:documentation>Место поставки</xs:documentation> </xs:annotation> </xs:element> |
|||
3
SeriyP
10.07.19
✎
16:03
|
(1) eatObjects.xsd
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="http://agregatoreat.ru/eat/object-types/" xmlns:eat="http://agregatoreat.ru/eat/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://agregatoreat.ru/eat/object-types/"> <xs:import namespace="http://agregatoreat.ru/eat/" schemaLocation="eatObjectTypes.xsd"/> <xs:element name="eatCategorySet" type="eat:categorySetType"> <xs:annotation> <xs:documentation>Набор категорий классификатора ТРУ</xs:documentation> </xs:annotation> </xs:element> <xs:element name="eatCategoryCatalog" type="eat:catalogCategoryType"> <xs:annotation> <xs:documentation>Набор позиций классификатора товаров, работ, услуг ЕАТ по одной категории </xs:documentation> </xs:annotation> </xs:element> <!--Элемент набора предложений ТРУ--> <xs:element name="requestOfferSet"> <xs:annotation> <xs:documentation>Передача набора предложений ТРУ поставщиков е-commmerce системы</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:extension base="eat:offerSetType"> <xs:sequence> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Agent" type="eat:tSupplierRefType" minOccurs="0"/> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:unique name="uniqueOfferSetCode"> <xs:selector xpath="eat:offers"/> <xs:field xpath="eat:offerCode"/> </xs:unique> <xs:key name="keyAreaCode"> <xs:selector xpath="eat:deliveryAreas"/> <xs:field xpath="eat:areaCode"/> </xs:key> <xs:keyref name="keyrefAreaCode" refer="keyAreaCode"> <xs:selector xpath="eat:offers"/> <xs:field xpath="eat:extras/eat:deliveryAreaCode"/> </xs:keyref> </xs:element> <!--Элемент измнения дополнительных характеричтик ТРУ--> <xs:element name="requestOfferChange"> <xs:annotation> <xs:documentation>Изменение дополнительных характеристик ТРУ поставщиками</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="OfferChanges" type="eat:offerChangesType" maxOccurs="1000"/> <xs:element name="sellerRef" type="eat:tSupplierRefType"> <xs:annotation> <xs:documentation>Ссылка на данные продавца</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Agent" type="eat:tSupplierRefType" minOccurs="0"/> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:complexType> <xs:unique name="uniqueOfferChangeCode"> <xs:selector xpath="OfferChanges"/> <xs:field xpath="eat:offerCode"/> </xs:unique> </xs:element> <!--Элементы перечня закупочных сессий--> <xs:element name="requestOrderList"> <xs:annotation> <xs:documentation>Запрос списка действующих объявлений закупочных сессий</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:complexType> </xs:element> <!--Элементы подробной информации о закупочной сессии--> <xs:element name="requestOrderNotification"> <xs:annotation> <xs:documentation>Запрос данных закупочной сессии</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:extension base="eat:requestOrderType"> <xs:sequence> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <!--Элемент ценового предложения закупочной сессии--> <xs:element name="requestOrderProposal"> <xs:annotation> <xs:documentation>Ценовое предложение по закупочной сессии</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="referenceOrderInfo" type="eat:OrderNotificationType"> <xs:annotation> <xs:documentation>Данные закупочной сессии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="OrderProposalInfo" type="eat:OrderProposalType"> <xs:annotation> <xs:documentation>Ценовое предложение</xs:documentation> </xs:annotation> </xs:element> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Agent" type="eat:tSupplierRefType" minOccurs="0"/> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:complexType> <xs:key name="keySequenceNumber"> <xs:selector xpath="referenceOrderInfo/eat:Product"/> <xs:field xpath="eat:sequenceNumber"/> </xs:key> <xs:keyref name="keyrefSequenceNumber" refer="keySequenceNumber"> <xs:selector xpath="OrderProposalInfo/eat:productRef"/> <xs:field xpath="eat:refSequenceNumber"/> </xs:keyref> </xs:element> <!--Элементы протокола закупочной сессии--> <xs:element name="requestOrderProtocol"> <xs:annotation> <xs:documentation>Запрос итогового протокола по закупочной сессии</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:extension base="eat:requestOrderType"> <xs:sequence> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <!--Элементы, применяемые в асинхронном обмене--> <xs:element name="responseConfirmation"> <xs:annotation> <xs:documentation>Квитанция приема запроса</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:extension base="eat:confirmationType"> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="requestProcessingResult"> <xs:annotation> <xs:documentation>Запрос результата обработки</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="extSystem" type="eat:tExtSystemNumber"> <xs:annotation> <xs:documentation>Внешняя система</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:complexType> </xs:element> <xs:element name="responseProcessingResult"> <xs:annotation> <xs:documentation>Результат обработки</xs:documentation> </xs:annotation> <xs:complexType> <xs:complexContent> <xs:extension base="eat:AsyncProcessingResult"> <xs:choice minOccurs="0"> <xs:element name="ProcessingError" type="eat:tViolationType" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Ошибки обработки запроса</xs:documentation> </xs:annotation> </xs:element> <xs:element name="ProcessingResults" type="eat:ProcessingResult" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Результат обработки бизнес-данных</xs:documentation> </xs:annotation> </xs:element> <xs:element name="responseOrderList" type="eat:onlineOrderListType"> <xs:annotation> <xs:documentation>Список активных закупочных сессий</xs:documentation> </xs:annotation> </xs:element> <xs:element name="responseOrderNotification" type="eat:OrderNotificationFullType"> <xs:annotation> <xs:documentation>Данные закупочной сессиии</xs:documentation> </xs:annotation> </xs:element> <xs:element name="responseOrderProtocol" type="eat:OrderProtocolType"> <xs:annotation> <xs:documentation>Итоговый протокол по закупочной сессии</xs:documentation> </xs:annotation> </xs:element> </xs:choice> <xs:attribute ref="eat:Version" use="required"/> <xs:attribute ref="eat:RequestUID" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:unique name="uniqueProcessingResult"> <xs:selector xpath="ProcessingResults"/> <xs:field xpath="eat:offerCode"/> </xs:unique> <xs:unique name="uniqueOrders"> <xs:selector xpath="responseOrderList/eat:orders"/> <xs:field xpath="eat:regNumber"/> </xs:unique> </xs:element> <!--Элемент ошибки обработки--> <xs:element name="responseViolation" type="eat:tViolationType"> <xs:annotation> <xs:documentation>Сообщение об ошибке</xs:documentation> </xs:annotation> </xs:element> </xs:schema> |
|||
4
Cyberhawk
10.07.19
✎
16:04
|
Какая наглость
|
|||
5
SeriyP
10.07.19
✎
16:07
|
(4) Какая?
|
|||
6
SeriyP
10.07.19
✎
16:13
|
Схемы можно скачать по первой ссылке в первом посте
|
|||
7
Cyberhawk
10.07.19
✎
16:40
|
Тебе нужно создать WSОпределения на основании пути к одному первому файлику (т.к. второй импортируется по имени, указанном в первом). Только второй должен лежать в том же каталоге, что и первый.
|
|||
8
Cyberhawk
10.07.19
✎
16:40
|
На основании определения создашь WSПрокси, из него уже фабрику возьмешь. Должно взлететь.
|
|||
9
SeriyP
10.07.19
✎
18:11
|
(7) Создаю:
Определения = Новый WSОпределения("file:///D:/Berezka/Skhema_EAT_1.11.0.1/eatObjects.xsd") Как создать WSПрокси? |
|||
10
Cyberhawk
11.07.19
✎
07:53
|
СП в помощь
|
|||
11
SeriyP
11.07.19
✎
09:44
|
не пойму, где взять <URIПространстваИменСервиса> , <ИмяСервиса>, <ИмяТочкиПодключения> ?
|
|||
12
SeriyP
11.07.19
✎
10:44
|
Определения.Сервисы.Количество() = 0 , т.е. сервисов нет, соответственно, и данных о них тоже нет.
Как побороть? |
|||
13
Cyberhawk
11.07.19
✎
11:22
|
Ну так файлик с wsdl-описанием-то тоже нужен. Одной (двумя) схемами не обойдешься.
|
|||
14
Cyberhawk
11.07.19
✎
11:43
|
А, забей, 1С не умеет xs:import
|
|||
15
Cyberhawk
11.07.19
✎
11:45
|
Я спутал с xsd:import в wsdl-файле, где можно указывать внешнюю xsd-схему. А тут в одну схему импортируется другая.
|
|||
16
SeriyP
11.07.19
✎
14:32
|
тогда возвращаюсь к (0).
Как "связать в одну" две xsd-схемы? |
|||
17
SeriyP
11.07.19
✎
17:19
|
ап
|
|||
18
SeriyP
12.07.19
✎
09:18
|
ап
|
|||
19
Cyberhawk
12.07.19
✎
14:07
|
(16) Подменить пространство имен и его префикс в любой из них
|
|||
20
PaulBC
29.07.19
✎
09:08
|
(0) Столкнулся с той же проблемой с этой же березкой. Удалось победить?
|
|||
21
SeriyP
30.07.19
✎
10:34
|
(20) пока отложил в долгий ящик. Сама площадка еще "сырая" и не понятная.
|
|||
22
Успехов
30.07.19
✎
10:38
|
У меня такое было, долго бился, пока поле в схеме не переименовал. Скорее всего это какой-то глюк в платформе.
|
|||
23
Cyberhawk
30.07.19
✎
10:55
|
(22) Ты явно попутал
|
|||
24
Успехов
30.07.19
✎
11:01
|
(23) Нет. Перименовал поле в схеме - и фабрика по двум схемам стала создаваться.
|
|||
25
SeriyP
30.07.19
✎
11:07
|
(24) признавайтесь, какое поле?
|
|||
26
Успехов
30.07.19
✎
11:26
|
(25) На которое ошибка выпадала. Но это были совсем другие схемы, не Берёзка.
|
|||
27
Cyberhawk
30.07.19
✎
11:59
|
(24) Тут другое
|
|||
28
Успехов
30.07.19
✎
12:05
|
(27) Возможно, с кодировкой какие-то проблемы, некогда было разбираться, переименование полей помогло - и ладно.
|
|||
29
PaulBC
31.07.19
✎
02:08
|
Поменял пространства имен в схемах. Теперь в eatObjects.xsd:
<xs:schema xmlns="http://agregatoreat.ru/eat/" xmlns:eat="http://agregatoreat.ru/eat/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://agregatoreat.ru/eat/"> <xs:import namespace="http://agregatoreat.ru/eat/object-types/" schemaLocation="eatObjectTypes.xsd"/> в eatObjectTypes.xsd: <xs:schema xmlns:tns="http://agregatoreat.ru/eat/object-types/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://agregatoreat.ru/eat/object-types/" elementFormDefault="qualified" attributeFormDefault="unqualified"> Фабрика стала создаваться. Бьюсь дальше. |
|||
30
SeriyP
31.07.19
✎
13:32
|
(29) фабрика-то создается, но вот что делать с типами? Не видит она их почему-то.
|
|||
31
PiotrLoginov
31.07.19
✎
17:38
|
(30) ну как "не видит"? в пакетах фабрики посмотри, какое содержимое
|
|||
32
SeriyP
31.07.19
✎
18:16
|
(31) МояФабрика.Тип("http://agregatoreat.ru/eat/object-types/", "requestOfferSet") возвращает "Неопределено". Я это имею ввиду. Как создать объект без типа?
|
|||
33
PiotrLoginov
31.07.19
✎
20:13
|
(32) Похоже, в приведенном примере синтаксическая ошибка. Но дело даже не в этом. Скорее, первый параметр метода Тип() некорректный. Говорил же, обратись к пакетам фабрики.
ПакетСоСвойствами = МояФабрика.Пакеты[0]; ТипОбъектаCategoryCatalog = ПакетСоСвойствами.Получить("eatCategoryCatalog"); |
|||
34
PaulBC
01.08.19
✎
03:36
|
(32) Тип набора предложений - offerSetType. Он создается и заполняется нормально. Теперь непонятно, как его прикрутить к requestOfferSet. По примеру (33) получилось создать объект requestOfferSet, но назначить ему набор предложений пока не получается.
|
|||
35
PaulBC
02.08.19
✎
06:16
|
(0) Если еще интересно, все оказалось проще:
в eatObjectTypes.xsd у атрибута Version не указан тип меняешь строку <xs:attribute name="Version" fixed="1.11.0"> на <xs:attribute name="Version" type="xs:string" fixed="1.11.0"> и все. Все создается и заполняется. Тип пакета предложений: ФабрикаЕАТ.Пакеты.Получить("http://agregatoreat.ru/eat/object-types/").КорневыеСвойства.Получить("requestOfferSet").Тип |
|||
36
Cyberhawk
02.08.19
✎
09:21
|
Ну, собственно, очередное подтверждение обособленной реализации ХМЛ-схем в 1С. На какой-то своей волне. Ибо сторонние валидаторы и генераторы примеров хавают сабж из коробки.
|
|||
37
Успехов
02.08.19
✎
09:27
|
(36) Да, много уже примеров валидных схем, которые 1С не кушает :((
|
|||
38
SeriyP
02.08.19
✎
12:21
|
(35) Спасибо, я не смог до этого додуматься. А ведь 1с-ка ругалась на этот атрибут:
Глобальное свойство '{http://agregatoreat.ru/eat/}Version' отсутствует или не определено |
|||
39
SeriyP
06.08.19
✎
11:52
|
(35) Получилось что-то из этих схем сделать?
|
|||
40
PaulBC
07.08.19
✎
03:23
|
(39) Сделал выгрузку предложений в ЕАТ. Правда, не получается отправить - возвращает каждый раз ошибку авторизации. Написал в поддержку, пока молчат. Я так подозреваю, нужно еще подавать заявку на подключение нашей ИС к ЕАТ, хотя в инструкции по интеграции об этом ни слова.
|
|||
41
SeriyP
07.08.19
✎
11:05
|
(40) а xml правильно создается из Фабрики? У меня почему-то не добавляются корневые атрибуты Version и RequestUID при выполнении ФабрикаХДТО.ЗаписатьXML
|
|||
42
PaulBC
08.08.19
✎
06:01
|
(41) Нет. Вообще пришлось все элементы отдельно записывать:
ЗаписьХМЛ = Новый ЗаписьXML; ЗаписьХМЛ.УстановитьСтроку("UTF-8"); ЗаписьХМЛ.ЗаписатьОбъявлениеXML(); ЗаписьХМЛ.ЗаписатьНачалоЭлемента("requestOfferSet", "http://agregatoreat.ru/eat/object-types/"); ЗаписьХМЛ.ЗаписатьСоответствиеПространстваИмен("eat","http://agregatoreat.ru/eat/"); ЗаписьХМЛ.ЗаписатьСоответствиеПространстваИмен("n1", "http://agregatoreat.ru/eat/object-types/"); ЗаписьХМЛ.ЗаписатьСоответствиеПространстваИмен("xsi", "http://www.w3.org/2001/XMLSchema-instance"); ФабрикаЕАТ.ЗаписатьXML(ЗаписьХМЛ, ФабрикаЕАТ.Создать(ФабрикаЕАТ.Тип("http://agregatoreat.ru/eat/", "tShortName"), ПакетПредложенийЕАТ.Version), "Version",, ФормаXML.Атрибут); ФабрикаЕАТ.ЗаписатьXML(ЗаписьХМЛ, ФабрикаЕАТ.Создать(ФабрикаЕАТ.Тип("http://agregatoreat.ru/eat/", "tGUID"), ПакетПредложенийЕАТ.RequestUID), "RequestUID",, ФормаXML.Атрибут); Для Каждого Предложение Из ПакетПредложенийЕАТ.offers Цикл ФабрикаЕАТ.ЗаписатьXML(ЗаписьХМЛ, Предложение, "offers",,,); КонецЦикла; ФабрикаЕАТ.ЗаписатьXML(ЗаписьХМЛ, ПакетПредложенийЕАТ.sellerRef, "sellerRef"); ФабрикаЕАТ.ЗаписатьXML(ЗаписьХМЛ, ФабрикаЕАТ.Создать(ТипВнешнийНомер, ПакетПредложенийЕАТ.extSystem), "extSystem",,,); ЗаписьХМЛ.ЗаписатьКонецЭлемента(); При этом extSystem пишется с префиксом eat и, пока его не уберешь, отправка возвращает ошибку валидации xml. А поддержка так и не ответила, с ошибкой авторизации разобрался сам. |
|||
43
SeriyP
08.08.19
✎
09:26
|
(42) примерно к такому выводу и я пришел, т.к. нормально в 1С работать с этими схемами не получается, проще вручную все делать по их примерам.
|
|||
44
vis_tmp
14.08.19
✎
08:51
|
(42)Можешь поделиться обработкой выгрузки и отправки?
|
Форум | Правила | Описание | Объявления | Секции | Поиск | Книга знаний | Вики-миста |