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-Ty pe", "application/x-www-form-ur lencoded") ;
xmlHttp.setRequestHeader(" Accept",
"Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpo int, application/vnd.ms-excel, application/msword, application/x-shockwave-fl ash, */*");
xmlHttp.send(postData);
apiResponse.XmlHeaders = xmlHttp.getAllResponseHead ers();
apiResponse.XmlResponse = xmlHttp.responseText;
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("
xmlHttp.setRequestHeader("
"Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpo
xmlHttp.send(postData);
apiResponse.XmlHeaders = xmlHttp.getAllResponseHead
apiResponse.XmlResponse = xmlHttp.responseText;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.