14 years ago
Content-Type Header
I am using SOAPUI 3.6.1 with an MTOM WS.
I can successfully send a request with an attachment into my repository from SOAPUI. I am having difficulty with the way that SOAPUI sends in the Content-Type. It tacks on a "name=xxx" suffix to the content-type. For example, when I pass in a JPG the SOAPUI sets the Content-Type header to:
Content-Type=image/jpeg; name=JPGPicture.jpg
My repository expects only:
Content-Type=image/jpg
It is very difficult to change this value once the document has been submitted to the repository so I am looking for a way to prevent SOAPUI from adding this extra information OR to override/replace the header that SOAPUI creates.
Thoughts?
I can successfully send a request with an attachment into my repository from SOAPUI. I am having difficulty with the way that SOAPUI sends in the Content-Type. It tacks on a "name=xxx" suffix to the content-type. For example, when I pass in a JPG the SOAPUI sets the Content-Type header to:
Content-Type=image/jpeg; name=JPGPicture.jpg
My repository expects only:
Content-Type=image/jpg
It is very difficult to change this value once the document has been submitted to the repository so I am looking for a way to prevent SOAPUI from adding this extra information OR to override/replace the header that SOAPUI creates.
Thoughts?