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 / April 2005

Tip: Looking for answers? Try searching our database.

convert a Class Library to web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
convert a Class Library to web service - 23 Mar 2005 14:19 GMT
can i convert a Class Library to be share in the internet as a web service
i what thet all my classes in the Class Library will be shared
Manohar Kamath - 23 Mar 2005 19:28 GMT
Derive a class from the classes, and override the methods, and attribute
them as WebMethod.

Something like:

public class MyWebClass: WebService, MyBaseClass
{

   [WebMethod]
   public override int MyMethod()
   {
       return base.MyMethod();
   }
}

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.com

> can i convert a Class Library to be share in the internet as a web service
> i what thet all my classes in the Class Library will be shared
Prasad - 30 Mar 2005 11:59 GMT
May be i might have misunderstood but, Seems the MyWebClass is deriving from
multiple classes , which will  not compile.

> Derive a class from the classes, and override the methods, and attribute
> them as WebMethod.
[quoted text clipped - 13 lines]
> > can i convert a Class Library to be share in the internet as a web service
> > i what thet all my classes in the Class Library will be shared
gil - 18 Apr 2005 09:41 GMT
i do that by putting the class library in a virtual sub directory bin
and define in the web.config

<system.runtime.remoting>
     <application>
        <service>
           <wellknown
              mode="SingleCall" objectUri="DASefer.soap"
              type="MyNameSpace.MyClass,AssemblyName"/>
        </service>
        <channels>
           <channel ref="http"/>
        </channels>
     </application>
  </system.runtime.remoting>
but i have a problem in classes that return a dataSet
when i try to add the web refernce to that class i have the error:
error: Unable to import WebService/Schema. Unable to import binding
'DAKoreBinding' from namespace
'http://schemas.microsoft.com/clr/nsassem/SeferDAccess/SeferDAccess%2C%20Version%
3D1.0.1934.18680%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull
'.
Unable to import operation 'KoreDetails'. The datatype 'DataSet' is missing.

are any one know what i do rong???

> can i convert a Class Library to be share in the internet as a web service
> i what thet all my classes in the Class Library will be shared

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.