Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2005

Tip: Looking for answers? Try searching our database.

Passing file contents between 2 web service projects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Srilatha - 15 Aug 2005 21:30 GMT
Hi,
I have 2 web service projects called "CLient_Side" and "Server_side".

"Client_Side" has a web reference to "Server_side" but its not the other way
around (i.e Server_side will not have a reference to Client_side).

I want to pass files between the 2 web services.  

For moving file from Server_Side to Client_Side, I did the below:
1.  On Server_side, I read the file contents as a memory stream
2.  Attached it as a DIME attachment to Response Soap Context
3.  On Client_Side, got Server_Side.  ResponseSoapContext.Attachments and
got the DIME attachment's memory stream and wrote to a file.

This works perfectly fine.

Now the problem is how to pass file's contents from client_side to
Server_side.

The Client_side can read the file's contents and attach the memory stream to
the response soap context object.

respContext.Attachments.Add(dimeAttach)

But since the Server_side has no reference to Client_Side, how can I receive
the contents on server_side?

I can't do a
client_side.ResponseSoapContext.Attachments bcos it has no reference to
client_side.

How can I pass the file's contents from client_side to server_side.

Thanks for any help..
Jason - 23 Aug 2005 12:19 GMT
As I understand it you don't need access to client side, just use:
RequestSoapContext.Current.Attachments.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.