1 <?xml version="1.0" encoding="utf-8"?>
2 <wsdl:definitions name="CalculatorService" targetNamespace="http://Microsoft.ServiceModel.Samples" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://Microsoft.ServiceModel.Samples" 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:soap12="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">
3 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_policy">
6 <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
10 <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
12 <sp:RequireDerivedKeys/>
17 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
18 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
19 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
20 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
21 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
22 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
23 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
32 <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
34 <sp:RequireDerivedKeys/>
36 </sp:SpnegoContextToken>
49 <sp:IncludeTimestamp/>
50 <sp:EncryptSignature/>
51 <sp:OnlySignEntireHeadersAndBody/>
53 </sp:SymmetricBinding>
56 <sp:MustSupportRefKeyIdentifier/>
57 <sp:MustSupportRefIssuerSerial/>
58 <sp:MustSupportRefThumbprint/>
59 <sp:MustSupportRefEncryptedKey/>
64 <sp:MustSupportIssuedTokens/>
65 <sp:RequireClientEntropy/>
66 <sp:RequireServerEntropy/>
72 </sp:SecureConversationToken>
85 <sp:IncludeTimestamp/>
86 <sp:EncryptSignature/>
87 <sp:OnlySignEntireHeadersAndBody/>
89 </sp:SymmetricBinding>
90 <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
92 <sp:MustSupportRefKeyIdentifier/>
93 <sp:MustSupportRefIssuerSerial/>
94 <sp:MustSupportRefThumbprint/>
95 <sp:MustSupportRefEncryptedKey/>
98 <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
100 <sp:MustSupportIssuedTokens/>
101 <sp:RequireClientEntropy/>
102 <sp:RequireServerEntropy/>
105 <wsaw:UsingAddressing/>
109 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Add_Input_policy">
112 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
114 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
115 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
116 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
117 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
118 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
119 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
120 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
122 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
128 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Add_output_policy">
131 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
133 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
134 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
135 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
136 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
137 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
138 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
139 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
141 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
147 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Subtract_Input_policy">
150 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
152 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
153 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
154 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
155 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
156 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
157 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
158 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
160 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
166 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Subtract_output_policy">
169 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
171 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
172 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
173 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
174 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
175 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
176 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
177 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
179 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
185 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Multiply_Input_policy">
188 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
190 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
191 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
192 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
193 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
194 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
195 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
196 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
198 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
204 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Multiply_output_policy">
207 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
209 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
210 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
211 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
212 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
213 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
214 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
215 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
217 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
223 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Divide_Input_policy">
226 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
228 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
229 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
230 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
231 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
232 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
233 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
234 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
236 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
242 <wsp:Policy wsu:Id="WSHttpBinding_ICalculator_Divide_output_policy">
245 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
247 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
248 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
249 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
250 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
251 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
252 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
253 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
255 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
262 <xsd:schema targetNamespace="http://Microsoft.ServiceModel.Samples/Imports">
263 <xsd:import schemaLocation="http://localhost/ServiceModelSamples/service.svc?xsd=xsd0" namespace="http://Microsoft.ServiceModel.Samples"/>
264 <xsd:import schemaLocation="http://localhost/ServiceModelSamples/service.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
267 <wsdl:message name="ICalculator_Add_InputMessage">
268 <wsdl:part name="parameters" element="tns:Add"/>
270 <wsdl:message name="ICalculator_Add_OutputMessage">
271 <wsdl:part name="parameters" element="tns:AddResponse"/>
273 <wsdl:message name="ICalculator_Subtract_InputMessage">
274 <wsdl:part name="parameters" element="tns:Subtract"/>
276 <wsdl:message name="ICalculator_Subtract_OutputMessage">
277 <wsdl:part name="parameters" element="tns:SubtractResponse"/>
279 <wsdl:message name="ICalculator_Multiply_InputMessage">
280 <wsdl:part name="parameters" element="tns:Multiply"/>
282 <wsdl:message name="ICalculator_Multiply_OutputMessage">
283 <wsdl:part name="parameters" element="tns:MultiplyResponse"/>
285 <wsdl:message name="ICalculator_Divide_InputMessage">
286 <wsdl:part name="parameters" element="tns:Divide"/>
288 <wsdl:message name="ICalculator_Divide_OutputMessage">
289 <wsdl:part name="parameters" element="tns:DivideResponse"/>
291 <wsdl:portType name="ICalculator">
292 <wsdl:operation name="Add">
293 <wsdl:input wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/Add" message="tns:ICalculator_Add_InputMessage"/>
294 <wsdl:output wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/AddResponse" message="tns:ICalculator_Add_OutputMessage"/>
296 <wsdl:operation name="Subtract">
297 <wsdl:input wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/Subtract" message="tns:ICalculator_Subtract_InputMessage"/>
298 <wsdl:output wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/SubtractResponse" message="tns:ICalculator_Subtract_OutputMessage"/>
300 <wsdl:operation name="Multiply">
301 <wsdl:input wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/Multiply" message="tns:ICalculator_Multiply_InputMessage"/>
302 <wsdl:output wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/MultiplyResponse" message="tns:ICalculator_Multiply_OutputMessage"/>
304 <wsdl:operation name="Divide">
305 <wsdl:input wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/Divide" message="tns:ICalculator_Divide_InputMessage"/>
306 <wsdl:output wsaw:Action="http://Microsoft.ServiceModel.Samples/ICalculator/DivideResponse" message="tns:ICalculator_Divide_OutputMessage"/>
309 <wsdl:binding name="WSHttpBinding_ICalculator" type="tns:ICalculator">
310 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_policy"/>
311 <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
312 <wsdl:operation name="Add">
313 <soap12:operation soapAction="http://Microsoft.ServiceModel.Samples/ICalculator/Add" style="document"/>
315 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Add_Input_policy"/>
316 <soap12:body use="literal"/>
319 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Add_output_policy"/>
320 <soap12:body use="literal"/>
323 <wsdl:operation name="Subtract">
324 <soap12:operation soapAction="http://Microsoft.ServiceModel.Samples/ICalculator/Subtract" style="document"/>
326 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Subtract_Input_policy"/>
327 <soap12:body use="literal"/>
330 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Subtract_output_policy"/>
331 <soap12:body use="literal"/>
334 <wsdl:operation name="Multiply">
335 <soap12:operation soapAction="http://Microsoft.ServiceModel.Samples/ICalculator/Multiply" style="document"/>
337 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Multiply_Input_policy"/>
338 <soap12:body use="literal"/>
341 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Multiply_output_policy"/>
342 <soap12:body use="literal"/>
345 <wsdl:operation name="Divide">
346 <soap12:operation soapAction="http://Microsoft.ServiceModel.Samples/ICalculator/Divide" style="document"/>
348 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Divide_Input_policy"/>
349 <soap12:body use="literal"/>
352 <wsp:PolicyReference URI="#WSHttpBinding_ICalculator_Divide_output_policy"/>
353 <soap12:body use="literal"/>
357 <wsdl:service name="CalculatorService">
358 <wsdl:port name="WSHttpBinding_ICalculator" binding="tns:WSHttpBinding_ICalculator">
359 <soap12:address location="http://localhost/ServiceModelSamples/service.svc"/>
360 <wsa10:EndpointReference>
361 <wsa10:Address>http://localhost/ServiceModelSamples/service.svc</wsa10:Address>
362 </wsa10:EndpointReference>