<?xml version="1.0" encoding="utf-8"?>
<!--

    Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Distribution License v. 1.0, which is available at
    http://www.eclipse.org/org/documents/edl-v10.php.

    SPDX-License-Identifier: BSD-3-Clause

-->

<wsdl:definitions name="FinancialService" targetNamespace="http://tempuri.org/" 
                                          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                                          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:wsap10="http://www.w3.org/2006/05/addressing/wsdl" 
                                          xmlns:i0="http://xmlsoap.org/DAB" 
                                          xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                          xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" 
                                          xmlns:tns="http://tempuri.org/" 
                                          xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
                                          xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" 
                                          xmlns:wsa10="http://www.w3.org/2005/08/addressing">
	<wsp:Policy wsu:Id="IFinancialService_policy">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SymmetricBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<wsp:Policy>
						<sp:ProtectionToken>
							<wsp:Policy>
								<sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
									<wsp:Policy>
										<sp:RequireDerivedKeys/>
										<sp:RequireThumbprintReference/>
										<sp:WssX509V3Token10/>
									</wsp:Policy>
								</sp:X509Token>
							</wsp:Policy>
						</sp:ProtectionToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128/>
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict/>
							</wsp:Policy>
						</sp:Layout>
						<sp:IncludeTimestamp/>
						<!--sp:EncryptSignature/-->
						<sp:OnlySignEntireHeadersAndBody/>
					</wsp:Policy>
				</sp:SymmetricBinding>
				<sp:EndorsingSupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<wsp:Policy>
						<sp:IssuedToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
                                                    <!--sp:Issuer>
                                                        <Address xmlns="http://www.w3.org/2005/08/addressing">
                                                            http://localhost:8080/jaxws-fs-sts/sts
                                                        </Address>
                                                        </sp:Issuer-->
                                                        <!--t:Claims xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512" wsp:optional="true">
                                                            <wsid:ClaimType
                                                                    Uri="http://schemas.microsoft.com/ws/2005/05/identity/claims/privatepersonalidentifier"
                                                                         xmlns:wsid="http://schemas.microsoft.com/ws/2005/05/identity"/>
                                                        </t:Claims-->
							<sp:RequestSecurityTokenTemplate>
								<t:TokenType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</t:TokenType>
								<t:KeyType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey</t:KeyType>
								<t:KeySize xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">256</t:KeySize>
							</sp:RequestSecurityTokenTemplate>
							<wsp:Policy>
								<sp:RequireDerivedKeys/>
								<sp:RequireInternalReference/>
							</wsp:Policy>
						</sp:IssuedToken>
					</wsp:Policy>
				</sp:EndorsingSupportingTokens>
				<sp:Wss11 xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<wsp:Policy>
						<sp:MustSupportRefKeyIdentifier/>
						<sp:MustSupportRefIssuerSerial/>
						<sp:MustSupportRefThumbprint/>
						<sp:MustSupportRefEncryptedKey/>
						<!--sp:RequireSignatureConfirmation/-->
					</wsp:Policy>
				</sp:Wss11>
				<sp:Trust13 xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<wsp:Policy>
						<sp:MustSupportIssuedTokens/>
						<sp:RequireClientEntropy/>
						<sp:RequireServerEntropy/>
					</wsp:Policy>
				</sp:Trust13>
                                <!--sunsp:DisableStreamingSecurity xmlns:sunsp="http://schemas.sun.com/2006/03/wss/client"></sunsp:DisableStreamingSecurity-->
                                <sc:KeyStore xmlns:sc="http://schemas.sun.com/2006/03/wss/server" location="$WSIT_HOME/xws-security/etc/server-keystore.jks" storepass="changeit" alias="bob"/>
                                <sc:TrustStore xmlns:sc="http://schemas.sun.com/2006/03/wss/server" location="$WSIT_HOME/xws-security/etc/server-truststore.jks" storepass="changeit"/>
				<wsap10:UsingAddressing/>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="IFinancialService_Input_policy">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
				</sp:SignedParts>
				<sp:EncryptedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<sp:Body/>
				</sp:EncryptedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy wsu:Id="IFinancialService_Output_policy">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<sp:Body/>
					<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
					<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
				</sp:SignedParts>
				<sp:EncryptedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
					<sp:Body/>
				</sp:EncryptedParts>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsdl:types>
            <xsd:schema targetNamespace="http://xmlsoap.org/DAB/Imports">
                <xsd:import schemaLocation="Service_schema.xsd" namespace="http://xmlsoap.org/DAB"/>
            </xsd:schema>
        </wsdl:types>
	<wsdl:message name="DABRequest">
            <wsdl:part name="Department" element="q:Department" xmlns:q="http://xmlsoap.org/DAB"/>
        </wsdl:message>
        <wsdl:message name="DABResponse">
            <wsdl:part name="AccountBalance" element="q:AccountBalance" xmlns:q="http://xmlsoap.org/DAB"/>
        </wsdl:message>
	<wsdl:portType name="IFinancialService">
            <wsdl:operation name="getAccountBalance">
                <wsdl:input wsap10:Action="http://xmlsoap.org/DAB" name="DABRequest" message="tns:DABRequest"/>
                <wsdl:output wsap10:Action="http://xmlsoap.org/DAB" name="DABResponse" message="tns:DABResponse"/>
            </wsdl:operation>
        </wsdl:portType>
	<wsdl:binding name="IFinancialService_Binding" type="tns:IFinancialService">
		<wsp:PolicyReference URI="#IFinancialService_policy"/>
		<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="getAccountBalance">
			<soap12:operation soapAction="http://xmlsoap.org/DAB" style="document"/>
			<wsdl:input name="DABRequest">
				<wsp:PolicyReference URI="#IFinancialService_Input_policy"/>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output name="DABResponse">
				<wsp:PolicyReference URI="#IFinancialService_Output_policy"/>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="FinancialService">
		<wsdl:port name="IFinancialService_Port" binding="tns:IFinancialService_Binding">
			<soap12:address location="http://localhost:8080/jaxws-fs/simple"/>
			<wsa10:EndpointReference>
				<wsa10:Address>http://localhost:8080/jaxws-fs/simple</wsa10:Address>
			</wsa10:EndpointReference>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
