WebService Problem
From: deepak Arjun via .NET 247 (anonymous_at_dotnet247.com)
Date: 06/05/04
- Next message: Sami Vaaraniemi: "Re: Return a SqlDataReder"
- Previous message: Simon Hoare via .NET 247: "creating web services dynamically"
- Next in thread: Jan Tielens: "Re: WebService Problem"
- Reply: Jan Tielens: "Re: WebService Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 12:37:43 -0700
Hi All
I am creating webservice DocManager to store documents.I have a method
public void Uploadfile(string path,Stream instream)
where path is path of file on server and stream is stream of document.
I am able to compile it but when i write code to access it in client and compile the client it gives compile time error
Cannot convert from system.io.stream to DocManager.Stream
I feel the webservice exposes a stream object which is contradicting with it.I chnaged the function to
public void Uploadfile(string path,System.IO.Stream instream)
but it is still giving same error.
I have made some changes in reference.cs file to remove conflict.
Now i am getting the error.
System.Web.HttpInputStream is inaccessible due to its protection level. Only public types can be processed
How to solve this issue if someone has idea?
or is there a better approach to pass a file to webservice?
--------------------------------
From: deepak Arjun
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>slDbwccmt0Og4iGl+MBgUA==</Id>
- Next message: Sami Vaaraniemi: "Re: Return a SqlDataReder"
- Previous message: Simon Hoare via .NET 247: "creating web services dynamically"
- Next in thread: Jan Tielens: "Re: WebService Problem"
- Reply: Jan Tielens: "Re: WebService Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|