powered by simpleCommunicator - 2.0.37     © 2025 Programmizd 02
Форумы / Delphi [игнор отключен] [закрыт для гостей] / wsdl import не видит xsd
5 сообщений из 5, страница 1 из 1
wsdl import не видит xsd
    #40093104
evgen29
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Здравствуйте! Пытаюсь импортировать SOAP сервис по wsdl в delphi7, импорт почему-то не видит методов:
Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Borland types; however, they could also
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:getPrescriptionsRequest - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:getPrescriptionsResponse - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:ERecipeServiceException - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:saleRegistrationRequest - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:saleRegistrationResponse - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:getRecipeRequest - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:getRecipeResponse - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:cancelRecipeRequest - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:cancelRecipeResponse - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:saleCancelRequest - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"
  // !:saleCancelResponse - "https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types"



даже если очистить тег TYPES результат тот же
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
<?xml version='1.0' encoding='UTF-8'?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:tns="https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService" 
			 xmlns:xsd="http://www.w3.org/2001/XMLSchema"  
			 targetNamespace="https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService"
             name="ERecipeService">	 
    <documentation>v1.1</documentation>
    <types>
        <xsd:schema>
            <xsd:import namespace="https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types" schemaLocation="service.xsd"/>
        </xsd:schema>
    </types>
...
</definitions>



файл во вложении.
...
Рейтинг: 0 / 0
wsdl import не видит xsd
    #40093105
evgen29
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
...
Рейтинг: 0 / 0
wsdl import не видит xsd
    #40093218
Фотография Exteris
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Delphi 7 довольно хреново иногда импортирует wsdl. Попробуйте версию посвежее.
...
Рейтинг: 0 / 0
wsdl import не видит xsd
    #40093286
Фотография Кроик Семён
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Exteris,

читая этот WSDL не понимаю, что, должен существовать файл (подозрительная ссылка!) https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types/service.xsd]https://test-api.mosmedzdrav.ru/LLO/v1/ERecipeService/ERecipeService/types/ service.xsd ???
но я его не могу открыть, нет прав. Может и Delphi так же не может
...
Рейтинг: 0 / 0
wsdl import не видит xsd
    #40093532
evgen29
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
данный сервис предоставляется по сертификату. Пришлось найти, где у них wsdl, скачать его и связанный xsd и переделать так, чтобы wsdl importer смог увидеть xsd и импортировать типы.

было:
Код: xml
1.
2.
3.
4.
5.
    <types>
        <xsd:schema elementFormDefault="qualified">
            <xsd:import namespace="http://emias2.gov.ru/business/eRecipeService/v1/types" schemaLocation="service.xsd"/>
        </xsd:schema>
    </types>



стало:
Код: xml
1.
    <import location="ERecipeService.xsd2.xsd" namespace="http://emias2.gov.ru/business/eRecipeService/v1/types"/>



видимо delphi 7 не понимает используемые теги xsd в wsdl import. Также пришлось немного подправить xsd и вынести один комплексный тип в отдельный элемент, а в двух местах поставить на него ссылку. И всё экспортировалось.
...
Рейтинг: 0 / 0
5 сообщений из 5, страница 1 из 1
Форумы / Delphi [игнор отключен] [закрыт для гостей] / wsdl import не видит xsd
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]