Hello,
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:
- Escaping quotes with \ , the result is that the target system receives the \ into the urls therefore the request is not valid.
- 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.
- 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
- pipeline.id: test_soap
pipeline.workers: 1
pipeline.batch.size: 1
config.string: '
input {
http_poller {
urls => {
soap_request => {
method => post
url => "http://demo1249991.mockable.io/test"
headers => {
"Content-Type" => "text/xml;charset=UTF-8"
"SOAPAction" => ""
}
body => "
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns='http://demo1249991.mockable.io/service/1'>
<soapenv:Header/>
<soapenv:Body>
<ns:operationRequest>None</ns:operationRequest>
</soapenv:Body>
</soapenv:Envelope>
"
}
}
request_timeout => 60
schedule => { cron => "* * * * * UTC"}
codec => "plain"
}
}
output{
stdout {}
}'