DIME attachments break double-byte characters using WSE 1.0 SP1

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

  1. #1

    Default 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 file, and it works with no problem. However, when I modify the web
    service to accept an attachment and save it to disk as well (resulting
    in 2 files saved - txt file and attachment) then any special characters
    in the text file (such as the N~ combination used in Spanish) appear as
    2 question marks "??".

    I have traced the HTTP traffic and see no difference in the datastream
    between the DIME and non-DIME versions of the web service call, with the
    obvious exception of the data added by the attachment.

    Is this fixed with WSE 2.0? If not, any clue as to why this is
    happening? I can provide source if necessary.
    Vaylor Trucks 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. 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...
    3. 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...
    4. FW Double byte characters & OS X
      Hi all, How do you copy and paste double byte characters to Fireworks MX? It worked for me in Mac OS 9 but not X. Thanks, Hendri
    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: DIME attachments break double-byte characters using WSE 1.0 SP1

    Hi Vaylor,


    How are you creating the text file? It sounds like an encoding problem
    that would happen if you saved as ASCII rather than using a unicode or
    UTF-8 encoding. If the XML coming in has one encoding and you write it out
    without accounting for an encoding difference, then the observed behaviors
    are expectable.

    I hope this helps

    Dan Rogers
    Microsoft Corporation

    --------------------
    >From: Vaylor Trucks <vaylor@hotmail.com>
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >Subject: DIME attachments break double-byte characters using WSE 1.0 SP1
    >Date: Wed, 27 Oct 2004 15:31:27 -0400
    >Organization: [url]http://newsguy.com[/url]
    >Lines: 14
    >Message-ID: <clot2c1es9@news1.newsguy.com>
    >NNTP-Posting-Host: p-108.newsdawg.com
    >Mime-Version: 1.0
    >Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    >Content-Transfer-Encoding: 7bit
    >User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
    >X-Accept-Language: en-us, en
    >Path:
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
    ul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!b
    order1.nntp.dca.giganews.com!nntp.giganews.com!pln-w!spln!dex!extra.newsguy.
    com!newsp.newsguy.com!news1
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26285
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >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 file, and it works with no problem. However, when I modify the web
    >service to accept an attachment and save it to disk as well (resulting
    >in 2 files saved - txt file and attachment) then any special characters
    >in the text file (such as the N~ combination used in Spanish) appear as
    >2 question marks "??".
    >
    >I have traced the HTTP traffic and see no difference in the datastream
    >between the DIME and non-DIME versions of the web service call, with the
    >obvious exception of the data added by the attachment.
    >
    >Is this fixed with WSE 2.0? If not, any clue as to why this is
    >happening? I can provide source if necessary.
    >
    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