2012-09-13 3 views
1

다음 wsdl을 사용하여 Visual Studio 2010에 서비스 참조를 추가했습니다. 성공적으로 추가되었습니다. 이것은 스키마 xsd 파일에서 생성 된 wsdl입니다. 실제 서비스 코드가 아닙니다. 왜 이것이 Reference.cs 파일에서 필요한 클래스와 메서드를 생성하지 못하는가?Reference.cs 파일에서 ClientBase 클래스를 사용할 수 없습니다.

<?xml version="1.0" encoding="utf-8"?> 
<definitions xmlns:import0="urn:thinktecture-com:demos:restaurantservice:messages:v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:import1="urn:thinktecture-com:demos:restaurantservice:data:v1" xmlns:tns="urn:lijo:demos:multiplyservice:calculation:v1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="CalculationService" targetNamespace="urn:lijo:demos:multiplyservice:calculation:v1" xmlns="http://schemas.xmlsoap.org/wsdl/"> 
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /> 
<types> 
<xsd:schema> 
    <xsd:import schemaLocation="C:\toolbox\LijosServiceApp\NewService\RestaurantMessages.xsd" namespace="urn:thinktecture-com:demos:restaurantservice:messages:v1" /> 
    <xsd:import schemaLocation="C:\toolbox\LijosServiceApp\NewService\RestaurantData.xsd" namespace="urn:thinktecture-com:demos:restaurantservice:data:v1" /> 
</xsd:schema> 
</types> 

<message name="getMultipliedIn"> 
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /> 
<part name="parameters" element="import0:getMultiplied" /> 
</message> 
<message name="getMultipliedOut"> 
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /> 
<part name="parameters" element="import0:getMultipliedResponse" /> 
</message> 

<portType name="CalculationServiceInterface"> 
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /> 
<operation name="getMultiplied"> 
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" /> 
    <input message="tns:getMultipliedIn" /> 
    <output message="tns:getMultipliedOut" /> 
</operation> 
</portType> 

<binding name="BasicHttpBinding_CalculationServiceInterface" type="tns:CalculationServiceInterface"> 

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> 

<operation name="getMultiplied"> 
    <soap:operation soapAction="urn:lijo:demos:multiplyservice:calculation:v1:getMultipliedIn" style="document" /> 
    <input> 
    <soap:body use="literal" /> 
    </input> 
    <output> 
    <soap:body use="literal" /> 
    </output> 
    </operation> 
    </binding> 
    <service name="CalculationServicePort"> 
<port name="CalculationServicePort" binding="tns:BasicHttpBinding_CalculationServiceInterface"> 
    <soap:address location="http://localhost/CalculationService" /> 
    </port> 
</service> 
</definitions> 

답변

관련 문제