SOAP call in HTTP_POLLER with body


I'm trying to retrieve logs from a SOAP WS, I tried several options but no luck so far.
The main issue is related with the namespaces that requires quotations.

I tested several options:

  1. Escaping quotes with \ , the result is that the target system receives the \ into the urls therefore the request is not valid.
  2. Using single quotes instead of double quotes, the result is that the yaml is not well formated and it does not work ERROR: Failed to read pipelines yaml file.
  3. All the other way around single quotes to group the body with double quotes has the same result ERROR: Failed to read pipelines yaml file.

Am I missing something?

Please find below the pipeline that I'm using

- test_soap
  pipeline.workers: 1
  pipeline.batch.size: 1
  config.string: '
    input {
        http_poller {
            urls => {
                soap_request => {
                    method => post                   
                    url => ""
                    headers => {
                        "Content-Type" => "text/xml;charset=UTF-8"
                        "SOAPAction" => ""
                    body => " 
                            <soapenv:Envelope xmlns:soapenv='' xmlns:ns=''>
            request_timeout => 60
            schedule => { cron => "* * * * * UTC"}
            codec => "plain"
        stdout {}

Use config.path instead of config.string and put the configuration into a file.

Thanks a lot, now I can continue :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.