Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

c# web service returns xml on most calls, but one returns binary

Hi,
I am not sure how to handle this.  I have a web service that returns xml and everything was working well.  I was making requests and getting the response.  Apparently one function call streams binary data.  I am not sure how to deal with this.

Here is my code:
                XMLHTTP xmlHttp = new XMLHTTP();
                xmlHttp.open("POST", queryString, false, _userId, _password);
                xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                xmlHttp.setRequestHeader("Accept",
                                         "Accept      image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*");
                xmlHttp.send(postData);
                apiResponse.XmlHeaders = xmlHttp.getAllResponseHeaders();
                apiResponse.XmlResponse = xmlHttp.responseText;
ASKER CERTIFIED SOLUTION
Avatar of HugoHiasl
HugoHiasl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial