Patent ID: 8775646

Claim:
A method for WS-Policy based web service controlling, comprising: storing, in a service policy repository, a plurality of Web Service policies; executing, with a processor, the Web Service policies; receiving, with a service policy agent, a request for service metadata including a Web Service policy from a service consumer, wherein the service policy agent obtains differentiated service information from the request, and obtains conditioning information that influences the Web Service policy from at least one of the service consumer, a service provider, and a monitoring server via an information collector; and selecting, with a service policy conditioner, a corresponding Web Service policy from the service policy repository in accordance with the conditioning information; wherein the service policy agent embeds the selected Web Service policy in the metadata, and sends the metadata in which the selected corresponding Web Service policy is embedded to the service consumer, wherein the conditioning information includes at least one of: transaction processing mode, language, and region of the service consumer or load state and response time of the service provider, wherein the service consumer invokes a Web service in accordance with at least a part of the Web Service policy and the metadata, and wherein the metadata comprises WSDL, XSD or DTD metadata.