|
|
|
start date: Wed, 08 Aug 2007 16:27:18 -0500,
posted on: microsoft.public.dotnet.framework.webservices.enhancements
back
| Thread Index |
|
1
Kevin
|
|
2
John Saunders [MVP] john.saunders at trizetto.com
|
|
3
John Saunders [MVP] john.saunders at trizetto.com
|
|
4
John Saunders [MVP] john.saunders at trizetto.com
|
|
5
Egghead
|
|
6
Egghead
|
|
7
Egghead
|
|
8
Spam Catcher
|
|
9
Spam Catcher
|
File transfers
All, or any who can help...
I have an application, written in eVC4, that connects to the Internet and
receives a file via a web service. The request contains the name of the file.
The WS reads the local file and sends back the byte array (stream). However,
what I receive is an XML document, with the file (encoded) between
<base64binary> tags. What I want is to get a raw file (no XML headers or
formatting). The WS is written in VB.NET. It's very simple: open the file, read
the file into a byte array, and return the byte array. I just want the byte
array...not the rest of the XML stuff surrounding the byte array.
Can this be done? How?
Thanks,
Kevin S.
Date:Wed, 08 Aug 2007 16:27:18 -0500
Author:
|
Re: File transfers
"Kevin" wrote in message
news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
> All, or any who can help...
>
> I have an application, written in eVC4, that connects to the Internet and
> receives a file via a web service. The request contains the name of the
> file. The WS reads the local file and sends back the byte array (stream).
> However, what I receive is an XML document, with the file (encoded)
> between <base64binary> tags. What I want is to get a raw file (no XML
> headers or formatting). The WS is written in VB.NET. It's very simple:
> open the file, read the file into a byte array, and return the byte array.
> I just want the byte array...not the rest of the XML stuff surrounding the
> byte array.
>
> Can this be done? How?
First, please don't cross-post. Many people read all of the newsgroups you
posted to, and will see your message several times.
Second, no, Web Services are about XML, so they'll return XML.
--
John Saunders [MVP]
Date:Thu, 9 Aug 2007 09:59:57 -0400
Author:
|
Re: File transfers
"Kevin" wrote in message
news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
> All, or any who can help...
>
> I have an application, written in eVC4, that connects to the Internet and
> receives a file via a web service. The request contains the name of the
> file. The WS reads the local file and sends back the byte array (stream).
> However, what I receive is an XML document, with the file (encoded)
> between <base64binary> tags. What I want is to get a raw file (no XML
> headers or formatting). The WS is written in VB.NET. It's very simple:
> open the file, read the file into a byte array, and return the byte array.
> I just want the byte array...not the rest of the XML stuff surrounding the
> byte array.
>
> Can this be done? How?
First, please don't cross-post. Many people read all of the newsgroups you
posted to, and will see your message several times.
Second, no, Web Services are about XML, so they'll return XML.
--
John Saunders [MVP]
Date:Thu, 9 Aug 2007 09:59:57 -0400
Author:
|
Re: File transfers
"Kevin" wrote in message
news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
> All, or any who can help...
>
> I have an application, written in eVC4, that connects to the Internet and
> receives a file via a web service. The request contains the name of the
> file. The WS reads the local file and sends back the byte array (stream).
> However, what I receive is an XML document, with the file (encoded)
> between <base64binary> tags. What I want is to get a raw file (no XML
> headers or formatting). The WS is written in VB.NET. It's very simple:
> open the file, read the file into a byte array, and return the byte array.
> I just want the byte array...not the rest of the XML stuff surrounding the
> byte array.
>
> Can this be done? How?
First, please don't cross-post. Many people read all of the newsgroups you
posted to, and will see your message several times.
Second, no, Web Services are about XML, so they'll return XML.
--
John Saunders [MVP]
Date:Thu, 9 Aug 2007 09:59:57 -0400
Author:
|
Re: File transfers
Hi here,
It is bad to crosspost :@
Just off my head : you know the tag already why not just decode it, or you
can use the soap tool kits <- a compact framework ??, or you have a .Net COM
dll connects to the web service. You have so many solutions for the problem.
--
cheers,
RL
"John Saunders [MVP]" <john.saunders at trizetto.com> wrote in message
news:%23nn$N2o2HHA.3940@TK2MSFTNGP05.phx.gbl...
> "Kevin" wrote in message
> news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
>> All, or any who can help...
>>
>> I have an application, written in eVC4, that connects to the Internet and
>> receives a file via a web service. The request contains the name of the
>> file. The WS reads the local file and sends back the byte array (stream).
>> However, what I receive is an XML document, with the file (encoded)
>> between <base64binary> tags. What I want is to get a raw file (no XML
>> headers or formatting). The WS is written in VB.NET. It's very simple:
>> open the file, read the file into a byte array, and return the byte
>> array. I just want the byte array...not the rest of the XML stuff
>> surrounding the byte array.
>>
>> Can this be done? How?
>
> First, please don't cross-post. Many people read all of the newsgroups you
> posted to, and will see your message several times.
>
> Second, no, Web Services are about XML, so they'll return XML.
> --
> John Saunders [MVP]
>
Date:Thu, 9 Aug 2007 09:12:29 -0600
Author:
|
Re: File transfers
Hi here,
It is bad to crosspost :@
Just off my head : you know the tag already why not just decode it, or you
can use the soap tool kits <- a compact framework ??, or you have a .Net COM
dll connects to the web service. You have so many solutions for the problem.
--
cheers,
RL
"John Saunders [MVP]" <john.saunders at trizetto.com> wrote in message
news:%23nn$N2o2HHA.3940@TK2MSFTNGP05.phx.gbl...
> "Kevin" wrote in message
> news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
>> All, or any who can help...
>>
>> I have an application, written in eVC4, that connects to the Internet and
>> receives a file via a web service. The request contains the name of the
>> file. The WS reads the local file and sends back the byte array (stream).
>> However, what I receive is an XML document, with the file (encoded)
>> between <base64binary> tags. What I want is to get a raw file (no XML
>> headers or formatting). The WS is written in VB.NET. It's very simple:
>> open the file, read the file into a byte array, and return the byte
>> array. I just want the byte array...not the rest of the XML stuff
>> surrounding the byte array.
>>
>> Can this be done? How?
>
> First, please don't cross-post. Many people read all of the newsgroups you
> posted to, and will see your message several times.
>
> Second, no, Web Services are about XML, so they'll return XML.
> --
> John Saunders [MVP]
>
Date:Thu, 9 Aug 2007 09:12:29 -0600
Author:
|
Re: File transfers
Hi here,
It is bad to crosspost :@
Just off my head : you know the tag already why not just decode it, or you
can use the soap tool kits <- a compact framework ??, or you have a .Net COM
dll connects to the web service. You have so many solutions for the problem.
--
cheers,
RL
"John Saunders [MVP]" <john.saunders at trizetto.com> wrote in message
news:%23nn$N2o2HHA.3940@TK2MSFTNGP05.phx.gbl...
> "Kevin" wrote in message
> news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl...
>> All, or any who can help...
>>
>> I have an application, written in eVC4, that connects to the Internet and
>> receives a file via a web service. The request contains the name of the
>> file. The WS reads the local file and sends back the byte array (stream).
>> However, what I receive is an XML document, with the file (encoded)
>> between <base64binary> tags. What I want is to get a raw file (no XML
>> headers or formatting). The WS is written in VB.NET. It's very simple:
>> open the file, read the file into a byte array, and return the byte
>> array. I just want the byte array...not the rest of the XML stuff
>> surrounding the byte array.
>>
>> Can this be done? How?
>
> First, please don't cross-post. Many people read all of the newsgroups you
> posted to, and will see your message several times.
>
> Second, no, Web Services are about XML, so they'll return XML.
> --
> John Saunders [MVP]
>
Date:Thu, 9 Aug 2007 09:12:29 -0600
Author:
|
Re: File transfers
Kevin wrote in
news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl:
> It's very simple: open the file, read
> the file into a byte array, and return the byte array. I just want the
> byte array...not the rest of the XML stuff surrounding the byte array.
If you want a straight byte array - create a socket server.
With web services, take a look at MTOM - it allows you to transfer large
files efficently over WS. It's part of WSE 3.0.
Date:Fri, 10 Aug 2007 17:25:06 GMT
Author:
|
Re: File transfers
Kevin wrote in
news:e5PgkLg2HHA.4400@TK2MSFTNGP06.phx.gbl:
> It's very simple: open the file, read
> the file into a byte array, and return the byte array. I just want the
> byte array...not the rest of the XML stuff surrounding the byte array.
If you want a straight byte array - create a socket server.
With web services, take a look at MTOM - it allows you to transfer large
files efficently over WS. It's part of WSE 3.0.
Date:Fri, 10 Aug 2007 17:25:06 GMT
Author:
|
|
|