wcf - Configuring HTTP POST request from Nifi -
i trying access wcf service rest client. sending post request rest client wcf service. reference, detail follows.
the service contract definition follows:
[servicecontract] public interface ibztsoftsensor_wcfservice { [operationcontract] [webinvoke(method = "post", requestformat = webmessageformat.json, responseformat = webmessageformat.json, bodystyle = webmessagebodystyle.wrapped, uritemplate = "/data")] string executemodeljson(string inputmodel); }
and implementation of interface follows:
public string executemodeljson(string inputmodel){ try { bztsoftsensor_modelinput input = jsonconvert.deserializeobject<bztsoftsensor_modelinput>(inputmodel); var results = this.executemodel(input); return jsonconvert.serializeobject(results); } catch (exception ex) { return ex.message; } }
from rest client, requesting wcf service follows:
extension, have access wcf service nifi processor. could please advise me how can configure processor in nifi access wcf service? in nifi processor, there
posthttp
processor (documentation: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.posthttp/index.html) available, wondering how configure it?
or possibly there other processor used invokehttp
?? (documentation: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.invokehttp/index.html )
i have tried configure invokehttp processor. following configuration parameters. but, not able access wcf service.
Comments
Post a Comment