Forum Discussion
richie
Community Hero
Hey akashbam
Is there a reason you're trying to attach the file using code rather than the embedded functionality available in SoapUI?
Adding attachments to a SOAP message is pretty straightforward if you follow the instructions here --> https://support.smartbear.com/readyapi/docs/requests/attachment/soap.html
Reply back if you're still struggling after trying the instructions
Cheers,
Rich
akashbam
3 years agoNew Contributor
Thanks richie for your response.
Well, I want to attach a file with code(python). I am calling soap API and binding it with with web service(createAttachment) which accepts parameter as
import zeep
client.service.createAttachment(sid=788139782, repositoryHandle='doc:1002', objectHandle='cr:1306591599', description='Test file', fileName='Test Data')
I'm able to attach a file using soapUI but want to do the same using python.
Thanks,
Akash
Related Content
- 9 years ago
- 2 years ago
- 3 years ago
Recent Discussions
- 15 years ago