I have a wcf service set up to accept basic http binding. I want to send an excel file from perl soap lite to my wcf service. What is the simpliest way to send this file? I was looking at mtom/mime, but they seem complicated and I don’t know if soap lite uses mtom/mime. I was also thinking of using base64 string to encode the file first, then send it. If I use base64 encode, what datatype should I specify as the operation contract parameter?
Share
byte[] will be automatically base64 encoded and is the most robust and compatible way of sending binary attachments. I would not use anything esle unless I completely controlled both sides of conversation (and if I did always control both sides I wouldn’t use SOAP).