title: Soap request in postman
body: <p>I have a PHP Soap request that i am trying to carry over to C#. I have never used Soap before and i am super confused with its request/response structure.</p>
  
  <p>I am trying to test this in POSTMAN before i get coding.</p>
  
  <p>Here are my postman settings:</p>
  
  <pre><code>URL=http://example.com/service1.svc?singleWsdl
  contentType=text/xml
  </code></pre>
  
  <p>Here is the PHP code that is being used that works just fine:</p>
  
  <pre><code>$client = new SoapClient($wsdlurl, $options);
  $customerData = $client-&gt;NewCustAddDC($params);
  </code></pre>
  
  <p>Here the <code>$params</code> is a array that looks like this:</p>
  
  <pre><code>&lt;NewCustomerAdd&gt;
    &lt;InitParameters&gt;
      &lt;InitOrderLines&gt;
        &lt;InitPartDesc /&gt;
        &lt;InitPartSKU&gt;test&lt;/InitPartSKU&gt;
        &lt;InitQuantity&gt;1&lt;/InitQuantity&gt;
      &lt;/InitOrderLines&gt;
      &lt;InitOrderLines&gt;
        &lt;InitPartDesc /&gt;
        &lt;InitPartSKU&gt;test&lt;/InitPartSKU&gt;
        &lt;InitQuantity&gt;1&lt;/InitQuantity&gt;
      &lt;/InitOrderLines&gt;
      &lt;InitOrderLines&gt;
        &lt;InitPartDesc /&gt;
        &lt;InitPartSKU&gt;test&lt;/InitPartSKU&gt;
        &lt;InitQuantity&gt;1&lt;/InitQuantity&gt;
      &lt;/InitOrderLines&gt;
    &lt;/InitParameters&gt;
    &lt;TemplateParameters&gt;
      &lt;TemplateOrderLines&gt;
        &lt;TemplatePartDesc /&gt;
        &lt;TemplatePartSKU&gt;test&lt;/TemplatePartSKU&gt;
        &lt;TemplateQuantity&gt;1&lt;/TemplateQuantity&gt;
      &lt;/TemplateOrderLines&gt;
      &lt;TemplateOrderLines&gt;
        &lt;TemplatePartDesc /&gt;
        &lt;TemplatePartSKU&gt;test&lt;/TemplatePartSKU&gt;
        &lt;TemplateQuantity&gt;1&lt;/TemplateQuantity&gt;
      &lt;/TemplateOrderLines&gt;
      &lt;TemplateOrderLines&gt;
        &lt;TemplatePartDesc /&gt;
        &lt;TemplatePartSKU&gt;test&lt;/TemplatePartSKU&gt;
        &lt;TemplateQuantity&gt;1&lt;/TemplateQuantity&gt;
      &lt;/TemplateOrderLines&gt;
    &lt;/TemplateParameters&gt;
    &lt;PetInfoParameters&gt;
      &lt;PetInfoLines&gt;
        &lt;DateModified&gt;&lt;/DateModified&gt;
        &lt;PetFirstName&gt;test&lt;/PetFirstName&gt;
        &lt;PetID&gt;1&lt;/PetID&gt;
        &lt;PetLastName /&gt;
        &lt;ServiceRelated /&gt;
        &lt;Species /&gt;
        &lt;Weight&gt;1&lt;/Weight&gt;
      &lt;/PetInfoLines&gt;
      &lt;PetInfoLines&gt;
        &lt;DateModified&gt;&lt;/DateModified&gt;
        &lt;PetFirstName&gt;test&lt;/PetFirstName&gt;
        &lt;PetID&gt;1&lt;/PetID&gt;
        &lt;PetLastName /&gt;
        &lt;ServiceRelated /&gt;
        &lt;Species /&gt;
        &lt;Weight&gt;1&lt;/Weight&gt;
      &lt;/PetInfoLines&gt;
    &lt;/PetInfoParameters&gt;
    &lt;SYSPROCustomerID /&gt;
    &lt;CustomerFirstName&gt;test&lt;/CustomerFirstName&gt;
    &lt;CustomerLastName&gt;test&lt;/CustomerLastName&gt;
    &lt;CustomerDesignation /&gt;
    &lt;CustomerPrimaryEmail&gt;test&lt;/CustomerPrimaryEmail&gt;
    &lt;CustomerEmail2 /&gt;
    &lt;CustomerPrimaryPhone&gt;test&lt;/CustomerPrimaryPhone&gt;
    &lt;CustomerPhone2 /&gt;
    &lt;CustomerBillToAddress1&gt;test&lt;/CustomerBillToAddress1&gt;
    &lt;CustomerBillToAddress2&gt;test&lt;/CustomerBillToAddress2&gt;
    &lt;CustomerBillToCity&gt;test&lt;/CustomerBillToCity&gt;
    &lt;CustomerBillToState&gt;test&lt;/CustomerBillToState&gt;
    &lt;CustomerBillToZip&gt;test&lt;/CustomerBillToZip&gt;
    &lt;CustomerCountry&gt;test&lt;/CustomerCountry&gt;
    &lt;AuthorizeCustomerProfileID&gt;test&lt;/AuthorizeCustomerProfileID&gt;
    &lt;AuthorizePaymentProfileID&gt;test&lt;/AuthorizePaymentProfileID&gt;
    &lt;ShipAddress1&gt;test&lt;/ShipAddress1&gt;
    &lt;ShipAddress2&gt;test&lt;/ShipAddress2&gt;
    &lt;ShipCity&gt;test&lt;/ShipCity&gt;
    &lt;ShipState&gt;test&lt;/ShipState&gt;
    &lt;ShipZip&gt;test&lt;/ShipZip&gt;
    &lt;ShipDayofWeek&gt;test&lt;/ShipDayofWeek&gt;
    &lt;DeliveryInterval&gt;test&lt;/DeliveryInterval&gt;
    &lt;ShippingCosts&gt;test&lt;/ShippingCosts&gt;
    &lt;TaxCode /&gt;
    &lt;ShipVia&gt;test&lt;/ShipVia&gt;
    &lt;DeliveryNotes&gt;test&lt;/DeliveryNotes&gt;
    &lt;InitDeliveryDate&gt;test&lt;/InitDeliveryDate&gt;
    &lt;FirstRegOrderDeliveryDate&gt;test&lt;/FirstRegOrderDeliveryDate&gt;
    &lt;ReferralType&gt;test&lt;/ReferralType&gt;
    &lt;ReferralName&gt;test&lt;/ReferralName&gt;
    &lt;Last4Digits&gt;test&lt;/Last4Digits&gt;
    &lt;InitialCode&gt;test&lt;/InitialCode&gt;
    &lt;SpecialInstructions&gt;test&lt;/SpecialInstructions&gt;
  &lt;/NewCustomerAdd&gt;
  </code></pre>
  
  <p>I put that XML in the request body of POSTMAN but I get a </p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;s:Body&gt;
          &lt;s:Fault&gt;
              &lt;faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;a:ActionNotSupported&lt;/faultcode&gt;
              &lt;faultstring xml:lang="en-US"&gt;The message with Action 'NewCustAddDC' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).&lt;/faultstring&gt;
          &lt;/s:Fault&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p><strong>request body</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
          &lt;NewCustAddDC&gt;
       .....the xml from above goes here......
          &lt;/NewCustAddDC&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>What exactly am i doing incorrectly?</p>