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
Send SOAP with filename in request
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: Send SOAP with filename in request
I don't understand. This is just a string of text, you can put anything you want in it -- HTTPAPI doesn't care what you put there. What problem are you having?
Re: Send SOAP with filename in request
Sorry Scott ignore this message.
Was given wrong information on the structure of the SOAP request.
The data needs to be where the filename was. Just need to encrypt the data into BASE64 before sending it to the URL.
Was given wrong information on the structure of the SOAP request.
The data needs to be where the filename was. Just need to encrypt the data into BASE64 before sending it to the URL.