Loading ...
Sorry, an error occurred while loading the content.

9481No definition for ResponseSoapContext

Expand Messages
  • Sendhil Annamalai
    Sep 30, 2003
      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
       
       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
    • Show all 2 messages in this topic