Включить тип схемы в файл WSDL

Я создал WSDL вручную, который имеет только одну операцию без входного параметра и без выходного параметра.

Я получаю следующую ошибку при попытке создать клиента из этого WSDL:

Невозможно импортировать wsdl: portType. Подробно: Возникла исключительная ситуация при выполнении расширения импорта WSDL: System.ServiceModel.Description.DataContractSerializerMessageContractImporter Ошибка: Схема с целевым пространством имен 'http://www.xmlns.mycompany.com/GAME/service/Associate/1.1/' невозможно найти. XPath to Error Источник: // wsdl: определения [@ targetNamespace = 'http://www.xmlns.mycompany.com/GAME/service/Associate/1.1/'] / wsdl: portType [@ name =' GAMEAssociateIntf '] C: \ toolbox \ BlueTest \ BloodRedTest \ BloodRedTest \ Service

types (для использования в клиенте) необходимо генерировать из XML, представленного в WSDL. Я думаю, что при добавлении Service Reference инструмент не может его создать из-за какой-то ошибки в XML.XSD похоже проблема.

Какие изменения необходимо внести в WSDL для создания прокси?

Примечание. Я пытаюсь включить типы xml, определенные в самом WSDL. [Мне не нужен отдельный файл для определения схемы]

WSDL

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="GAMEAssociate" 
         targetNamespace="http://www.xmlns.mycompany.com/GAME/service/Associate/1.1/"
         xmlns:tns="http://www.xmlns.mycompany.com/GAME/service/Associate/1.1/"
         xmlns="http://schemas.xmlsoap.org/wsdl/" 
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
         xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:wsp="http://www.w3.org/ns/ws-policy"
         >

<types>
<xsd:schema>
</xsd:schema>

<xsd:element name="myData">
  <xsd:complexType />
</xsd:element>

<xsd:element name="myDataResponse">
  <xsd:complexType />
</xsd:element>

</types>

<message name="getAllVicePresidentsRequest">
<part element="tns:myData" name="getAllVicePresidentsRequest"/>
</message>

<message name="getAllVicePresidentsResponse">
<part element="tns:myDataResponse" name="getAllVicePresidentsResponse"/>
</message>

<portType name="GAMEAssociateIntf">
<operation name="getAllVicePresidents">
  <input message="tns:getAllVicePresidentsRequest"/>
  <output message="tns:getAllVicePresidentsResponse"/>
</operation>
</portType>

<binding name="GAMEAssociateIntfBinding" type="tns:GAMEAssociateIntf">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="getAllVicePresidents">
  <soap:operation soapAction="http://www.xmlns.mycompany.com/GAME/wsdl/AssociateIntf/1.4/getAllVicePresidentsRequest"
                  style="document"/>
  <input>
    <soap:body use="literal"/>
  </input>
  <output>
    <soap:body use="literal"/>
  </output>

</operation>

</binding>

<service name="GAMEAssociate">
<port binding="tns:GAMEAssociateIntfBinding" name="GAMEAssociateSOAP">
  <soap:address location="http://localhost:8014/associateservice/GAMEAssociate.svc"/>
</port>
</service>

</definitions>

РЕКОМЕНДАЦИИ:

WSDL - без участия - лучшая практикаЧто означает эта ошибка WCF: «Предупреждение пользовательского инструмента: невозможно импортировать wsdl: portType»Написание контракта на веб-службу WSDL 1.1 вручнуюНаписание контракта - первые веб-сервисыгенерировать код сервера wcf из файлов wsdlКак получить входные и выходные имена WSDL, чтобы появитьсяВстроенная схемаРучной SOAP-запрос

Ответы на вопрос(3)

Ваш ответ на вопрос