I feel like it should be easier to test my WCF Services.
Is there an alternative to WCF Test Client?
Something with these features:
Can save my object trees (method parameters) to be used again.
Ideally it would even let me identify GUIDs that need to be re-generated on each run and ones that should stay static.
Easier to deal with...
I have a service. This service get data from SQL Server.
What the best way to send information to client?
Should I use ADO.NET or Entity Framework?
...
I will develop a WCF service. The service will get data from SQL Server.
What patterns I should use to separate access code to SQL Server and other code. In future I am planning to change access logic to SQL Server (LINQ to SQL or ADO.NET or Entity Framework).
...
URL in browser: http://localhost:12345/FRB.EC.BMI.WebSvc/Datafaction.svc
shows this:
You have created a service.
To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:
svcutil.exe http://sfbztkdev01v.biztalkde...
I understand I can apply several options to the ServiceContract (like Name, Namespace) attribute and for OperationContract (Action, ReplyAction)
The same goes to DataContract (Namespace) and DataMember (IsRequired, Name, Order)
How do I determine if I need to apply a particular option or not. What is the best practice/convention I shou...
Greetings,
I have to following problem. I have a WCF Service which runs under IIS7. Application connects to it and WCF Service makes some requests to DB. I have notice in activity monitor in SQL Server 2005 that after there are exactly 102 active connections, the application pool in IIS7 hangs. After this I can't connect to my WCF Serv...
Here is a code snippet. Please tell me whats the difference between these two codes and also which content suitable for these code snippets. "application/xml" or "plain/text"
[OperationContract]
[WebInvoke(Method="POST", UriTemplate="DoSomething")]
public XElement DoSomething(XElement body) {
...
return new XElement("Result");
}...
I have an application that connects via https to a SOAP-based web service that implements WS-Security. The web service is written in Java, expects a plain text password as well as a properly set timestamp.
After a great deal of googling and experimentation, I can't figure out how to configure my WCF client to interact with this service...
I'm creating a simple WCF service (MailService), and have added a service reference to a client project. The object browser in the client project is successfully showing the MailService metadata, including an object called MailServiceClient that has 4 overloads for its constructor.
I want to use the single string parameter constructor, ...
Hi,
I'm trying to create a service reading the dead-letter from the transactional system dead letter queue.
The service configuration looks like this:
<service name="NotificationDeadLetterQueueService">
<endpoint
address="net.msmq://localhost/system$;DeadXact"
binding="netMsmqBinding"
contract="INotificationService"
/>
</servic...
Hello,
Is it possible to implement a system similar to this:
1 Centralized assembly storage in a central web application
N Client web applications consuming types in assemblies in this centralized web app.
It should work this way.
I design an interface and deploy it
with every client application
Client application request for a spe...
Is there any Fluent WCF interface out there worth using?
Maybe something like these:
http://www.markharris.net.au/blog/category/net/wcf-net/
http://code.google.com/p/vitamink/
http://www.simonsegal.net/blog/2009/03/15/if-i-had-a-fluent-interface-for-wcf-configuration-i-would/
Anyone tried one of these? Which one is the best?
...
I am attempting to create and host a simple RESTful WCF Service. The service works perfectly except for 1 situation. I attempt to perform a POST to insert a new object into my static List using the JSON request of:
{"sampleItem":{"Id":1,"StartValue":2,"EndValue":3}}
If I then change the request to be:
{"sampleItemBlah":{"Id":1,"Start...
Okay, I have two OperationContracts and MessageContracts, like this:
[OperationContract]
OperationResult OperationOnSingleItem(Input input)
[OperationContract]
OperationResult OperationOnItemCollection(Inputs inputs)
[MessageContract]
public class Inputs
{
[MessageBodyMember]
Input[] InputCollection
}
[MessageContract]
public...
I am presently converting some existing .NET 3.X WCF code (written by someone else) to .NET 4.0. Of particular interest is a WCF service that implements a restful COMET behavior by using a specialized dispatcher (ChannelDispatcherBase) and behavior (WebHttpBehavior). This code works by deferring a WCF response from the server until certa...
I have defined the following Interface
[ServiceContract]
public interface IHealthProducts
{
[OperationContract()]
ResponseClass OrderSelfSignedHealthCertificate();
}
Which returns the following type
[MessageContract]
public class ResponseClass
{
[MessageBodyMember]
public string AnimalSpeciesCode
{
get;
...
We have a service reference that points at a WCF service, this acts as a proxy to our model layer where our data access logic is being handled. Under the hood we are using Linq2Sql as the ORM to facilitate the database communication.
We use the generated classes as our data access layer, but what gets returned is actually dumb DTOs obje...
Hello All!
I have a question very similar to this gent in this post
http://stackoverflow.com/questions/1864567/wcf-ria-services-loading-data-and-binding in
which the poster was trying to figure out how to use ria to bind to something other than the common scenrios overviewed in the numerous online examples (ie bind to an item source ...
I have a WCF service hosted in a web application (IIS). I need to expose 1 end point over wsHttp and the other over netTcp. I am on a IIS7 environment that makes it possible for me to host non HTTP based services. Anyways, when I browse the .svc file using a browser, I get the error:
The service cannot be activated because it does not s...
OK, this has been haunting me for a while, can't find much on Google and I am starting to lose hope so I am reverting to the SO community.
When I import a given service using "Add service Reference" on Visual Studio 2008 (SP1) all the Request/Response messages are being unnecessarily wrapped into Message Contracts (named as --> "operat...