Page 1 of 1

Send SOAP with filename in request

Posted: Sun Mar 05, 2023 2:42 am
by cesarios
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

Re: Send SOAP with filename in request

Posted: Thu Mar 09, 2023 5:37 am
by Scott Klement
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

Posted: Thu Mar 09, 2023 8:54 pm
by cesarios
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.