You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by iPhone Developer <iP...@bpc.ag> on 2010/09/10 11:03:10 UTC

Please help with ws-addressing and ws-policy issue

I am currently trying to consume a .NET webservice which uses ws-policy and
ws-addressing.

When trying to call the webservice I get a SOAPFaultException "None of the
policy alternatives can be satisfied". To narrow down the reason why it
fails I'm debugging into PolicyEngingeImpl.supportsAlternative, as someone
suggested elsewhere on this mailing list, and I can see that it fails on a
policy assertion  named
"{http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing".

I found an entry in the docs on how to use ws-addressing with ws-policy here
http://cxf.apache.org/docs/ws-addressing.html#WS-Addressing-EnablingWSAddres
singwithWSPolicy, which states
"If you're using WS-Policy, CXF can automatically set up WS-Addressing for
you if you use the <Addressing> policy expression. TODO"

Can somebody please explain what the "<Addressing> policy expression" is?
What information might be missing here due to the "TODO"?
Must ws-addressing be explicitly enabled or does it work out of the box?
Also, do I have to include special ws-addressing dependencies in maven
(which I haven't found in the repo)?


My service is currently defined like this:

	<jaxws:client 
		id="..."
		serviceClass="MyGeneratedWSDL2JavaInterface"
		address="http://..."
		wsdlLocation="http://..."
		serviceName="kpsn:MyService"
		<jaxws:properties>
			<entry key="ws-security.encryption.properties"
value="encryption.properties" />
			<entry key="ws-security.signature.properties"
value="signature.properties" />
			<entry key="ws-security.encryption.username"
value="encryptionUser" />
			<entry key="ws-security.callback-handler"
value="callbackHandler" />
		</jaxws:properties>
		<jaxws:features>
			<wsa:addressing
xmlns:wsa="http://cxf.apache.org/ws/addressing" />
		</jaxws:features>
	</jaxws:client>


Here is an excerpt from the wsdl I am using:

	<wsp:Policy wsu:Id="IMyService_policy">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SymmetricBinding
	
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:ProtectionToken>
							<wsp:Policy>
	
<sp:X509Token
	
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ
eToken/Never">
	
<wsp:Policy>
	
<sp:RequireDerivedKeys />
	
<sp:RequireThumbprintReference />
	
<sp:WssX509V3Token10 />
	
</wsp:Policy>
	
</sp:X509Token>
							</wsp:Policy>
						</sp:ProtectionToken>
						<sp:AlgorithmSuite>
							<wsp:Policy>
								<sp:Basic256
/>
							</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:SignedSupportingTokens
	
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:UsernameToken
	
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ
eToken/AlwaysToRecipient">
							<wsp:Policy>
	
<sp:WssUsernameToken10 />
							</wsp:Policy>
						</sp:UsernameToken>
					</wsp:Policy>
				</sp:SignedSupportingTokens>
				<sp:Wss11
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
	
<sp:MustSupportRefKeyIdentifier />
	
<sp:MustSupportRefIssuerSerial />
						<sp:MustSupportRefThumbprint
/>
	
<sp:MustSupportRefEncryptedKey />
					</wsp:Policy>
				</sp:Wss11>
				<sp:Trust10
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<wsp:Policy>
						<sp:MustSupportIssuedTokens
/>
						<sp:RequireClientEntropy />
						<sp:RequireServerEntropy />
					</wsp:Policy>
				</sp:Trust10>
				<wsaw:UsingAddressing />
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>
	<wsp:Policy
		wsu:Id="IMyService_MyMethod_Input_policy">
		<wsp:ExactlyOne>
			<wsp:All>
				<sp:SignedParts
	
xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
					<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>
			</wsp:All>
		</wsp:ExactlyOne>
	</wsp:Policy>




Thank you for helping!



AW: Please help with ws-addressing and ws-policy issue

Posted by iPhone Developer <iP...@bpc.ag>.
Yes! Importing "cxf-extension-addr.xml" solved it!
But this is not in the docs, is it? I've read it over and over and cannot
remember that line.

Anyway, many thanks Sergey and Daniel for your support!


Re: Please help with ws-addressing and ws-policy issue

Posted by Daniel Kulp <dk...@apache.org>.
What does your spring context configuration look like?   You may need to add 
imports for cxf-extension-addr.xml and cxf-extension-ws-security.xml.    That 
SHOULD register builders for eveything in your list.

Dan



On Friday 10 September 2010 11:56:16 am Sergey Beryozkin wrote:
> Can you put a breakpoint in
> 
> org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder
> constructors and build() methods ?
> It appears a ws/addr module delegates to it (with Spring initializing it)
> for dealing with the legacy UsingAddressing assertions...
> 
> May be the builder is not even invoked ?
> 
> cheers, Sergey
> 
> On Fri, Sep 10, 2010 at 4:02 PM, iPhone Developer <iP...@bpc.ag> wrote:
> > I managed to get a detailed log of cxf's activities just before the
> > method call on level 'FINEST' and pasted it below.
> > Are the warnings about missing assertion builders critical? I think I
> > have read somewhere that they can be ignored.
> > 
> > 
> > 
> > DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) -
> > Invoke, operation info: [BindingOperationInfo:
> > {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> > }Au
> > thenticate], params:
> > 
> > [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentic
> > ate Request@65c0bb4b]
> > DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) -
> > Invoke, operation info: [BindingOperationInfo:
> > {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> > }Au
> > thenticate], params:
> > 
> > [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentic
> > ate Request@65c0bb4b]
> > DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> > requestContext to message
> > be{ws-security.encryption.properties=cxf-encryption.properties,
> > ws-security.callback-handler=cxfCallbackHandler,
> > java.lang.reflect.Method=public abstract
> > 
> > datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentica
> > teR esponse
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por
> > 
> > talService.authenticate(datacontracts.kunden.contracts.services.naturener
> > gie plus.yello.AuthenticateRequest) throws
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por talServiceAuthenticateFaultExceptionFaultFaultMessage,
> > ws-security.encryption.username=encryptionUser,
> > 
> > org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.en
> > cry ption.properties=APPLICATION,
> > ws-security.callback-handler=APPLICATION,
> > ws-security.encryption.username=APPLICATION,
> > ws-security.signature.properties=APPLICATION,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> > ws-security.signature.properties=cxf-signature.properties,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> > http://s4o4121.enbw.net/WebS
> > erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.en
> > bw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc> }
> > DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> > requestContext to message
> > be{ws-security.encryption.properties=cxf-encryption.properties,
> > ws-security.callback-handler=cxfCallbackHandler,
> > java.lang.reflect.Method=public abstract
> > 
> > datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentica
> > teR esponse
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por
> > 
> > talService.authenticate(datacontracts.kunden.contracts.services.naturener
> > gie plus.yello.AuthenticateRequest) throws
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por talServiceAuthenticateFaultExceptionFaultFaultMessage,
> > ws-security.encryption.username=encryptionUser,
> > 
> > org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.en
> > cry ption.properties=APPLICATION,
> > ws-security.callback-handler=APPLICATION,
> > ws-security.encryption.username=APPLICATION,
> > ws-security.signature.properties=APPLICATION,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> > ws-security.signature.properties=cxf-signature.properties,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> > http://s4o4121.enbw.net/WebS
> > erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.en
> > bw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc> }
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> > Interceptors contributed by bus:
> > [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> > Interceptors contributed by bus:
> > [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:800) -
> > Interceptors contributed by client: [] DEBUG 2010-09-10 16:56:48,743
> > [http-9380-2] (ClientImpl.java:800) - Interceptors contributed by client:
> > []
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> > Interceptors contributed by endpoint:
> > [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d ,
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> > Interceptors contributed by endpoint:
> > [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d ,
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> > Interceptors contributed by binding:
> > [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5,
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> > Interceptors contributed by binding:
> > [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5,
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:814) -
> > Interceptors contributed by databinding: [] DEBUG 2010-09-10
> > 16:56:48,744 [http-9380-2] (ClientImpl.java:814) - Interceptors
> > contributed by databinding: [] DEBUG 2010-09-10 16:56:48,770
> > [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84 to phase setup
> > DEBUG
> > 2010-09-10 16:56:48,770 [http-9380-2] (PhaseInterceptorChain.java:203) -
> > Adding interceptor
> > org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84to phase setup
> > DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> > prepare-send DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> > prepare-send DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> > phase pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> > phase pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to
> > phase pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to
> > phase pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase
> > marshal DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase
> > marshal DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
> > DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
> > DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> > phase
> > write DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> > phase
> > write  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys
> > > registered.
> > 
> >  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys
> > > registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRef
> > er<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbpri
> > ntRefer> ence registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRef
> > er<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbpri
> > ntRefer> ence registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeader
> > sA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireH
> > eadersA> ndBody registered.
> > 
> >  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeader
> > sA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireH
> > eadersA> ndBody registered.
> > 
> >  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.
> > org/2006/05/addressing/wsdl%7DUsingAddressing>registered.
> > 
> >  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.
> > org/2006/05/addressing/wsdl%7DUsingAddressing>registered. DEBUG
> > 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> > Alternative
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3
> > .org/2006/05/addressing/wsdl%7DUsingAddressing>is not supported
> > DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> > Alternative
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3
> > .org/2006/05/addressing/wsdl%7DUsingAddressing>is not supported

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Please help with ws-addressing and ws-policy issue

Posted by Sergey Beryozkin <sb...@gmail.com>.
Can you put a breakpoint in

org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder
constructors and build() methods ?
It appears a ws/addr module delegates to it (with Spring initializing it)
for dealing with the legacy UsingAddressing assertions...

May be the builder is not even invoked ?

cheers, Sergey

On Fri, Sep 10, 2010 at 4:02 PM, iPhone Developer <iP...@bpc.ag> wrote:

> I managed to get a detailed log of cxf's activities just before the method
> call on level 'FINEST' and pasted it below.
> Are the warnings about missing assertion builders critical? I think I have
> read somewhere that they can be ignored.
>
>
>
> DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) - Invoke,
> operation info: [BindingOperationInfo:
> {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> }Au
> thenticate], params:
>
> [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authenticate
> Request@65c0bb4b]
> DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) - Invoke,
> operation info: [BindingOperationInfo:
> {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> }Au
> thenticate], params:
>
> [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authenticate
> Request@65c0bb4b]
> DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> requestContext to message
> be{ws-security.encryption.properties=cxf-encryption.properties,
> ws-security.callback-handler=cxfCallbackHandler,
> java.lang.reflect.Method=public abstract
>
> datacontracts.kunden.contracts.services.naturenergieplus.yello.AuthenticateR
> esponse
>
> servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
>
> talService.authenticate(datacontracts.kunden.contracts.services.naturenergie
> plus.yello.AuthenticateRequest) throws
>
> servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
> talServiceAuthenticateFaultExceptionFaultFaultMessage,
> ws-security.encryption.username=encryptionUser,
>
> org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.encry
> ption.properties=APPLICATION, ws-security.callback-handler=APPLICATION,
> ws-security.encryption.username=APPLICATION,
> ws-security.signature.properties=APPLICATION,
> org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> ws-security.signature.properties=cxf-signature.properties,
> org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> http://s4o4121.enbw.net/WebS
> erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.enbw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc>
> }
> DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> requestContext to message
> be{ws-security.encryption.properties=cxf-encryption.properties,
> ws-security.callback-handler=cxfCallbackHandler,
> java.lang.reflect.Method=public abstract
>
> datacontracts.kunden.contracts.services.naturenergieplus.yello.AuthenticateR
> esponse
>
> servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
>
> talService.authenticate(datacontracts.kunden.contracts.services.naturenergie
> plus.yello.AuthenticateRequest) throws
>
> servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
> talServiceAuthenticateFaultExceptionFaultFaultMessage,
> ws-security.encryption.username=encryptionUser,
>
> org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.encry
> ption.properties=APPLICATION, ws-security.callback-handler=APPLICATION,
> ws-security.encryption.username=APPLICATION,
> ws-security.signature.properties=APPLICATION,
> org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> ws-security.signature.properties=cxf-signature.properties,
> org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> http://s4o4121.enbw.net/WebS
> erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.enbw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc>
> }
> DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> Interceptors contributed by bus:
> [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> Interceptors contributed by bus:
> [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:800) -
> Interceptors contributed by client: [] DEBUG 2010-09-10 16:56:48,743
> [http-9380-2] (ClientImpl.java:800) - Interceptors contributed by client:
> []
> DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> Interceptors contributed by endpoint:
> [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
> ,
> org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> Interceptors contributed by endpoint:
> [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
> ,
> org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> Interceptors contributed by binding:
> [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
>
> org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
> d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
>
> org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
> 5, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> Interceptors contributed by binding:
> [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
>
> org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
> d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
>
> org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
> 5, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:814) -
> Interceptors contributed by databinding: [] DEBUG 2010-09-10 16:56:48,744
> [http-9380-2] (ClientImpl.java:814) - Interceptors contributed by
> databinding: [] DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84 to phase setup
> DEBUG
> 2010-09-10 16:56:48,770 [http-9380-2] (PhaseInterceptorChain.java:203) -
> Adding interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84to
> phase setup DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> prepare-send DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> prepare-send DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
> to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
> to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> phase pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> phase pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to phase
> pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to phase
> pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> pre-stream DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase pre-stream
> DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203)
> - Adding interceptor org.apache.cxf.interceptor.StaxOutInterceptor@67871079
> to phase pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
>
> org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
> d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
>
> org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
> d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase marshal
> DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> (PhaseInterceptorChain.java:203)
> - Adding interceptor
> org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase marshal
> DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203)
> - Adding interceptor org.apache.cxf.interceptor.BareOutInterceptor@75471dd2
> to phase marshal DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
> DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203)
> - Adding interceptor
>
> org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
> 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
>
> org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
> 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> phase
> write DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> (PhaseInterceptorChain.java:203) - Adding interceptor
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> phase
> write  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys>
> registered.
>  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys>
> registered.
>  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRefer<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbprintRefer>
> ence registered.
>  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRefer<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbprintRefer>
> ence registered.
>  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> registered.
>  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> registered.
>  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> registered.
>  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> registered.
>  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> registered.
>  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> registered.
>  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeadersA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireHeadersA>
> ndBody registered.
>  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeadersA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireHeadersA>
> ndBody registered.
>  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>registered.
>  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>registered.
> DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> Alternative {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>is
> not supported
> DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> Alternative {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>is
> not supported
>
>

AW: Please help with ws-addressing and ws-policy issue

Posted by iPhone Developer <iP...@bpc.ag>.
I managed to get a detailed log of cxf's activities just before the method
call on level 'FINEST' and pasted it below.
Are the warnings about missing assertion builders critical? I think I have
read somewhere that they can be ignored.



DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) - Invoke,
operation info: [BindingOperationInfo:
{http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts}Au
thenticate], params:
[datacontracts.kunden.contracts.services.naturenergieplus.yello.Authenticate
Request@65c0bb4b]
DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) - Invoke,
operation info: [BindingOperationInfo:
{http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts}Au
thenticate], params:
[datacontracts.kunden.contracts.services.naturenergieplus.yello.Authenticate
Request@65c0bb4b]
DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
requestContext to message
be{ws-security.encryption.properties=cxf-encryption.properties,
ws-security.callback-handler=cxfCallbackHandler,
java.lang.reflect.Method=public abstract
datacontracts.kunden.contracts.services.naturenergieplus.yello.AuthenticateR
esponse
servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
talService.authenticate(datacontracts.kunden.contracts.services.naturenergie
plus.yello.AuthenticateRequest) throws
servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
talServiceAuthenticateFaultExceptionFaultFaultMessage,
ws-security.encryption.username=encryptionUser,
org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.encry
ption.properties=APPLICATION, ws-security.callback-handler=APPLICATION,
ws-security.encryption.username=APPLICATION,
ws-security.signature.properties=APPLICATION,
org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
ws-security.signature.properties=cxf-signature.properties,
org.apache.cxf.message.Message.ENDPOINT_ADDRESS=http://s4o4121.enbw.net/WebS
erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc}
DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
requestContext to message
be{ws-security.encryption.properties=cxf-encryption.properties,
ws-security.callback-handler=cxfCallbackHandler,
java.lang.reflect.Method=public abstract
datacontracts.kunden.contracts.services.naturenergieplus.yello.AuthenticateR
esponse
servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
talService.authenticate(datacontracts.kunden.contracts.services.naturenergie
plus.yello.AuthenticateRequest) throws
servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKundenPor
talServiceAuthenticateFaultExceptionFaultFaultMessage,
ws-security.encryption.username=encryptionUser,
org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.encry
ption.properties=APPLICATION, ws-security.callback-handler=APPLICATION,
ws-security.encryption.username=APPLICATION,
ws-security.signature.properties=APPLICATION,
org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
ws-security.signature.properties=cxf-signature.properties,
org.apache.cxf.message.Message.ENDPOINT_ADDRESS=http://s4o4121.enbw.net/WebS
erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc}
DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
Interceptors contributed by bus:
[org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
Interceptors contributed by bus:
[org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:800) -
Interceptors contributed by client: [] DEBUG 2010-09-10 16:56:48,743
[http-9380-2] (ClientImpl.java:800) - Interceptors contributed by client: []
DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
Interceptors contributed by endpoint:
[org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed,
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
Interceptors contributed by endpoint:
[org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed,
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
Interceptors contributed by binding:
[org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
5, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
Interceptors contributed by binding:
[org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
5, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:814) -
Interceptors contributed by databinding: [] DEBUG 2010-09-10 16:56:48,744
[http-9380-2] (ClientImpl.java:814) - Interceptors contributed by
databinding: [] DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84 to phase setup DEBUG
2010-09-10 16:56:48,770 [http-9380-2] (PhaseInterceptorChain.java:203) -
Adding interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84 to
phase setup DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
prepare-send DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
prepare-send DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398ed
to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
phase pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
phase pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to phase
pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to phase
pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
pre-stream DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase pre-stream
DEBUG 2010-09-10 16:56:48,773 [http-9380-2] (PhaseInterceptorChain.java:203)
- Adding interceptor org.apache.cxf.interceptor.StaxOutInterceptor@67871079
to phase pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@544aa
d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase marshal
DEBUG 2010-09-10 16:56:48,773 [http-9380-2] (PhaseInterceptorChain.java:203)
- Adding interceptor
org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase marshal
DEBUG 2010-09-10 16:56:48,774 [http-9380-2] (PhaseInterceptorChain.java:203)
- Adding interceptor org.apache.cxf.interceptor.BareOutInterceptor@75471dd2
to phase marshal DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
DEBUG 2010-09-10 16:56:48,774 [http-9380-2] (PhaseInterceptorChain.java:203)
- Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7022
5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to phase
write DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
(PhaseInterceptorChain.java:203) - Adding interceptor
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to phase
write  WARN 2010-09-10 16:56:48,787 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys
registered.
 WARN 2010-09-10 16:56:48,787 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys
registered.
 WARN 2010-09-10 16:56:48,789 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRefer
ence registered.
 WARN 2010-09-10 16:56:48,789 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRefer
ence registered.
 WARN 2010-09-10 16:56:48,789 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10
registered.
 WARN 2010-09-10 16:56:48,789 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10
registered.
 WARN 2010-09-10 16:56:48,796 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp
registered.
 WARN 2010-09-10 16:56:48,796 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp
registered.
 WARN 2010-09-10 16:56:48,796 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature
registered.
 WARN 2010-09-10 16:56:48,796 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature
registered.
 WARN 2010-09-10 16:56:48,797 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeadersA
ndBody registered.
 WARN 2010-09-10 16:56:48,797 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeadersA
ndBody registered.
 WARN 2010-09-10 16:56:48,802 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing registered.
 WARN 2010-09-10 16:56:48,802 [http-9380-2]
(AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
{http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing registered.
DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
Alternative {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing is
not supported
DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
Alternative {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing is
not supported


AW: Please help with ws-addressing and ws-policy issue

Posted by iPhone Developer <iP...@bpc.ag>.
...also, what I find strange is, that when I declare <p:policies> as feature
of <axws:client> then cxf will call PolicyEngineImpl.supportsAlternative
twice on startup, but without any policy assertions (except the explicitly
declared wsp:Policy in my spring context).

When I don't declare <p:policies> cxf won't call
PolicyEngineImpl.supportsAlternative until I try to send my request and then
it will pass all policy assertions declared in my wsdl.

How can I verify your assumption about the dynamically added header field?
There already is a UsingAddressing assertion in the wsdl, so cxf should know
to use ws-addressing, shouldn't it?

Any other ideas on the subject?

Again, many thanks for helping!


AW: Please help with ws-addressing and ws-policy issue

Posted by iPhone Developer <iP...@bpc.ag>.
Thank you for your reply. Unfortunately I could not get it to work.

I added this assertion:

<wsam:Addressing>
<wsp:Policy/>
</wsam:Addressing>

On startup cxf would call PolicyEngineImple.supportsAlternative twice: Once
without any policy assertions and once with the wsam:Addressing assertion.

I'm not sure what you meant by this:

" won't help then just try adding
<wsa:UsingAddressing
xmlns:wsa="http://www.w3.org/2006/05/addressing/wsdl<http://www.w3.org/2006/
05/addressing/wsdl%7DUsingAddressing>
"/>"

If I add wsa:UsingAddressing as Child-Element of wsp:Policy then cxf won't
start at all.


Re: Please help with ws-addressing and ws-policy issue

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

On Fri, Sep 10, 2010 at 10:03 AM, iPhone Developer <iP...@bpc.ag> wrote:

> I am currently trying to consume a .NET webservice which uses ws-policy and
> ws-addressing.
>
> When trying to call the webservice I get a SOAPFaultException "None of the
> policy alternatives can be satisfied". To narrow down the reason why it
> fails I'm debugging into PolicyEngingeImpl.supportsAlternative, as someone
> suggested elsewhere on this mailing list, and I can see that it fails on a
> policy assertion  named
> "{http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>
> ".
>
>
The likely reason it is failing is that an actual Addressing header is added
dynamically on the NET side and thus the
CXF Policy engine, on seeing the WSDL initially, does not add a WSA aware
interceptor, just a guess.

Not sure if it is the way to go, but you might try applying it at the client
side via a  policy reference :

http://svn.apache.org/repos/asf/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/addr-inline-policy.xml

If adding the following assertion

<wsam:Addressing>
<wsp:Policy/>
</wsam:Addressing>

won't help then just try adding

<wsa:UsingAddressing
xmlns:wsa="http://www.w3.org/2006/05/addressing/wsdl<http://www.w3.org/2006/05/addressing/wsdl%7DUsingAddressing>
"/>


cheers, Sergey


I found an entry in the docs on how to use ws-addressing with ws-policy here
>
> http://cxf.apache.org/docs/ws-addressing.html#WS-Addressing-EnablingWSAddres
> singwithWSPolicy, which states
> "If you're using WS-Policy, CXF can automatically set up WS-Addressing for
> you if you use the <Addressing> policy expression. TODO"
>
> Can somebody please explain what the "<Addressing> policy expression" is?
> What information might be missing here due to the "TODO"?
> Must ws-addressing be explicitly enabled or does it work out of the box?
> Also, do I have to include special ws-addressing dependencies in maven
> (which I haven't found in the repo)?
>
>
> My service is currently defined like this:
>
>        <jaxws:client
>                id="..."
>                serviceClass="MyGeneratedWSDL2JavaInterface"
>                address="http://..."
>                wsdlLocation="http://..."
>                serviceName="kpsn:MyService"
>                <jaxws:properties>
>                        <entry key="ws-security.encryption.properties"
> value="encryption.properties" />
>                        <entry key="ws-security.signature.properties"
> value="signature.properties" />
>                        <entry key="ws-security.encryption.username"
> value="encryptionUser" />
>                        <entry key="ws-security.callback-handler"
> value="callbackHandler" />
>                </jaxws:properties>
>                <jaxws:features>
>                        <wsa:addressing
> xmlns:wsa="http://cxf.apache.org/ws/addressing" />
>                </jaxws:features>
>        </jaxws:client>
>
>
> Here is an excerpt from the wsdl I am using:
>
>        <wsp:Policy wsu:Id="IMyService_policy">
>                <wsp:ExactlyOne>
>                        <wsp:All>
>                                <sp:SymmetricBinding
>
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                                        <wsp:Policy>
>                                                <sp:ProtectionToken>
>                                                        <wsp:Policy>
>
> <sp:X509Token
>
> sp:IncludeToken="
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ
> eToken/Never<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ%0AeToken/Never>
> ">
>
> <wsp:Policy>
>
> <sp:RequireDerivedKeys />
>
> <sp:RequireThumbprintReference />
>
> <sp:WssX509V3Token10 />
>
> </wsp:Policy>
>
> </sp:X509Token>
>                                                        </wsp:Policy>
>                                                </sp:ProtectionToken>
>                                                <sp:AlgorithmSuite>
>                                                        <wsp:Policy>
>                                                                <sp:Basic256
> />
>                                                        </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:SignedSupportingTokens
>
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                                        <wsp:Policy>
>                                                <sp:UsernameToken
>
> sp:IncludeToken="
> http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ
> eToken/AlwaysToRecipient<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/Includ%0AeToken/AlwaysToRecipient>
> ">
>                                                        <wsp:Policy>
>
> <sp:WssUsernameToken10 />
>                                                        </wsp:Policy>
>                                                </sp:UsernameToken>
>                                        </wsp:Policy>
>                                </sp:SignedSupportingTokens>
>                                <sp:Wss11
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                                        <wsp:Policy>
>
> <sp:MustSupportRefKeyIdentifier />
>
> <sp:MustSupportRefIssuerSerial />
>                                                <sp:MustSupportRefThumbprint
> />
>
> <sp:MustSupportRefEncryptedKey />
>                                        </wsp:Policy>
>                                </sp:Wss11>
>                                <sp:Trust10
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                                        <wsp:Policy>
>                                                <sp:MustSupportIssuedTokens
> />
>                                                <sp:RequireClientEntropy />
>                                                <sp:RequireServerEntropy />
>                                        </wsp:Policy>
>                                </sp:Trust10>
>                                <wsaw:UsingAddressing />
>                        </wsp:All>
>                </wsp:ExactlyOne>
>        </wsp:Policy>
>        <wsp:Policy
>                wsu:Id="IMyService_MyMethod_Input_policy">
>                <wsp:ExactlyOne>
>                        <wsp:All>
>                                <sp:SignedParts
>
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                                        <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>
>                        </wsp:All>
>                </wsp:ExactlyOne>
>        </wsp:Policy>
>
>
>
>
> Thank you for helping!
>
>
>