Hello everybody
I'm trying to send a XML file in a form-data like this, but is not working. Can anyone help me with the code?
This is my code:
Set HttpRequest = ##class(%Net.HttpRequest).%New()
Set RootMIMEPart = ##class(%Net.MIMEPart).%New()
Set BinaryMIMEPart = ##class(%Net.MIMEPart).%New()
Set stream = ##class(%FileBinaryStream).%New()
Set stream.Filename = pRequest.file
Do stream.LinkToFile(pRequest.file)
Set BinaryMIMEPart.Body = stream
// I already used "application/x-www-form-urlencoded", "application/xml", "application/x-object" in Content-Type