The above statement is not working. I print the MimeHeaders before the connection call and following is the output:
Name:Accept Value :application/soap+xml, text/html, image/gif, image/jpeg, *;
q=.2, */*; q=.2
Name:content-type Value :application/soap+xml; charset=utf-8
Name:Content-ID Value :<BodyPart>
Name:content-transfer-encoding Value :7bit
Name:Content-Length Value :7208
Why is the Content-Type not getting replaced with the new value?