Doubt in SOAP with DIME attachments!

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Doubt in SOAP with DIME attachments!

    Hi!

    I was going through the WSE 2.0 documentation to try SOAP with DIME
    attachments. The example shows the server sending an image file and
    the client displaying it in a picture box control. How do I do it, if
    the server has to say eg a doc/text/pdf file and the client has to
    read that and show that in a textbox control. Also how will the client
    save it on to its local machine.

    Please help me in this matter.

    Thanks
    Ipsita
    Ipsita Guest

  2. Similar Questions and Discussions

    1. DIME Attachments & WSDL
      I was working on WSE 2.0 & DIME. I used the Attachments sample provided by SDK and saved the SOAP request (with headers) into a file. What I noticed...
    2. DIME attachments break double-byte characters using WSE 1.0 SP1
      Using the .NET framework and WSE 1.0 SP1, I have built a web service which receives data from a web service client and saves it to disk in a text...
    3. How to send a DIME attachment with SOAP
      Hi! I am trying SOAP with DIME attachments in web services. The web service sends the file as attachment say "test.doc", and the client has to...
    4. Using DIME Attachments with AXIS 1.1
      I try to to post attachments to a server from a client app. The attachments can be very large 200MB or more. The server and a proxy class for the...
    5. SOAP with Attachments using MIME, no DIME
      Hello Craig - Many have asked for this, but MS hasn't widely publicized the fact that MSDN magazine had a sample back in Feb....
  3. #2

    Default RE: Doubt in SOAP with DIME attachments!

    Hi Ipsita,

    When you consider that display of a particular file types requires the
    appropriate display target (e.g. a picture box for a picture, an instance
    of word for a word document, and an instance of Acrobat Reader for PDF
    files, etc, I doubt that you'll be successful in displaying every
    non-picture file type in a text box.

    If you think about how the web browser might be able to associate the files
    it receives from an HTTP GET request and launch the right viewers, you can
    observe that the first thing that happens is that the file is saved to
    disk. And then a shellExecute win32 call is launched, passing the file
    name, including its extension. The normal windows extension mechanism does
    the rest.

    For a .Net client, writing the file is simple - you could use a
    streamwriter, or whatever is appropriate. Don't use a textwriter to write
    a binary file, however. Then to launch the right viewer, you need to
    launch the right reader (e.g.)
    System.Diagnostics.Process.Start(new
    System.Diagnostics.ProcessStartInfo(path));
    Passing the right path to the file you've written.

    If you have a control that is compatible with the data you received in the
    attachment, such as a text box for a unicode string, you can direclty
    assign the instance of the data to the control. You cannot just assign a
    binary word document in memory to a text box, however, as you would need a
    special control that has a property that is capable of decoding a word
    document file from an in memory instance.

    I hope this helps

    Dan Rogers
    Microsoft Corporation
    --------------------
    >From: [email]ipsita.mohanty@gmail.com[/email] (Ipsita)
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >Subject: Doubt in SOAP with DIME attachments!
    >Date: 25 Oct 2004 22:16:43 -0700
    >Organization: [url]http://groups.google.com[/url]
    >Lines: 13
    >Message-ID: <ef1b2b65.0410252116.31edba6c@posting.google.com >
    >NNTP-Posting-Host: 24.6.231.155
    >Content-Type: text/plain; charset=ISO-8859-1
    >Content-Transfer-Encoding: 8bit
    >X-Trace: posting.google.com 1098767803 27715 127.0.0.1 (26 Oct 2004
    05:16:43 GMT)
    >X-Complaints-To: [email]groups-abuse@google.com[/email]
    >NNTP-Posting-Date: Tue, 26 Oct 2004 05:16:43 +0000 (UTC)
    >Path:
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
    ul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mail
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26236
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >Hi!
    >
    >I was going through the WSE 2.0 documentation to try SOAP with DIME
    >attachments. The example shows the server sending an image file and
    >the client displaying it in a picture box control. How do I do it, if
    >the server has to say eg a doc/text/pdf file and the client has to
    >read that and show that in a textbox control. Also how will the client
    >save it on to its local machine.
    >
    >Please help me in this matter.
    >
    >Thanks
    >Ipsita
    >
    Dan Rogers Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139