WebService Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: deepak Arjun via .NET 247 (anonymous_at_dotnet247.com)
Date: 06/05/04


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>



Relevant Pages

  • Re: WebService Problem
    ... > I am creating webservice DocManager to store documents.I have a method ... > where path is path of file on server and stream is stream of document. ... compile the client it gives compile time error ... > public void Uploadfile ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • WebService problem
    ... where path is path of file on server and stream is stream of document. ... 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) ...
    (microsoft.public.dotnet.xml)
  • Stream and IDisposable in C#2.0, design blunder (well, 100-year sleep is more like it)
    ... public class Stream: ..., IDisposable { ... public void Dispose; ... It prevents polymorphic disposing of Stream instances through s).Dispose. ... Have a look at some ways to *try* to implement a Stream which needs a custom dispose: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: BOM added to utf-8 coded http message.
    ... private long _NumberofCharstoRemove; ... public void GetClassID ... Load(Microsoft.BizTalk.Component.Interop.IPropertyBag pb, int errlog) ... public class BOMMsgStream: Stream ...
    (microsoft.public.biztalk.general)
  • Re: .NET CF - Webservice - deserialize soap xmp stream
    ... Ziel war es nicht einen gezippten Stream abzuspeichern sondern manuell den ... letzten abgespeicherten webservice xml stream (der, ... Der proxy des Webservice deserialisiert ja automatisch ... "Frank Dzaebel" wrote: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)