Hello, With InvokeHTTP, you can add dynamic properties, which will be sent in the request as headers. You can use dynamic properties to set values for the Content-Type and SOAPAction headers, just use the header names for the names of the dynamic properties. InvokeHTTP lets you control the HTTP method, so you can set that to POST. The remaining step would be to get the content of request.xml to be sent to the InvokeHTTP as a flowfile. One way to do this is to use a GetFile processor to fetch requeset.xml from some location on the filesystem, and pass the success relationship of GetFile to InvokeHTTP.
On Wed, Aug 24, 2016 at 7:06 PM mliem90 <matt.l...@gmail.com> wrote: > Hello, > > I am looking to do a SOAP Web service call and was told invokeHTTP may be > able to work. Wonder how I would be able to do this. For example, using > curl > I could invoke SOAP like the below: > > curl -X POST -H "Content-Type: text/xml" -H "SOAPAction: > "http://www.webserviceX.NET/GetCitiesByCountry"" --data-binary > @request.xml > http://www.webservicex.net/globalweather.asmx > > the request.xml: > <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" > xmlns:web="http://www.webserviceX.NET"> > <soap:Header/> > <soap:Body> > <web:GetCitiesByCountry> > > <web:CountryName>CANADA</web:CountryName> > </web:GetCitiesByCountry> > </soap:Body> > </soap:Envelope> > > I Appreciate the help! > > > > -- > View this message in context: > http://apache-nifi-developer-list.39713.n7.nabble.com/SOAP-Service-through-InvokeHTTP-tp13129.html > Sent from the Apache NiFi Developer List mailing list archive at > Nabble.com. >