I'm creating an assembly via reflection, and then using it to create an instance of a WCF service client.
object obj =
assembly.CreateInstance(
serviceName, true,
BindingFlags.CreateInstance,null,createArgs, null, null);
Type type = obj.GetType();
obj is of type HelloWorldServiceClient.
type.GetMethods() has 14 M...
I have a web application which passes long-running requests to a Windows Service on another computer, using .NET Remoting. I have been told that .NET Remoting is an obsolete technology, and that it should no longer be used.
Should I rewrite the service using WCF, or leave it as it is? If I rewrite it, am I going to have to rewrite it ...
Background
I have an ASP.NET web application that interacts with WCF services. The web application and the WCF services are under my control. The ASP.NET web application uses a custom implementation of the ASP.NET Membership Provider Model (with passwords stored in hashed form) to authenticate users who log in to the web application. Bo...
I am using WCF in .NET 3.5 to implement a peer to peer networking application. To resolve peer nodes I am using PNRP.
IGlobalStoreServiceContract is my contract as shown below,
[ServiceContract(Namespace = "http://GlobalStoreEventDriven.API", CallbackContract = typeof(IGlobalStoreServiceContract))]
internal interface IGlobalStoreServic...
What is the most efficient way to check if WCF Service is available. (Pinging) It suppose to be binding configuration independent.
I prefer not to modify the Service Contracts with IsAlive() method. Ideally, I would expect that the WCF framework supports it. Otherwise, our solution is done by adding "ServiceAdministration" service, whic...
Hi All,
Just curious to know what your experiences with PNRP are? I have been using WCF to code up a peer to peer application using WCF.
I support 2 different setups, one using PNRP (i.e. no server) and another setup using a central server.
The central server approach is really fast over a LAN, peers can connect in around 0.5 - 2 seco...
Hi All,
Can anyone please tell me when should I use MessageContracts and when should I use
DataContracts and why ?
As I write my wcf service , I always use DataContract but don't know the use of MessageContracts .
Please someone elaborate..
...
Hi,
I have two services, configured via a config file. Each of them listens to one http and one https address. The problem is how to configure the ports. If I configure the http ports to the same value and the https ports to another value, when debugging the whole project I get the following error message in WCF Service Host:
Status...
Hi All,
How can I create a client proxy without svcutil.exe or add service reference in wcf?
I want to create a client proxy at compile time.
...
If you don't want to expose the ID of a domain object to the client of a WCF service, you would obviously not put an ID property in the DataContract, right? But then, when the client calls the save method on your service, how do you know it's a new object, or an existing one that was modified?
With NHibernate you can use SaveOrUpdate an...
Hi, I have a website that talks to a remote WCF web service. Both use the same custom FormsAuthentication Provider. I would like to authenticate with the WCF service impersonating the user currently logged in the site. I already did this manually, using UserName client credentials but I need to know the user password.
So, what works so f...
I'm attempting to create my first WCF service. I've created the service and now I'm trying to call it from a asp.net (vb) web site and I've tried adding a web reference to it and using the scvutil.exe to consume the service. So far neither have worked. It's not letting me declare the service in my code. If someone could point me to a...
I've recently started reading about the WebHttpBinding usage in WCF and being able to consume REST services, however, I've been stumped on this one for a bit now.
I'm writing a service that makes a single request to a given api, however, can return one of many responses.
For example, the generic response:
<ActualResponse>
<ResponseIte...
What is considered the appropriate development for .asmx or wcf service classes regarding how many files, lines of code, responsibilities, etc? Do most people publish separate .asmx service files for the different crud methods for every class?
...
I enabled message tracing on a WCF service. it traces a couple of messages and then it stops, when I try to open the trace in TraceViwer it gives me an error on the last message that got logged, or doesn't even open the file duo to different error everytime.
I can't even delete the corrupt file unless i run a resetiis since the file is ...
I am working on integrating a silverlight site into our existing application and am trying to get the login functionality working. The Silverlight application needs to have it's own login page, and the login needs to utilize the existing ASP.NET forms authentication. As part of the login procedure, we are calling some external code, so...
I have a wcf serivce I want to consume from a j2me application (blackberry).
I have been going crazy since the tools that work fine for the j2SE used for consuming web services do not work all that well for j2me. At least not with my service.
I found a useful tutorial at
http://www.netbeans.org/kb/60/mobility/mobile-dilbert.html
Whi...
Hi,
We need a C++ client application to consume WCF server with NetTCPBinding, and Callback events supported. I have generated the proxy using gSOAP 2.7.10. But my proxy does not communicate with server. When I use BasicHttp binding, it seems to work. Not sure of events.
Can anyone suggest me, if gSOAP works with TCP binding, and callb...
Hi All,
How can I define endpoints with MEX endpoint in app.config file and what I need to run my application then . I have one service contract called IXMLService and I am using WsHttpBinding .
Please give me an example .
After creating app.config , how can I start the service ?
...
I am trying to make a Delphi client (Delphi 2006) to communicate with a service written using WCF. Service is damn simple with just one function. Technically like below:
[ServiceContract (Namespace = "http://www.company.com/sample/")]
public interface IService
{
[OperationContract]
string GetNumber (string name);
}
I have host...