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.
|
|
1251
|
WCF client call error: <Error Description>
|
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.
|
<Project Folder>\WCFClient\<ResourceName>\XSD\<contract name>\Fault\
o The Schema file generated under this folder will contain the Error element.
<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.
WCFCustomFault=N
(Since version: 4.9)
|
Error Handling in Magic xpi