based on my understanding WCF's data contract model was opt-in vs the old opt-out approach of asmx web-services. you have to explicitly include all the fields and types that you require using DataContractAttribute and DataMemberAttribute. my experience however has been different.
take a look at the following examples,
///CASE: 1
///B...
Hello everyone,
I am using IIS 7.0 to host a simple WCF service. I write it by using VSTS 2008 + .Net 3.5 + C#. The issue is when I access http://localhost:9999/service.svc (I suppose in web browser we can browse the content of WSDL, and I create a new web site which uses port 9999 and run application pool under administrator account), ...
I don't know if anyone tried it, but I am trying to self host two services that are listening to a queue endpoint, both services are hosted in the same application (console app).
in my program Service1 sends a queue message to service2... this works for a while and after a few hours the second queue stops working...
The host is not fa...
We currently have a Silverlight 2.0 application communicating with a set of WCF web services. These services communicate with other WCF services for business logic.
Client DMZ Intranet
Silverlight -> WCF Web Service Gateway -> WCF Biz service -> DB
The WCF web service gateway resides within the DMZ.
W...
I have some Java code and I want to call a WCF service which I developed by using VSTS 2008 + C# + .Net 3.5 and using basic Http Binding.
Any reference samples or tutorials are appreciated?
...
I have been trying to add a new endpoint in a service hosted under IIS but haven't been able to figure it out for the past day or so.
This is my understanding:
you can have multiple endpoints under IIS as long as they have unique addresses.
you could assign a base address but it will be overridden by the virtual directory setup in IIS...
I am having some trouble hosting a WCF service inside a Windows Service.
I can start my WCF service in VS2008 and by navigating to the base address in my app.config
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<system.serviceModel>
<services>
<service behaviorConfiguration="WCF.IndexerBehav...
How to add objects to wcf services
...
I'm interested in simulating a number of clients attempting to invoke a WCF service simultaneously and I need to measure the average response time for each client.
Are there any good tools available for load/stress testing WCF services which have multiple end points(wsHttp, netTCP etc). I've heard that SOAPUI is the most prevalent testi...
General description
I am calling a Silverlight enabled WCF service from a Silverlight application. My service queries a database (SQL Server) and returns values from there. The problem is that the service uses other libraries that do the dirty database work and I get this exception when trying to use the service:
Exception
System.Se...
I am developing a WCF service using VSTS 2008 + .Net 3.5 + C# and it works fine when I also use VSTS 2008 to develop client (using Add Service Reference function to automatically generated client web services proxy code). The WCF I developed is using basicHttpBinding.
The issue I met with is, when I use Visual Studio.Net (Visual Studio ...
I want to know what are the cases in which WCF proxy (generated by vs2008 or svcutil) becomes faulted (fault state)? so I can recreate new instance and avoid use the faulted one.
currently I am handling TimeoutException,FaultException,CommunicationObjectAbortedException
try
{
client.Method1(args)...
Hi,
I'm using KnowTypeAttribute using method name.
The method is static and placed inside the DataContract class.
When the method implementation is inside the method, everything is fine, but when i'm calling another method from another project (from the class static method) i got an exception saing "System.MissingMethodException: Method ...
I am currently working on a silverlight client, making use of a web server, and an application server.
Most of the users sit within our firewall, so they do not have any problems accessing the WCF service running on the application server (through a Service.svc file).
However, some users will sit outside of our firewall, and only have ...
Hi,
I have a complex data type, including a number of functions, as well as the usual get and get methods. My life would be considerably easier if I could use WCF so my client can also use this data type.
Do I
Ignore all the operations, putting [DataMemeber] only where needed.
Put the class in question in a shared library assembly fo...
Hello,
I'm trying to consume a WCF webservice using the RPC capabilities of the Protobuf-net. Here's my service contract:
namespace WcfEchoService
{
// NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config.
[ServiceContract]
public interface IEchoService
...
I've made this Community Wiki because some may think it's open to debate and others might think it's a question of using words to mean what they really mean (in other words, it's a matter of opinion whether it's a matter of opinion).
There's a general question on SO about declarative programming, which has some great answers.
But I'm a...
I'm programming a service for a program that uses HTTP post/get requests, so I handle all incoming requests with a hook method that takes a System.IO.Stream and returns a System.IO.Stream.
When I parse the incoming request (contained in an HTML form) by converting to a string and then using System.Web.HttpUtility.ParseQueryString(string...
We have a set of WCF services hosted in IIS and secured with wsHttpBinding and exposed on Internet. When I am trying to consume those services from a client I am getting an error
"Request for the security token has invalid or malformed elements."
I am using
<security mode="Message">
<message clientCredentialType="None" ne...
Hi,
So from what I've seen about services, custom objects seem to be the way to go when the service is written to return data. If I am writing a service that will be used to 1) populate a database, or 2) provide information for a web site, is there ever a use for returning a dataset/datatable as opposed to a list of custom objects with...