ISwATransport::ContentType Property

[propget] HRESULT ContentType([out, retval] BSTR * contentType);
[propput] HRESULT ContentType([in] BSTR contentType);

This is typically text/xml; charset=UTF-8 by default, however for transporting SwA messages it should be changed to mutlipart/related, and for DIME it should be application/dime. (Note that the Attachments manager will do this for you)


Return Values

The current value of the request content type header


Sample Code

		dim t as object, swat as ISwATransport
		set t = CreateObject("pocketSOAP.HTTPTransport.2")
		set swat = t
		swat.ContentType = "mutlipart/related; boundary=""MimeBoundary_42""; start="""" type=text/xml"
		t.Send "", BuildSWAPayload()


See Also

The ISwATransport Interface | 




Copyright © Simon Fell, 2000-2004. All rights reserved.