---
schema_version: "1"
id: b3042dbad1eec89e5da958f46118c4b459d443acbb98b2ad4be91b5589c71bb7
title: Web Service Consumer Connector Examples
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/web-service-consumer-connector/2.1/web-service-consumer-examples.md
canonical_url: https://docs.mulesoft.com/web-service-consumer-connector/2.1/web-service-consumer-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2abdf696e42310ebd7d2b4ee126f0d3d28c02f96338b86137f718abeec5eaffa
description: MuleSoft Documentation Site
release: "2.1"
latest: false
---
---
product: Web Service Consumer Connector
version: 2.1
---

# Web Service Consumer Connector Examples

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The following examples illustrate how to configure Anypoint Connector for Web Service Consumer (Web
Service Consumer) Connector operations both in Anypoint Studio and the XML editor.

- [Web Service Consumer Connector Example 1](https://docs.mulesoft.com/web-service-consumer-connector/2.1/web-service-example-1) This example transforms a
  variable value into XML and pass that value to the Web Service Consumer Connector, which
  subsequently consumes a web service.

- [Web Service Consumer Connector Example 2](https://docs.mulesoft.com/web-service-consumer-connector/2.1/web-service-example-2) This example list an inventory
  of t-shirts and the Web Service Consumer Connector returns if there is an error such as
  `BAD_RESPONSE` or `EMPTY_RESPONSE`.

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Salesforce Help](https://help.salesforce.com)
