Hi.
I am making an application using WCF. I replacing Old Web Service with WCF Service. It is need for me that new WCF Service will interoperable with old clients, which works with old Web Service.
Here example of WCF Service code and generated wsdl:WCF Service:
using
System;using
System.Collections.Generic;using
System.Text;using
System.ServiceModel;using
System.Runtime.Serialization;namespace
WCF_Add{
[ServiceContract(Name = "Probe1")]
public interface IService1
{
[OperationContract]
Double Add(Double dbl_One, Double dbl_Two);
}
public class service1 : IService1
{
public Double Add(Double dbl_One, Double dbl_Two)
{
return (dbl_One + dbl_Two);
}
}
WSDL:
< xml version="1.0" encoding="utf-8" >- <wsdlefinitions name="service1" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns
oap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns
oapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns
oap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
<xsd:import schemaLocation="http://localhost:8080/service1 xsd=xsd0" namespace="http://tempuri.org/" /><xsd:import schemaLocation="http://localhost:8080/service1 xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" /></xsdchema>
</wsdl:types><wsdlart name="parameters" element="tns:Add" />
</wsdl:message><wsdlart name="parameters" element="tns:AddResponse" />
</wsdl:message><wsdl:input wsaw:Action="http://tempuri.org/Probe1/Add" message="tnsrobe1_Add_InputMessage" />
<wsdlutput wsaw:Action="http://tempuri.org/Probe1/AddResponse" message="tns
robe1_Add_OutputMessage" />
</wsdlperation>
</wsdlortType>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" /></wsdl:binding><soap:address location="http://localhost:8080/service1" /></wsdlort>
</wsdlervice>
</wsdlefinitions>
I don't understand where definitions of tns:Add and tns:AddResponse in section <wsdl:types>.Please help!