Question

How do I get exception details from third party services (SOAP Connectors are created by Connector Wizard) ? We get only "SOAP Service Failed" message.

Hi all,

I am currently creating my SOAP Connectors with wizard on Pega 7.1.7.
And I want to see the details of fault exceptions that are thrown by third party services. 

I have tried a number of ways to do that;
-Catch the exception detail with try-catch block in java, 
-Catch the exception detail with try-catch block in an activity 
-Look into the clipboard to see if exception detail already exists.
-And I create manually the XSLT request and response files, the service, and an activity that calls the service. By this manually created service, I can catch the exception detail. But I don't want to use this way because of loosing the benefits of connector wizard. And this way also brings a lot of rework for existing connectors. I want to take advantage of connector wizard and ofcourse don't want to do that much rework.

Any help is appreciated.

Thank you.

Group Tags

Comments

Keep up to date on this post and subscribe to comments

August 25, 2016 - 3:56am

Hi,

A SOAP fault is an error in a SOAP communication resulting from an incorrect message format, header-processing problems, or incompatibility between applications. When a SOAP fault occurs, a special message is generated that contains data indicating where the error originated and what caused it. The properties on the faults tab allows us to map the faults details returned and handle the error appropriately.

I guess this might be helpful for you.

Regards,

Ravi

August 31, 2016 - 4:34am

Hi Ravi,

Thank you for your answer.

I have already considered the faults tab. If you could show me an example, it woluld be more helpfull.

Thanks again

Regards

Oguzhan

Pega
September 7, 2016 - 8:07am

You can use the fault tab for that.

In fault tab you have target property which you can use to see the complete response.

Moreover, if the service is providing the fault details then only you can use it.

In case before reaching the service, you are having the error, like connectivity error or some operational error, then you could use the error handling present in the service tab of connect soap.

September 7, 2016 - 8:28am

Hi ranjr,

Actually I am reaching the third party service. But I am getting exceptions in the third party service operations. I see these exceptions on the third party side, but I cannot see/reach them on pega side.

 

You said "In fault tab you have target property which you can use to see the complete response." above. Can you give me an example with this. I need an example because whatever I did on the fault tab, I couldn't see the exception details.

Thank you very much,

Oguzhan.