Deployed web services are typically described in an associated Web Services Description Language (WSDL) file. One way of getting started creating security policies using tradtional policy management, especially in terms of creating realms, rules, and the resource mappings they define, is to work from the WSDL file associated with a deployed web service.
Follow these steps:
In the following snippet from ExampleSearch.wsdl, the web service port to secure is ExampleSearchPort. This port is bound to the URL http://api.example.com/search/beta2.
<service name="ExampleSearchService"> <port name="ExampleSearchPort" binding="typens:ExampleSearchBinding"> <soap:address location="http://api.example.com/search/beta2"/> </port> </service>
In the following snippet, the three web service operations to secure are doGetCachedPage, doSpellingSuggestion and doExampleSearch. All these three operations are children of ExampleSearchPort which has been secured by the realm named ExampleSearchRealm.
<portType name="ExampleSearchPort"> <operation name="doGetCachedPage"> <input message="typens:doGetCachedPage"/> <output message="typens:doGetCachedPageResponse"/> </operation> <operation name="doSpellingSuggestion"> <input message="typens:doSpellingSuggestion"/> <output message="typens:doSpellingSuggestionResponse"/> </operation> <operation name="doExampleSearch"> <input message="typens:doExampleSearch"/> <output message="typens:doExampleSearchResponse"/> </operation> </portType>
Resource Filter: “/Web Service Operation Name"
Action: Post, ProcessSOAP and ProcessXML Web Agent actions
Copyright © 2015 CA Technologies.
All rights reserved.
|
|