Send SOAP with filename in request

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
cesarios
Posts: 2
Joined: Sun Mar 05, 2023 2:18 am

Send SOAP with filename in request

Post 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
Scott Klement
Site Admin
Posts: 635
Joined: Sun Jul 04, 2021 5:12 am

Re: Send SOAP with filename in request

Post 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?
cesarios
Posts: 2
Joined: Sun Mar 05, 2023 2:18 am

Re: Send SOAP with filename in request

Post 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.
Post Reply