Send SOAP with filename in request
Posted: Sun Mar 05, 2023 2:42 am
Have a issue where we are attempting a connection which requires the filename of the actual document to be imbedded within the request.
Can replicate the request within SOAPUI without an issue, the SOAPUI is below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org">
<soapenv:Header/>
<soapenv:Body>
<tem:Procesar>
<tem:login>
<tem:Usuario>2FwYWNpdGFjaW9uY</tem:Usuario>
<tem:Rut>MS05</tem:Rut>
<tem:Clave>cGxhbm85MTA5OA==?</tem:Clave>
<tem:Puerto>MA==</tem:Puerto>
<tem:IncluyeLink>1</tem:IncluyeLink>
</tem:login>
<tem:file>c:/Kyatt Logos/chinv64_0000003.txt</tem:file>
<tem:formato>2</tem:formato>
</tem:Procesar>
</soapenv:Body>
</soapenv:Envelope>
In the example the file is within <tem:file>.
I tried to put the file name that exists on the IFS without any luck.
Any suggestion and what is the best method to perform the post using HTTPAPI
Thanks, Tony
Can replicate the request within SOAPUI without an issue, the SOAPUI is below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org">
<soapenv:Header/>
<soapenv:Body>
<tem:Procesar>
<tem:login>
<tem:Usuario>2FwYWNpdGFjaW9uY</tem:Usuario>
<tem:Rut>MS05</tem:Rut>
<tem:Clave>cGxhbm85MTA5OA==?</tem:Clave>
<tem:Puerto>MA==</tem:Puerto>
<tem:IncluyeLink>1</tem:IncluyeLink>
</tem:login>
<tem:file>c:/Kyatt Logos/chinv64_0000003.txt</tem:file>
<tem:formato>2</tem:formato>
</tem:Procesar>
</soapenv:Body>
</soapenv:Envelope>
In the example the file is within <tem:file>.
I tried to put the file name that exists on the IFS without any luck.
Any suggestion and what is the best method to perform the post using HTTPAPI
Thanks, Tony