Salesforce

WCF Client - Error Handling (Magic xpi 4.9)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

WCF Client - Error Handling (Magic xpi 4.9)

The Magic xpi Server checks for errors during the execution of a step. If there is an error in a WCF Client connector step, the Error Handler is invoked and handles the error.

The error code for the WCF Client connector is shown below. You can also use Magic xpi's General Component Errors with the WCF Client connector. The codes are returned to the Magic xpi Server in the Invocation program’s Error Code parameter.

Error Code

Description

1251

WCF client call error: <Error Description>

Handling Custom Fault Object

When the WCF Client throws a Fault, the Operation Success value will be returned as False and the Store Result In field will hold the information about the General Error details or Custom Fault object. In case of General Error, the schema file Schema0.xsd will be used to parse the General error in response xml. In case of Custom Fault object, the schema file Error.xsd, which is generated per operation, will be used to parse the custom fault response xml.

  • The General error schema files will be generated per Contract and are located under the following directory:

<Project Folder>\WCFClient\<ResourceName>\XSD\<contract name>\Fault\

o The Schema file generated under this folder will contain the Error element.

  • The Custom fault schema files will be generated per Contract and per Operation and are located under the following directory:

<Project Folder>\WCFClient\<ResourceName>\XSD\<contract name>\<operation>\Fault\

o The Error schema file generated under this folder will have a reference to the Fault schema file generated for the Custom fault.

  • The Custom Fault support is enabled by default and WCF client will set the Custom Fault. To disable the Custom Fault support, set the following property in the Magic.ini or ifs.ini file.

WCFCustomFault=N

(Since version: 4.9)

Related Topics

Reference
Attachment 
Attachment