How do I test the state of my proxy before making calls to my WCF service.
I have a duplex channel created using a duplex channel factory.
Before making any calls to the server I want to check the state of the proxy object created from the channel factory.
I saw this in a book... (to be used in immediate window)
? ((ICommunicationOb...
Hi,
I have a WCF service and without changing any code on the client side, is there a way that I can know the detail information of the caller, such as the MachineName, and ApplicationName?
Basically, I cannot change the client code to pass those pieces of information over.
I tried to use System.Web.HttpContext on the server side to t...
For the sake of argument, lets say that I've got a basicHttp WCF service. Besides implementing authentication (login/logout methods), what is stopping someone from just cracking open Visual Studio, adding a web reference to my website's service, and then playing playing around with my service? I'm not familiar with a method of stopping s...
Will any one please clear this.
Thanks
...
Can PartCover coverage for remotely running binaries ?
...
I currently offer a service with many methods via WCF. I'd like to refactor so the single service is split into multiple classes, each offering a different set of functionality. However, I'd prefer to still have a single connection to the client. Is this possible?
I guess the answer is No, so how should I solve this issue? Is there a wo...
[Question seems a little long but please have patience. It has sample source to explain the problem.]
Consider following code which is essentially a WCF host:
[ServiceContract (Namespace = "http://www.mightycalc.com")]
interface ICalculator
{
[OperationContract]
int Add (int aNum1, int aNum2);
}
[ServiceBehavior (InstanceConte...
Hi all,
I have a class that I need to be able to serialize to a SQLServer session variable and be available over a WCF Service. I have declared it as follows
namespace MyNM
{
[Serializable]
[DataContract(Name = "Foo", Namespace = "http://www.mydomain.co.uk")]
public class Foo : IEntity, ISafeCopy<Foo>
{
[DataMember(Order = 0)]
...
I am using windows installer to deploy my application. And i have add a custom action to access a WCF service from remote server. While installing application i found endpoind not found exception.
ServiceReference.testContractsClient client;
var wsBinding = new WSHttpBinding(SecurityMode.None, false);
//End point i take from user input
...
Hi,
Is any Idea how can we host WCF service to windows service????
...
Hi!
I have an ASP.NET MVC 1.0 webapp, which serves as a front-end site for our external API. More specifically, it has a Control Panel for our API clients, documentation, etc.
Now I want to move our actual API (which is a set of WCF services) inside this project, so that, for example, http://api.example.com/controlpanel/dashboard would...
I have a WCF Web Service with basicHTTPBinding , the server side the transfer mode is streamedRequest as the client will be sending us large file in the form of memory stream.
But on client side when i use transfer mode as streamedRequest its giving me a this errro
"The remote server returned an error: (400) Bad Request"
And when i lo...
I have issue "The caller was not authenticated by the service." when calling service method from IIS7 in client side. The client and service are in different machines. But when I am giving credentials its work fine. So, is any way to call service method without credentials and without this issue?
thanks
...
I've seen recommendations (Juval Lowy, et al) that a service contract should have "no more than 20 members...twelve is probably the practical limit". Why? It seems that if you wish to provide a service as the interface to a relatively large db (50-100 tables) you're going to go way past that in just CRUD alone. I've worked with plenty of...
Hello All,
I need some help in resolving an issue I'm facing an with communication of a desktop client with WCF service hosted on IIS.
What I'm trying to do in my test case:
Server hosts a WSDualHttpBinding service
Client establishes a connection (calls Register method) to this by providing its callback uri which contains the client’...
I have a windows NT Service that opens a ServiceHost object. The service host context is per-session so for each client a new worker thread is created. What I am trying to do is have each worker thread make calls to the thread that started the service host.
The NT Service needs to open a VPN connection and poll information from a devic...
I have a simple Atom 1.0 feed that I've generated, similar to the example shown on MSDN.
However, instead of creating a host and testing the feed via console application, as in the example, I'm attempting to create the endpoint via configuration.
My configuration is as follows:
<system.serviceModel>
<services>
<ser...
Hi,
I was looking at this thread: http://stackoverflow.com/questions/1935040/how-to-handle-large-file-uploads-via-wcf
I need to have a web service hosted at my provider where i need to upload and download files to. We are talking videos from 1Mb to 100Mb hence the streaming approach.
I cant get it to work, i declared an Interface:
[Se...
Hi,
I am using calling web services and using WCF generated service-reference on the client. I have saved XML responses that are received from test service to disk (without SOAP envelope and body tags) I would like to load them from disk and create objects from them. Lets' take the following method from my web service:
SomeMethodRespo...
In my implementation of IDispatchMessageInspector on the AfterReceiveRequest
I want to check if an OperationBehavior is applied on the current operation being called.
So I need to access OperationDescription of the operation that's about to get invoked??
Any direct way instead of having to compare the Action of the current operation with...