I'm integrating data from a remote SAP system over SOAP services. The SAP services WSDL contains Policy elements. At runtime the remote call fails with PolicyException: None of the policy alternatives can be satisfied. Does anybody know how to call such a service?

bpmError policyWsdl

asked 11.04.2018 at 05:44

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122
accept rate: 77%


7.1.0 and newer:

You have two possibilities, when using Apache CXF as your client library:

  1. Ignore all policies: Many policies are optional and can be completely ignored. You can do this bis adding the feature IgnoreAllPoliciesFeature to your client web service configuration. alt text

  2. Ignore some policies: By adding the feature IgnorePolicyFeature you can specify with the property policy.ignore which policies you want to ignore in your web service client. The property value is a comma-separated list of form namespaceURI:policy, e.g.

    http://schemas.xmlsoap.org/ws/2005/07/securitypolicy:SupportingTokens,http://schemas.xmlsoap.org/ws/2005/07/securitypolicy:RecipientToken alt text


7.0 LTS and older

Many policies are optional and can be completely ignored. But the integrated Axis 1 and Axis 2 libraries are not able to handle them. The only way out is to patch the WSDL service definition. Remove all Policy declarations and their references and generate your service again against this modified WSDL.

link

answered 11.04.2018 at 05:46

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 12.04.2018 at 05:48

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×48
×8
×1

Asked: 11.04.2018 at 05:44

Seen: 7,298 times

Last updated: 12.04.2018 at 05:48