Hi Al,
I am trying to do a poc on webServices along with policies. My need is create a webService provider, add a
username token policy to it, share the WSDL to the consumer to enforce to follow the policy. I am using wM9.7 version
Created a simple flow service, created a webService provider to it and placed the ( policy file ) at
\IntegrationServer\instances\default\config\wss\policies location.
After this, opened the provider WSD in designer, clicked on policies tab, right click and selected the username token policy.
When I observed WSDL URL, I can see wp:Policy section but when I tried to consume the same in Soap, I didn’t see any sort of security related enforcement.
Below is the policy which I did use:
Username_Token.policy
<wsp:Policy wsu:Id=“Username_token” Name=“Username_token”
xmlns:wsu=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd”
xmlns:wsp=“Web Services Policy Framework (WS-Policy) and Web Services Policy Attachment (WS-PolicyAttachment)”>
wsp:ExactlyOne
wsp:All
<sp:SignedSupportingTokens xmlns:sp=“Web Services Security Policy Language (WS-SecurityPolicy)”>
wsp:Policy
<sp:UsernameToken sp:IncludeToken=“WS-SecurityPolicy Token Inclusion Mechanism”>
</sp:UsernameToken>
</wsp:Policy>
</sp:SignedSupportingTokens>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
Please help me what did I miss ?
Thanks for your time and support.
Thanks,
RP