Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

SOAP: GetFileData - Error Downloading File

$
0
0

Topic by Christopher Farmer

Content

Hi,

I'm trying to download a file attachment using the GetFileData function available with a SOAP client provided by the WSDL API.

Whenever I call the function, I receive the following error message:

The content type multipart/related; boundary=MIMEBoundaryb80b7af6-74b2-1e31-28f7-0030489f128c; type="application/xop+xml"; start="<0.b80b7b0a-74b2-1e31-28f8-0030489f128c@apache.org>"; start-info="text/xml"; charset="UTF-8" of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 50 bytes of the response were: '--MIMEBoundaryb80b7af6-74b2-1e31-28f7-0030489f128c'.

The code I'm using is:

byte[] data = RightNowWebService.Instance.GetFileData(hdr, incident, id, false);

However, when I change the "DisableMTOM" Boolean value to true, the data is returned successfully. Would anyone know why this is? I don't particularly want to disable MTOM.

The custom binding I'm using on the web service is given in the code block.

Any ideas? I've Googled a little but the results are inconclusive.

Thanks.

Version

February 2013 (Build 123) SP5

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles