View Complete Post
The Microsoft .NET Framework 1.x provided minimal options for mapping classes to schemas and serializing objects to XML documents, making this sort of mapping quite a challenge. The .NET Framework 2.0 changes all this with Schema providers and the IXmlSerializable interface.
MSDN Magazine June 2006
In my May 2005 column, I discussed contract-first development and appropriate times to use it (see Service Station: Contract-First Service Development). In this second part, I'm going to focus on some techniques for contract-first development within the ASMX framework.
MSDN Magazine June 2005
In one of my previous columns on Service Orientation (SO), I introduced the concept of "contract-first" service development (see Service Station: SOA: More Integration, Less Renovation). Over the next two installments of this column, I'm going to cover the topic in depth.
MSDN Magazine May 2005
I have several Web Services that I call using jQuery, they are all <WebMethod()> _ Public Function and return either a boolean or string, depending on the function.
I have some Web Service functions, where I would like to call sub routines I have in my base class, they are Public Sub's.
When I add a call of a sub routine in the Web Service function, I get a blue line that says 'Object reference not set to an instance of an object'. If I change the sub routine to Public Shared Sub, then the blue line and error go away, but I get other errors from the calls I was successfully making to the base class routines before.
Is there a way to get these two to work together?
I have a .dll that contains my data contracts and I reference this dll in two different services.
Now, on the client side I don't want to add this dll because I need both WPF-clients and Silverlight clients. So, what I want is to be able to use a single data contract on the client side and not with different namespaces for the different services. As
I understand this should be possible but I don't know how.
Can someone explain how I can generate a single data contract on client side that can be used for calls to both services?
Thanks for help!
I am using svcutil /metadata to get metadata for a WCF service project assembly, the service class implements the IChildServiceContract below, and the IChildServiceContract interface implements a base interface which accept a generic type.
public interface IChildServiceContract : IServiceBaseContract<string>
I can generate metadata for IChildServiceContract , I am curious and also want to try generate meta data for base interface, an error come up which seems have problem with the generic based contract:
There was an error exporting the contract loaded from the type: xxx.xxx.xxx.IServiceBaseContract`1
Is it possible to generate metadata in this situation?
Thanks in advanced