title: Configuring HTTP POST request from Nifi
body: <p>I am trying to access a WCF service from a REST client. I am sending a POST request from a REST client to a WCF service. For your reference, the detail is as follows. </p>
  
  <p>The <strong>Service Contract</strong> definition is as follows:</p>
  
  <pre><code>[ServiceContract]
  public interface IBZTsoftsensor_WcfService {
  
  [OperationContract]
  [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,  ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/data")]
     string ExecuteModelJson(string inputModel);
  }
  </code></pre>
  
  <p>And the implementation of this interface is as follows:</p>
  
  <pre><code>public string ExecuteModelJson(string inputModel){
    try
    {
      BZTsoftsensor_ModelInput input =   JsonConvert.DeserializeObject&lt;BZTsoftsensor_ModelInput&gt;(inputModel);
    var results = this.ExecuteModel(input);
    return JsonConvert.SerializeObject(results);
    }
    catch (Exception ex)
    {
      return ex.Message;
    } 
   }
  </code></pre>
  
  <p>From a REST client, I am requesting this WCF  Service as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/PLO66.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PLO66.png" alt="enter image description here"></a>
  As an extension, I have to access this WCF service from a NiFi processor. <strong>Could you please advise me how can I configure a processor in Nifi to access this WCF service?</strong> In Nifi processor, there is a <code>POSTHTTP</code> processor (documentation: <a href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PostHTTP/index.html" rel="noreferrer">https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.PostHTTP/index.html</a>) is available, however I am wondering how could I configure it?  </p>
  
  <p>OR possibly there could be other processor to be used <code>invokeHTTP</code> ?? (documentation: <a href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.InvokeHTTP/index.html" rel="noreferrer">https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.InvokeHTTP/index.html</a> ) </p>
  
  <p>I have tried to configure invokeHTTP processor. The following are configuration parameters. But, I am not able to access a WCF service.</p>
  
  <p><a href="https://i.stack.imgur.com/xCnj2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xCnj2.png" alt="enter image description here"></a> 
  and more paremeters are as follows:
  <a href="https://i.stack.imgur.com/HNuAO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HNuAO.png" alt="enter image description here"></a></p>