No definition for ResponseSoapContext

Sendhil Annamalai <[email protected]> Tue, 30 Sep 2003 13:45:52 -0700
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
hi,
   I need to write an application which needs to transfer a binary file from client to server. I will be able to send it as DIME attachment along with the SOAP message.

Iam trying to run this example which uses WS Attachments
http://www.xmlforasp.net/codeSection.aspx?csID=96

 Its a ChartingWebservice. The client sends and Xml file, the webservice generates a chart and send the image back to the client as a DIME attachmet. Iam getting a build error in the part where the client recieves the file.

Error: Webservice does not contain a definition for ResponseSoapContext.

I have attached a portion of the code
-------------------------------
proxy.GenerateChartImage(xmlDoc);                                                                           if (proxy.ResponseSoapContext.Attachments.Count > 0)         -----> error here{                                                                                                                              b = new Bitmap(proxy.ResponseSoapContext.Attachments[0].Stream);        -----> error MemoryStream s = new MemoryStream();                                                           b.Save(s,ImageFormat.Png);                                                              Response.ContentType = "image/png";                                                               s.WriteTo(Response.OutputStream);                                                                           -------------------------------

I think that iam missing something. can anyone tell me why iam getting this error.


Thanks
sendhil





---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search