.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Does inheritance is possible in Webservices?

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :ASP.Net


Am new bee to Webservices.I have declared complete BLL in the class library.

Can call those methods defined in Class library class files(.cs file) in .asmx file.



View Complete Post

More Related Resource Links

Troubleshooting Webservices


Hello All,

I have been working on web services for quite sometime. Have been creating and consuming simple to intermediate levels of web services. But now i want to start using some third party web services.

I have got to know that there are good ways to troubleshoot issues in our own web services or any third party web services. For example, if a particular web method was working since 3 months and all of a sudden, it stopped working as expected or its not giving the results now. In these kind of situations, what are the best approaches to troubleshoot the issue. 

Can someone please share some points on this? May be some right articles having some examples will give me the clear picture. Please let me know. Thanks.

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

Problems with inheritance in WCF

Hi, I've got some code written using remoting that I'm considering updating to use WCF as WCF has some pretty nice features, however I've been having real problems getting inheritance to work going across WCF using binary serialization, I created some simple test code to get my head round whats going on using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Runtime.Remoting.Channels.Tcp; using System.ServiceModel; using System.ServiceModel.Channels; namespace Test { [ServiceContract] public interface IServer { [OperationContract] BaseType Get(); } public class Server : MarshalByRefObject, IServer { public BaseType Get() { return new InhertitedType(); } } [Serializable] public abstract class BaseType { public abstract string Name{ get;} } [Serializable] public class InhertitedType : BaseType { public override string Name{ get { return "Working"; } } } class Program { static int port=8888; static string ip = ""; static void Main(string[] args) { var binding = new NetTcpBinding(); var endpoint = new EndpointAddress(string.Format("net.tcp:/

Can someone explain this inheritance?

I am having trouble understanding the inheritance listed in http://msdn.microsoft.com/en-us/library/cc406686(office.12).aspx <%@ Page Debug="true" Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="MSDN.SharePoint.Samples.WarmupJobManager, MSDN.SharePoint.Samples.SharePointWarmupJob, Version=, Culture=neutral, PublicKeyToken=7fd1d26c5854f031" %> It almost looks to me like two classes are being inherited - WarmUpJobManager AND SharepointWarmupJob. Is this correct?...or even possible?? Neither class is a partial class. Sorry I am new to this and was trying to deploy this example but the inheritance displayed here has me confused. Thanks in advance, Jake.

sharepoint webservices add task AssignedTo

Hello everyone, I am currently working on a biztalk project that has to create a task through the sharepoint webservices. Everything works fine except for the AssignedTo part. When I get the response of the getuserinfo() method, I notice that the userid I get is '87'. I then enter this userid in the AssignedTo part and send it to the updateListItems() method and the task gets created, but it is assigned to another person. When I create a task statically (by surfing to sharepoint and click add task..) and I view this task in CAML viewer I see that my userId in assignedTo is '218'. Why does the userinfo() method return an id '87' for my username while it actually is '218'? Is this a active directory problem or something like that? Hope someone can help thx

How can I reset inheritance to regain controll of a subsite/subweb?

How can I reset inheritance to regain controll of a subsite/subweb?Kevin W. Gagel

ViewModel and inheritance.

Let's say I get DataContract class from a Service reference. Now I want to use this class in a viewmodel because I need extended functionality. Can you guys recommend if the ViewModel class should inherit the class from the service or should the viewmodel have the class as a property instead? I've used both these approaches but I'm more and more thinking that using the class as property instead of inherit it is an easier way. Thanks for help!

applying styles to xml element while reading it from webservices

hi,i have one xml document. i used to read the xml from webservices using c# and display the xml document content in the popup window. i wish to apply style for the xml element in the xml document. codes:  xml document:       <?xml version="1.0" encoding="utf-8" ?> <BubbleHelp> <Module name="ADMIN"> <HelpItem ID="BRANCHID"> <B>Hello</B>World!! ---bold format style is not applying while display it in the popup window </HelpItem> </Module> </BubbleHelp> webservice code used to read the xml document.      helpTopic[0]  = tagnode.InnerText; //text between the node i.e Hello World!!        

SQL 2008 R2 and Webservices

I'm trying to expose SQL 2008 through webservices, but I found multiple articles saying that webservices will not be supported in future releases and I should use WCF. My question is , how can I directly from SQL expose data to be consumed. If WCF is the way to go, I can't seem to find a good article that describes the process.There is 10 types of people in the world, those that understand binary, and those that don't.

Expose Dynamic Known Types in WSDL (mimic CRM 4.0s webservices)

Hi there, I am trying to mimic the extensability to the APIs from CRM 4.0. I been through IXmlSerializable, ServiceKnownType and the DataContractSerializer - but I can't seem to find the cure for my answer. I have a database that is extensable with new tables and attributes (entities with properties), why I do not have strong-typed classes for these tables, as users can create what-ever they wish. However I wish to publish the entities as they where strong-typed though WCF to clients, and through a single class on the server side, capture attributes and such to implement business logic. The design is exactly as the CRM 4.0 webservices. I made success with IXmlSerializable:GetSchema, but the problem is that I can change only one class and not inject all of the classes I wish to expose. How do I change the known type serialization of my WSDL though WCF?

Communicating with webservices using client certificates

We are facing an issue with our .NET (2.0) application consuming a Java web service that requires client certificates. Context     Java web service running on JBoss              requires a client certificate signed by internal CA (child of internal Root CA)              has a server certificate signed by the same internal CA for authenticating itself to a consumer       .NET 2.0 Windows Application (running on an XP workstation) consuming the above Java web service               XP workstation has a client certificate (signed by internal CA) is installed in the local machine personal store             XP workstation has the internal CA and internal Root CA installed in the local machine, trusted root certification authorities hive             Visual Studio 2005 debugger shows that the client certificate is successfully retrieved from the personal store and being attached to the web service proxy             however, exception is thrown at the point of invoking the web service method             exception is: The request was aborted: Could not create SSL/TLS secure channel.                  Appears from the trace log that the initial retrieval of client certificate from the local machine personal store is successful - ---------------------------------------------------------- System.Net Information: 0 : [7480] SecureChannel#16263241 - Attempting to restart the session using th

Method overloading in webservices

Hi, I have following class in webservices, I am not able to override the constructer of webservice. Asp.net always call first method not the one with parameter.  ------------------------------------------Public Class Employee Public Sub New() End Sub Public Sub New(ByVal Str as String) End Sub End Class ----------------------------------------------------- How can i call the second constructer in asp.net? Pls provide vb.net code. 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend