Transfer file between webservice and client

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sunny

    Transfer file between webservice and client

    Hi all,
    I have to prepare a webservice (framework 1.1, C#) and winapp client (fw
    1.1, C#). The service will prepare a file and soul send it to the
    client.
    Any help in that direction, how to implement file transfer between
    webservice and client?

    Thanks
    Sunny
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Transfer file between webservice and client

    Sunny,

    I have to ask, what is "soul send" or did you mean "should" =)

    You could always just base64 encode the bytes from the file and then
    send that down the line, but there are more elegant methods to transferring
    files. Check out the article from the December 2002 issue of MSDN titled
    "Sending Files, Attachments, and SOAP Messages Via Direct Internet Message
    Encapsulation", located at (watch for line wrap):

    Gain technical skills through documentation and training, earn certifications and connect with the community


    It should give you a good method for transferring files between a web
    service and a client (and in a standardized way as well!).

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Sunny" <sunnyask@icebe rgwireless.com> wrote in message
    news:MPG.19c7a0 d94b88c3f998968 8@msnews.micros oft.com...[color=blue]
    > Hi all,
    > I have to prepare a webservice (framework 1.1, C#) and winapp client (fw
    > 1.1, C#). The service will prepare a file and soul send it to the
    > client.
    > Any help in that direction, how to implement file transfer between
    > webservice and client?
    >
    > Thanks
    > Sunny[/color]


    Comment

    • Sunny

      #3
      Re: Transfer file between webservice and client

      In article <OJbbJDudDHA.32 48@tk2msftngp13 .phx.gbl>,
      nicholas.paldin o@exisconsultin g.com says...[color=blue]
      > Sunny,
      >
      > I have to ask, what is "soul send" or did you mean "should" =)
      >
      > You could always just base64 encode the bytes from the file and then
      > send that down the line, but there are more elegant methods to transferring
      > files. Check out the article from the December 2002 issue of MSDN titled
      > "Sending Files, Attachments, and SOAP Messages Via Direct Internet Message
      > Encapsulation", located at (watch for line wrap):
      >
      > http://msdn.microsoft.com/msdnmag/issues/02/12/DIME/
      >
      > It should give you a good method for transferring files between a web
      > service and a client (and in a standardized way as well!).
      >
      > Hope this helps.
      >
      >
      >[/color]

      Hi Nicholas,
      In the given situation it's really "soul" send :)

      So, maybe the DIME will be the way. But are there any sample code and
      standard classes both for preparing the DIME message (I saw that there
      is a parser in SOAP Toolkit 3.0". And how exactly should look the
      declaration of the web method, which sends the information. Any tools
      for VS.Net ?!?!
      Sorry for asking such a questions, but deadline was yesterday as always
      happens :)

      Thanks
      Sunny

      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Transfer file between webservice and client

        Sunny,

        There are no tools to integrate this into VS, but there should be code
        examples attached with the article.


        --
        - Nicholas Paldino [.NET/C# MVP]
        - nicholas.paldin o@exisconsultin g.com

        "Sunny" <sunnyask@icebe rgwireless.com> wrote in message
        news:MPG.19c7ad 66e1b7f4fb98968 a@msnews.micros oft.com...[color=blue]
        > In article <OJbbJDudDHA.32 48@tk2msftngp13 .phx.gbl>,
        > nicholas.paldin o@exisconsultin g.com says...[color=green]
        > > Sunny,
        > >
        > > I have to ask, what is "soul send" or did you mean "should" =)
        > >
        > > You could always just base64 encode the bytes from the file and then
        > > send that down the line, but there are more elegant methods to[/color][/color]
        transferring[color=blue][color=green]
        > > files. Check out the article from the December 2002 issue of MSDN[/color][/color]
        titled[color=blue][color=green]
        > > "Sending Files, Attachments, and SOAP Messages Via Direct Internet[/color][/color]
        Message[color=blue][color=green]
        > > Encapsulation", located at (watch for line wrap):
        > >
        > > http://msdn.microsoft.com/msdnmag/issues/02/12/DIME/
        > >
        > > It should give you a good method for transferring files between a[/color][/color]
        web[color=blue][color=green]
        > > service and a client (and in a standardized way as well!).
        > >
        > > Hope this helps.
        > >
        > >
        > >[/color]
        >
        > Hi Nicholas,
        > In the given situation it's really "soul" send :)
        >
        > So, maybe the DIME will be the way. But are there any sample code and
        > standard classes both for preparing the DIME message (I saw that there
        > is a parser in SOAP Toolkit 3.0". And how exactly should look the
        > declaration of the web method, which sends the information. Any tools
        > for VS.Net ?!?!
        > Sorry for asking such a questions, but deadline was yesterday as always
        > happens :)
        >
        > Thanks
        > Sunny[/color]


        Comment

        • Sunny

          #5
          Re: Transfer file between webservice and client

          In article <uvru2iudDHA.33 56@TK2MSFTNGP09 .phx.gbl>,
          nicholas.paldin o@exisconsultin g.com says...[color=blue]
          > Sunny,
          >
          > There are no tools to integrate this into VS, but there should be code
          > examples attached with the article.
          >
          >
          >[/color]
          Hi Nicholas,
          I have installed WSE 1.0, there are a lot of thing in that topic, and
          the documentation is pretty good and full with useful samples, so I'll
          use it.

          Thanks for the support
          Sunny

          Comment

          Working...