Solved

I Would Like to Add Two Different WS-Policy Definitions to My

Question 2

Multiple Choice

I would like to add two different WS-Policy definitions to my SOAP-based Web service and I would like to give the service consumer the choice to comply to either policy. How can I do this?


A) Create a separate XML schema for each policy and attach both XML schemas to the service's WSDL definition.
B) Create the two separate policies and group them in a policy alternative that is then associated with the service's WSDL definition.
C) Communicate each policy through a separate WS-Addressing SOAP header and let the service consumer choose which header to use.
D) You cannot do this.

Correct Answer:

verifed

Verified

Related Questions