Software AG Infrasructure 10.7 | Working with Web Services | Configuring Web Service Security | Setting Up Message-Level Security | Configuring the Server Side | Specifying Settings in a Software AG Designer Web Service Client
 
Specifying Settings in a Software AG Designer Web Service Client
When the sp:RequiredElements and sp:RequiredParts assertions are available in the security policy, they may not be resolved and validated properly. By default, when XPath expressions are handled in sp:RequiredElements assertion, the expressions are validated against the soap:Envelope element, instead of the soap:Header element.
You can enable sp:RequiredElements and sp:RequiredParts assertions in the business logic of a web service client using this code snippet:
IWSStaxClient client = SampleService;
client.getWSOptions().setProperty("enableRequiredElementsXPathCompatibility",
"true");
You can also set specific properties using Software AG Designer. For instructions, see Web Services Stack Help.