Salesforce

How Do I Consume a Web Service with Faults Using WCF? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Consume a Web Service with Faults Using WCF? (Magic xpa 3.x)

When consuming Web services, sometimes the Web service returns a fault and you need to work with it. Here we’ll show you how to do that.

  1. Define an Invoke .NET operation and zoom to the .NET Code dialog box.

Below you can see an example of .NET code that retrieves information from the fault of a Web service.

  1. You will first add code that will send the request. This is the code marked below in purple.

  2. You now will add code that will retrieve the information from the fault. This is the code marked below in blue.

Certain items in the code above refer to our specific example.

  1. Tailor the code above with the items from your schema.

You can see below, which items are specific to the schema in the image below.

See also

How Do I Consume a WCF Web Service?

Reference
Attachment 
Attachment