You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by damiansima <da...@gmail.com> on 2012/10/03 21:12:14 UTC

Re: None of the policy alternatives can be satisfied Exception

Hi guys,

I've having a problem and though I google it (a lot) I can't find the
answer.

I'm getting the following exception when trying to hit a WS:

org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives
can be satisfied.


The Java client was created with CXF from a WSDL definition.

The portion of the WSLD that seems to be causing the truble is:

/************************************************************/

<wsp:UsingPolicy wsdl:required=3D"true" />

<wsp:Policy wsu:Id=3D"BN_BN_binding">

<saptrnbnd:OptimizedXMLTransfer

uri=3D"http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd=3D"
http://www.sap.com/webas/710/soap/features/transportbinding/"

wsp:Optional=3D"true" />

<saptrnbnd:OptimizedMimeSerialization

xmlns:saptrnbnd=3D"
http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"

wsp:Optional=3D"true" />

<wsp:ExactlyOne xmlns:wsp=3D"http://schemas.xmlsoap.org/ws/2004/09/policy">

<wsp:All>

<sp:TransportBinding

xmlns:sp=3D"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"

xmlns:sapsp=3D"http://www.sap.com/webas/630/soap/features/security/policy"

xmlns:wsa=3D"http://www.w3.org/2005/08/addressing" xmlns:wst=3D"
http://docs.oasis-open.org/ws-sx/ws-trust/200512"

xmlns:wsu=3D"http://schemas.xmlsoap.org/ws/2002/07/utility"

xmlns:wsx=3D"http://schemas.xmlsoap.org/ws/2004/09/mex">
xmlns:sp=3D"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"

xmlns:sapsp=3D"http://www.sap.com/webas/630/soap/features/security/policy"

xmlns:wsa=3D"http://www.w3.org/2005/08/addressing" xmlns:wst=3D"
http://docs.oasis-open.org/ws-sx/ws-trust/200512"

xmlns:wsu=3D"http://schemas.xmlsoap.org/ws/2002/07/utility"

xmlns:wsx=3D"http://schemas.xmlsoap.org/ws/2004/09/mex">
xmlns:sp=3D"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"

xmlns:sapsp=3D"http://www.sap.com/webas/630/soap/features/security/policy"

xmlns:wsa=3D"http://www.w3.org/2005/08/addressing" xmlns:wst=3D"
http://docs.oasis-open.org/ws-sx/ws-trust/200512"

xmlns:wsu=3D"http://schemas.xmlsoap.org/ws/2002/07/utility"

xmlns:wsx=3D"http://schemas.xmlsoap.org/ws/2004/09/mex">

<wsp:Policy>

<sp:TransportToken>

<wsp:Policy>

<sp:HttpsToken>

<wsp:Policy>

<sapsp:HTTPSSO2 />

</wsp:Policy>

</sp:HttpsToken>

</wsp:Policy>

</sp:TransportToken>

<sp:AlgorithmSuite>

<wsp:Policy>

<sp:Basic128Rsa15 />

</wsp:Policy>

</sp:AlgorithmSuite>

<sp:Layout>

<wsp:Policy>

<sp:Strict />

</wsp:Policy>

</sp:Layout>

</wsp:Policy>

</sp:TransportBinding>

</wsp:All>

</wsp:ExactlyOne>

<wsaw:UsingAddressing xmlns:wsaw=3D"http://www.w3.org/2006/05/addressing/ws=
dl"

wsp:Optional=3D"true" />

</wsp:Policy>

/************************************************************/
This is what I've done from the Java side:

        CustomerBundleMaintainRequestMessageSyncV1 request =3D
getRequestManageCustomer();

        ManageCustomerIn servicePort =3D new Service().getBinding();

        Client client =3D ClientProxy.getClient(servicePort);

        HTTPConduit http =3D (HTTPConduit) client.getConduit();

        AuthorizationPolicy authPolicy =3D new AuthorizationPolicy();
        authPolicy.setUserName("some_user");
        authPolicy.setPassword("some_password");
        authPolicy.setAuthorizationType("Basic");

        http.setAuthorization(authPolicy);



        try {
            servicePort.checkMaintainBundleV1(request);
        } catch (StandardFaultMessage_Exception e) {
            e.printStackTrace();
        }


Thing is, it's failing in this particular line of the snippet:

 HTTPConduit http =3D (HTTPConduit) client.getConduit();


This is the full stack trace:

Exception in thread "main" org.apache.cxf.ws.policy.PolicyException: None
of the policy alternatives can be satisfied.

at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(
EndpointPolicyImpl.java:165)

at org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(
EndpointPolicyImpl.java:145)

at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(
EndpointPolicyImpl.java:141)

at org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(
PolicyEngineImpl.java:549)

at org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(
PolicyEngineImpl.java:295)

at org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(
PolicyEngineImpl.java:278)

at org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy(
PolicyDataEngineImpl.java:61)

at org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(
HTTPConduit.java:319)

at org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:304)

at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(
HTTPTransportFactory.java:250)

at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
SoapTransportFactory.java:228)

at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(
SoapTransportFactory.java:235)

at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
AbstractConduitSelector.java:103)

at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(
UpfrontConduitSelector.java:77)

at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:842)

at org.mule.sap.ondemand.core.Main.main(Main.java:100)



I've try to register the policy handlers but looks like I'm not doing it
right.



Could you please give me a hand?


Cheers, Damian.



--
View this message in context: http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715585.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: None of the policy alternatives can be satisfied Exception

Posted by damiansima <da...@gmail.com>.
Sure here it is, cheers.

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="http://sap.com/xi/A1S/Global"
	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"
	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
	xmlns:rfc="urn:sap-com:sap:rfc:functions"
xmlns:tns="http://sap.com/xi/A1S/Global"
	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
	xmlns:n1="http://sap.com/xi/AP/Globalization"
xmlns:n2="http://sap.com/xi/SAPGlobal20/Global"
	xmlns:n3="http://sap.com/xi/AP/Common/Global"
xmlns:n4="http://sap.com/xi/AP/Common/GDT"
	xmlns:n5="http://sap.com/xi/AP/FinancialAccounting/Global"
xmlns:n6="http://sap.com/xi/BASIS/Global"
	xmlns:n7="http://sap.com/xi/DocumentServices/Global"
xmlns:n8="http://sap.com/xi/AP/Extensibility/GeneratedObjects">
	<wsdl:documentation>
		<sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
	</wsdl:documentation>
	<wsp:UsingPolicy wsdl:required="true" />
	<wsp:Policy wsu:Id="BN_BN_binding">
		<saptrnbnd:OptimizedXMLTransfer
			uri="http://xml.sap.com/2006/11/esi/esp/binxml"
xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/"
			wsp:Optional="true" />
		<saptrnbnd:OptimizedMimeSerialization
		
xmlns:saptrnbnd="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"
			wsp:Optional="true" />
		<wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:HttpBasicAuthentication />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:RequireClientCertificate />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sapsp:HTTPSSO2 />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
		</wsp:ExactlyOne>
		<wsaw:UsingAddressing
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
			wsp:Optional="true" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="BN_BN_binding_SOAP12">
		<saptrnbnd:OptimizedXMLTransfer
			uri="http://xml.sap.com/2006/11/esi/esp/binxml"
xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/"
			wsp:Optional="true" />
		<saptrnbnd:OptimizedMimeSerialization
		
xmlns:saptrnbnd="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"
			wsp:Optional="true" />
		<wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:HttpBasicAuthentication />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:RequireClientCertificate />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sapsp:HTTPSSO2 />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
		</wsp:ExactlyOne>
		<wsaw:UsingAddressing
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
			wsp:Optional="true" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="IF_IF_ManageCustomerIn">
		<sapsession:Session
			xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
			<sapsession:enableSession>false</sapsession:enableSession>
		</sapsession:Session>
		<sapcentraladmin:CentralAdministration
		
xmlns:sapcentraladmin="http://www.sap.com/webas/700/soap/features/CentralAdministration/"
			wsp:Optional="true">
			<sapcentraladmin:BusinessApplicationID>0000000000011EE19CFFD34A8AFE8699
			</sapcentraladmin:BusinessApplicationID>
		</sapcentraladmin:CentralAdministration>
	</wsp:Policy>
	<wsp:Policy wsu:Id="OP_IF_OP_MaintainBundle_V1">
		<sapcomhnd:enableCommit
		
xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
		<sapblock:enableBlocking
		
xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
		<saptrhnw05:required
		
xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
		<saprmnw05:enableWSRM
xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false
		</saprmnw05:enableWSRM>
		<sapidp:Idempotency n0:Optional="true"
			xmlns:sapidp="http://www.sap.com/710/soap/features/idempotency/"
			xmlns:n0="http://schemas.xmlsoap.org/ws/2004/09/policy" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="OP_IF_OP_CheckMaintainBundle_V1">
		<sapcomhnd:enableCommit
		
xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
		<sapblock:enableBlocking
		
xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
		<saptrhnw05:required
		
xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
		<saprmnw05:enableWSRM
xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false
		</saprmnw05:enableWSRM>
		<sapidp:Idempotency n0:Optional="true"
			xmlns:sapidp="http://www.sap.com/710/soap/features/idempotency/"
			xmlns:n0="http://schemas.xmlsoap.org/ws/2004/09/policy" />
	</wsp:Policy>
	<wsdl:types>
		...
	</wsdl:types>
	<wsdl:message name="CustomerBundleMaintainRequest_sync_V1">
		<wsdl:part name="CustomerBundleMaintainRequest_sync_V1"
			element="n2:CustomerBundleMaintainRequest_sync_V1" />
	</wsdl:message>
	<wsdl:message name="CustomerBundleMaintainConfirmation_sync_V1">
		<wsdl:part name="CustomerBundleMaintainConfirmation_sync_V1"
			element="n2:CustomerBundleMaintainConfirmation_sync_V1" />
	</wsdl:message>
	<wsdl:message name="StandardFaultMessage">
		<wsdl:part name="StandardFaultMessage" element="n3:StandardFaultMessage"
/>
	</wsdl:message>
	<wsdl:message name="CustomerBundleMaintenanceCheckRequest_sync_V1">
		<wsdl:part name="CustomerBundleMaintenanceCheckRequest_sync_V1"
			element="n2:CustomerBundleMaintenanceCheckRequest_sync_V1" />
	</wsdl:message>
	<wsdl:message name="CustomerBundleMaintenanceCheckConfirmation_sync_V1">
		<wsdl:part name="CustomerBundleMaintenanceCheckConfirmation_sync_V1"
			element="n2:CustomerBundleMaintenanceCheckConfirmation_sync_V1" />
	</wsdl:message>
	<wsdl:portType name="ManageCustomerIn">
		<wsdl:documentation>
			<sapdoc:sapdoc xmlns:sapdoc="urn:sap:esi:documentation">
				<sapdoc:docitem applicationComponent="AP-BP-MIG" />
			</sapdoc:sapdoc>
		</wsdl:documentation>
		<wsp:Policy>
			<wsp:PolicyReference URI="#IF_IF_ManageCustomerIn" />
		</wsp:Policy>
		<wsdl:operation name="MaintainBundle_V1">
			<wsp:Policy>
				<wsp:PolicyReference URI="#OP_IF_OP_MaintainBundle_V1" />
			</wsp:Policy>
			<wsdl:input message="tns:CustomerBundleMaintainRequest_sync_V1" />
			<wsdl:output message="tns:CustomerBundleMaintainConfirmation_sync_V1" />
			<wsdl:fault name="StandardFaultMessage"
message="tns:StandardFaultMessage" />
		</wsdl:operation>
		<wsdl:operation name="CheckMaintainBundle_V1">
			<wsp:Policy>
				<wsp:PolicyReference URI="#OP_IF_OP_CheckMaintainBundle_V1" />
			</wsp:Policy>
			<wsdl:input message="tns:CustomerBundleMaintenanceCheckRequest_sync_V1"
/>
			<wsdl:output
message="tns:CustomerBundleMaintenanceCheckConfirmation_sync_V1" />
			<wsdl:fault name="StandardFaultMessage"
message="tns:StandardFaultMessage" />
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="binding" type="tns:ManageCustomerIn">
		<wsp:Policy>
			<wsp:PolicyReference URI="#BN_BN_binding" />
		</wsp:Policy>
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
			style="document" />
		<wsdl:operation name="MaintainBundle_V1">
			<soap:operation
			
soapAction="http://sap.com/xi/A1S/Global/ManageCustomerIn/MaintainBundle_V1Request"
				style="document" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="StandardFaultMessage">
				<soap:fault name="StandardFaultMessage" use="literal" />
			</wsdl:fault>
		</wsdl:operation>
		<wsdl:operation name="CheckMaintainBundle_V1">
			<soap:operation
			
soapAction="http://sap.com/xi/A1S/Global/ManageCustomerIn/CheckMaintainBundle_V1Request"
				style="document" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="StandardFaultMessage">
				<soap:fault name="StandardFaultMessage" use="literal" />
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:binding name="binding_SOAP12" type="tns:ManageCustomerIn">
		<wsp:Policy>
			<wsp:PolicyReference URI="#BN_BN_binding_SOAP12" />
		</wsp:Policy>
		<wsoap12:binding transport="http://schemas.xmlsoap.org/soap/http"
			style="document" />
		<wsdl:operation name="MaintainBundle_V1">
			<wsoap12:operation
			
soapAction="http://sap.com/xi/A1S/Global/ManageCustomerIn/MaintainBundle_V1Request"
				style="document" />
			<wsdl:input>
				<wsoap12:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<wsoap12:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="StandardFaultMessage">
				<wsoap12:fault name="StandardFaultMessage" use="literal" />
			</wsdl:fault>
		</wsdl:operation>
		<wsdl:operation name="CheckMaintainBundle_V1">
			<wsoap12:operation
			
soapAction="http://sap.com/xi/A1S/Global/ManageCustomerIn/CheckMaintainBundle_V1Request"
				style="document" />
			<wsdl:input>
				<wsoap12:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<wsoap12:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="StandardFaultMessage">
				<wsoap12:fault name="StandardFaultMessage" use="literal" />
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="service">
		<wsdl:port name="binding" binding="tns:binding">
			<soap:address
			
location="https://somehost.com/sap/bc/srt/scs/sap/managecustomerin1?sap-vhost=somehost.com"
/>
		</wsdl:port>
		<wsdl:port name="binding_SOAP12" binding="tns:binding_SOAP12">
			<wsoap12:address
			
location="https://somehost.com/sap/bc/srt/scs/sap/managecustomerin1?sap-vhost=somehost.com"
/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>



--
View this message in context: http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715646.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: None of the policy alternatives can be satisfied Exception

Posted by Colm O hEigeartaigh <co...@apache.org>.
Could you attach your entire WSDL? Are there other policies in it? The log
is referencing Assertions that aren't in the policy you gave.

Colm.

On Thu, Oct 4, 2012 at 3:37 PM, damiansima <da...@gmail.com> wrote:

> Hi, this is the complete console log for the application run:
>
> Oct 3, 2012 5:42:03 PM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service {http://sap.com/xi/A1S/Global}service from WSDL:
>
> file:/Users/damiansima/Documents/workspace/SAPSalesOnDemandClient/src/main/resources/schema/ManageCustomerIn1.wsdl
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {
> http://www.sap.com/webas/710/soap/features/transportbinding/}OptimizedXMLTransfer
> registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/webas/630/soap/features/session/}Session registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {
> http://www.sap.com/webas/700/soap/features/CentralAdministration/}CentralAdministration
> registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/NW05/soap/features/commit/}enableCommit registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/NW05/soap/features/blocking/}enableBlockingregistered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/NW05/soap/features/transaction/}required registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/NW05/soap/features/wsrm/}enableWSRM registered.
> Oct 3, 2012 5:42:04 PM
> org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://www.sap.com/710/soap/features/idempotency/}Idempotency registered.
> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: None of
> the
> policy alternatives can be satisfied.
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
>         at $Proxy30.checkMaintainBundleV1(Unknown Source)
>         at org.mule.sap.ondemand.core.Main.main(Main.java:112)
> Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy
> alternatives can be satisfied.
>         at
>
> org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:165)
>         at
>
> org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:145)
>         at
>
> org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:141)
>         at
>
> org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:549)
>         at
>
> org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:295)
>         at
>
> org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(PolicyEngineImpl.java:278)
>         at
>
> org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy(PolicyDataEngineImpl.java:61)
>         at
>
> org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(HTTPConduit.java:319)
>         at
> org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:304)
>         at
>
> org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:250)
>         at
>
> org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:228)
>         at
>
> org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:235)
>         at
>
> org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)
>         at
>
> org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
>         at
>
> org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:846)
>         at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:527)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
>         at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
>         at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
>         ... 2 more
>
> Look like it does a few things but before it starts to actually do anything
> real it breaks.
>
> Cheers, Damian.
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715643.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: None of the policy alternatives can be satisfied Exception

Posted by damiansima <da...@gmail.com>.
Hi, this is the complete console log for the application run:

Oct 3, 2012 5:42:03 PM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://sap.com/xi/A1S/Global}service from WSDL:
file:/Users/damiansima/Documents/workspace/SAPSalesOnDemandClient/src/main/resources/schema/ManageCustomerIn1.wsdl
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/webas/710/soap/features/transportbinding/}OptimizedXMLTransfer
registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/webas/630/soap/features/session/}Session registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/webas/700/soap/features/CentralAdministration/}CentralAdministration
registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/NW05/soap/features/commit/}enableCommit registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/NW05/soap/features/blocking/}enableBlocking registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/NW05/soap/features/transaction/}required registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/NW05/soap/features/wsrm/}enableWSRM registered.
Oct 3, 2012 5:42:04 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
handleNoRegisteredBuilder
WARNING: No assertion builder for type
{http://www.sap.com/710/soap/features/idempotency/}Idempotency registered.
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: None of the
policy alternatives can be satisfied.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)
	at $Proxy30.checkMaintainBundleV1(Unknown Source)
	at org.mule.sap.ondemand.core.Main.main(Main.java:112)
Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy
alternatives can be satisfied.
	at
org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:165)
	at
org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:145)
	at
org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:141)
	at
org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:549)
	at
org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:295)
	at
org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(PolicyEngineImpl.java:278)
	at
org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy(PolicyDataEngineImpl.java:61)
	at
org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(HTTPConduit.java:319)
	at org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:304)
	at
org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:250)
	at
org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:228)
	at
org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:235)
	at
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)
	at
org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)
	at
org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:846)
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:527)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
	... 2 more

Look like it does a few things but before it starts to actually do anything
real it breaks.

Cheers, Damian.




--
View this message in context: http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715643.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: None of the policy alternatives can be satisfied Exception

Posted by Colm O hEigeartaigh <co...@apache.org>.
I don't see any obvious reason why it should fail. What does the CXF log
tell you?

Colm.

On Thu, Oct 4, 2012 at 3:18 PM, damiansima <da...@gmail.com> wrote:

> Sorry about the error this is the complete policy:
>
>
> <wsp:Policy wsu:Id="BN_BN_binding">
>                 <saptrnbnd:OptimizedXMLTransfer
>                         uri="http://xml.sap.com/2006/11/esi/esp/binxml"
> xmlns:saptrnbnd="
> http://www.sap.com/webas/710/soap/features/transportbinding/"
>                         wsp:Optional="true" />
>                 <saptrnbnd:OptimizedMimeSerialization
>
> xmlns:saptrnbnd="
> http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"
>                         wsp:Optional="true" />
>                 <wsp:ExactlyOne xmlns:wsp="
> http://schemas.xmlsoap.org/ws/2004/09/policy">
>                         <wsp:All>
>                                 <sp:TransportBinding
>                                         xmlns:sp="
> http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
>
> xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
>                                         xmlns:wsa="
> http://www.w3.org/2005/08/addressing"
> xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
>                                         xmlns:wsu="
> http://schemas.xmlsoap.org/ws/2002/07/utility"
>                                         xmlns:wsx="
> http://schemas.xmlsoap.org/ws/2004/09/mex">
>                                         <wsp:Policy>
>                                                 <sp:TransportToken>
>                                                         <wsp:Policy>
>
> <sp:HttpsToken>
>
> <wsp:Policy>
>
>       <sp:HttpBasicAuthentication />
>
> </wsp:Policy>
>
> </sp:HttpsToken>
>                                                         </wsp:Policy>
>                                                 </sp:TransportToken>
>                                                 <sp:AlgorithmSuite>
>                                                         <wsp:Policy>
>
> <sp:Basic128Rsa15 />
>                                                         </wsp:Policy>
>                                                 </sp:AlgorithmSuite>
>                                                 <sp:Layout>
>                                                         <wsp:Policy>
>                                                                 <sp:Strict
> />
>                                                         </wsp:Policy>
>                                                 </sp:Layout>
>                                         </wsp:Policy>
>                                 </sp:TransportBinding>
>                         </wsp:All>
>                         <wsp:All>
>                                 <sp:TransportBinding
>                                         xmlns:sp="
> http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
>
> xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
>                                         xmlns:wsa="
> http://www.w3.org/2005/08/addressing"
> xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
>                                         xmlns:wsu="
> http://schemas.xmlsoap.org/ws/2002/07/utility"
>                                         xmlns:wsx="
> http://schemas.xmlsoap.org/ws/2004/09/mex">
>                                         <wsp:Policy>
>                                                 <sp:TransportToken>
>                                                         <wsp:Policy>
>
> <sp:HttpsToken>
>
> <wsp:Policy>
>
>       <sp:RequireClientCertificate />
>
> </wsp:Policy>
>
> </sp:HttpsToken>
>                                                         </wsp:Policy>
>                                                 </sp:TransportToken>
>                                                 <sp:AlgorithmSuite>
>                                                         <wsp:Policy>
>
> <sp:Basic128Rsa15 />
>                                                         </wsp:Policy>
>                                                 </sp:AlgorithmSuite>
>                                                 <sp:Layout>
>                                                         <wsp:Policy>
>                                                                 <sp:Strict
> />
>                                                         </wsp:Policy>
>                                                 </sp:Layout>
>                                         </wsp:Policy>
>                                 </sp:TransportBinding>
>                         </wsp:All>
>                         <wsp:All>
>                                 <sp:TransportBinding
>                                         xmlns:sp="
> http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
>
> xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
>                                         xmlns:wsa="
> http://www.w3.org/2005/08/addressing"
> xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
>                                         xmlns:wsu="
> http://schemas.xmlsoap.org/ws/2002/07/utility"
>                                         xmlns:wsx="
> http://schemas.xmlsoap.org/ws/2004/09/mex">
>                                         <wsp:Policy>
>                                                 <sp:TransportToken>
>                                                         <wsp:Policy>
>
> <sp:HttpsToken>
>
> <wsp:Policy>
>
>       <sapsp:HTTPSSO2 />
>
> </wsp:Policy>
>
> </sp:HttpsToken>
>                                                         </wsp:Policy>
>                                                 </sp:TransportToken>
>                                                 <sp:AlgorithmSuite>
>                                                         <wsp:Policy>
>
> <sp:Basic128Rsa15 />
>                                                         </wsp:Policy>
>                                                 </sp:AlgorithmSuite>
>                                                 <sp:Layout>
>                                                         <wsp:Policy>
>                                                                 <sp:Strict
> />
>                                                         </wsp:Policy>
>                                                 </sp:Layout>
>                                         </wsp:Policy>
>                                 </sp:TransportBinding>
>                         </wsp:All>
>                 </wsp:ExactlyOne>
>                 <wsaw:UsingAddressing
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
>                         wsp:Optional="true" />
>         </wsp:Policy>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715640.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: None of the policy alternatives can be satisfied Exception

Posted by damiansima <da...@gmail.com>.
Sorry about the error this is the complete policy:


<wsp:Policy wsu:Id="BN_BN_binding">
		<saptrnbnd:OptimizedXMLTransfer
			uri="http://xml.sap.com/2006/11/esi/esp/binxml"
xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/"
			wsp:Optional="true" />
		<saptrnbnd:OptimizedMimeSerialization
		
xmlns:saptrnbnd="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization"
			wsp:Optional="true" />
		<wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:HttpBasicAuthentication />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sp:RequireClientCertificate />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
			<wsp:All>
				<sp:TransportBinding
					xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
				
xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy"
					xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
					xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"
					xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
					<wsp:Policy>
						<sp:TransportToken>
							<wsp:Policy>
								<sp:HttpsToken>
									<wsp:Policy>
										<sapsp:HTTPSSO2 />
									</wsp:Policy>
								</sp:HttpsToken>
							</wsp:Policy>
						</sp:TransportToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic128Rsa15 />
							</wsp:Policy>
						</sp:AlgorithmSuite>
						<sp:Layout>
							<wsp:Policy>
								<sp:Strict />
							</wsp:Policy>
						</sp:Layout>
					</wsp:Policy>
				</sp:TransportBinding>
			</wsp:All>
		</wsp:ExactlyOne>
		<wsaw:UsingAddressing
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
			wsp:Optional="true" />
	</wsp:Policy>



--
View this message in context: http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-Exception-tp5710035p5715640.html
Sent from the cxf-user mailing list archive at Nabble.com.