# Using my Fake SOAP request with WCF

**URL:** <https://community.postman.com/t/using-my-fake-soap-request-with-wcf/3429>\
**Category:** Help Hub\
**Tags:** soap\
**Created:** [November 28, 2018, 8:16pm UTC](https://community.postman.com/t/using-my-fake-soap-request-with-wcf/3429 "2018-11-28T20:16:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minoseah629](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/minoseah629/32/1129_2.png) [@minoseah629](https://community.postman.com/u/minoseah629)\
**Post date:** [November 28, 2018, 8:16pm UTC](https://community.postman.com/t/using-my-fake-soap-request-with-wcf/3429/1 "2018-11-28T20:16:49Z")

</div>

I am trying to use a mock server to return soap requests back to me.

I have my WCF application to invoke these mock requests.

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/e/e50778c9640b6236752746e98227c014c99e95d6.png)

But when I see the response of the request, I get a System.ServiceModel.ProtocolException exception.

But I can see part of my fake request response in the error message.

```auto
"The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. 

The first 1024 bytes of the response were: '<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:v2=\"http://mil.dod.af.A1.personnel.dataservices.accessions/v2.0\" xmlns:mil=\"http://mil.dod.af.A1.personnel.dataservices.cleartext\">\r\n <soap:Header/>\r\n <soap:Body>\r\n <v2:retrieveCommissionAgreementResponse>\r\n <!--Zero or more repetitions:-->\r\n <CommisionAgreement Id=\"\">\r\n <!--Optional:-->\r\n <v2:Adn>\r\n <!--Optional:-->\r\n <mil:Code></mil:Code>\r\n <!--Optional:-->\r\n <mil:Value></mil:Value>\r\n </v2:Adn>\r\n <!--Optional:-->\r\n <v2:CompCategory>\r\n <!--Optional:-->\r\n <mil:Code></mil:Code>\r\n <!--Optional:-->\r\n <mil:Value></mil:Value>\r\n </v2:CompCategory>\r\n <!--Optional:-->\r\n <v2:EffectiveBeginDate>2010-01-01</v2:EffectiveBeginDate>\r\n <!--Optional:-->\r\n <v2:SourceOfCommission>\r\n <!--Optional:--'."

```

The content type is shown as text/html instead of application/soap+xml

---

<div class="post-metadata">

**Author:** ![minoseah629](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/minoseah629/32/1129_2.png) [@minoseah629](https://community.postman.com/u/minoseah629)\
**Post date:** [November 29, 2018, 3:02pm UTC](https://community.postman.com/t/using-my-fake-soap-request-with-wcf/3429/2 "2018-11-29T15:02:03Z")

</div>

I figured it out by making the Example Response header to have the Content-Type as Application/Soap+xml.
