Policy Exception when using MS Dynamics AX 2012R2 SOAP Web Service with RA Web Service Agent v4

Document ID : KB000087945
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
java.lang.RuntimeException: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.

Version 4 of the RA Web Service SOAP Agent results in the above Java Exception when creating a SOAP Web Service JOBS object against a MS Dynamics AX 2012R2 server.

Investigation

  1. Create a CONN.WEBSERVICE.SOAP with these settings:
  1. Then use it in a RA Webservice SOAP job.
  2. Select an operation 
Results

Actual: T
he error "java.lang.RuntimeException: java.lang.RuntimeException: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied." is displayed.

Expected:  The Job should be created with no errors.
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: RA Webservice SOAP 4.0 doesn't allows XML to be send as SOAP request.
Resolution:
Update to a fix version listed below or a newer version if available where the RA Web Service SOAP version allows any XML to be sent as a SOAP request.

 

Fix Status: Released

Fix Version(s):
RA Web Service SOAP 4.1.0 - Available
Additional Information:
Workaround :
N/A