Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAPFault is not picked up by EI 6.5.0 #5561

Open
Menuka-Senevirathne opened this issue May 3, 2022 · 0 comments
Open

SOAPFault is not picked up by EI 6.5.0 #5561

Menuka-Senevirathne opened this issue May 3, 2022 · 0 comments

Comments

@Menuka-Senevirathne
Copy link

Description:
The actual Error Response sent from the backend is not assigned to the Error Message in fault sequence.

Suggested Labels:
EI 6.5.0

Steps to reproduce:

  1. Get EI 6.5.0.
  2. Implement the following proxy along with the fault sequence.
  3. Make sure to deploy the SalesForce Connector as well.
  4. Once you invoke the Proxy, the fault sequence will be engaged but the actual details won't be assigned to ERROR_MESSAGE.

Proxy

<?xml version="1.0" encoding="UTF-8"?>
<proxy name="Support" startOnLoad="true" transports="http https" xmlns="http://ws.apache.org/ns/synapse">
<target>
<inSequence>
<sequence key="SupportIn"/>
</inSequence>
<outSequence/>
<faultSequence/>
</target>
</proxy>

Sequence

<?xml version="1.0" encoding="UTF-8"?>
<sequence onError="SupportError" name="SupportIn" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<log level="custom">
<property name="MSG" value="====== IN"></property>
</log>
<property description="Set Blocking true" name="sfdcBlockingCall" scope="default" type="STRING" value="true"/>
<salesforce.init>
<username>dummy</username>
<password>dummy</password>
<loginUrl>https://test.salesforce.com/services/Soap/u/47.0</loginUrl>
<blocking>\{$ctx:sfdcBlockingCall}</blocking>
</salesforce.init>
<log level="custom">
<property name="MSG" value="====== OUT"></property>
</log>
</sequence>

Error Sequence

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="SupportError" trace="disable" xmlns="http://ws.apache.org/ns/synapse">
<log level="custom">
<property name="MSG" value="====== ERROR"></property>
</log>
<log category="ERROR" description="Error-message-log" level="custom">
<property expression="$ctx:INTG_NAME" name="COMPONENT"/>
<property expression="get-property('ERROR_MESSAGE')" name="ERROR_MESSAGE_LOG"/>
<property expression="get-property('ERROR_DETAIL')" name="ERROR_DETAIL"/>
<property expression="get-property('ERROR_EXCEPTION')" name="ERROR_EXCEPTION"/>
<property expression="get-property('ERROR_CODE')" name="ERROR_CODE"/>
<property expression="$body" name="ERROR_BODY"/>
</log>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant