I have instantiated a WCF binding in code:
var binding = new WSHttpBinding();
binding.Secuity.Mode = SecurityMode.Transport;
Is there a way (in code) to get its equivalent configuration?
For the above I would expect:
<wsHttpBinding>
<binding name="NewBinding0">
<security mode="Transport" />
<...
I have an architectural question for you :)
In my new project i'm developing a wcf service that has a "driverName" string input parameter and for that name the service must create a "driverType" class that implements an "IDriver interface" and execute a method.
The application will be extensible and i want put other assembly with other d...
I have a service which send a message with the ReplyTo header set to a return address.
I thought that :
OperationContext.Current.GetCallbackChannel<IHelloCallback>().RespondHello("tomi");
will automatically invoke my client, but I receive this exception :
For sending a message on server side
composite duplex channels, the messag...
Is there a reason that the Silverlight Ready WCF does not have an Interface for the ServiceContract class built automatically like the normal WCF Services do? I understand there isn't a need necessarily for it, but I am just curious why one would have it and the other does not.
...
I have an application that uses Add In Express (a product which creates Internet Explorer Add ons) and it consumes Web Services from within the browser. It works great under XP however - due to I am guessing Vista security it breaks down. I reference http://www.add-in-express.com/forum/read.php?FID=5&TID=3948&MID=18878&phras...
I'm trying to host a WCF service in IIS7 that works with both Silverlight and for GET requests. I have the Silverlight endpoint working but can't work out how to create an additional endpoint on the same service that will handle GET requests from AJAX clients.
I have a second service that is for GET requests only and it works fine so my...
Hello,
I am trying to make async web service call from asp.net 2.0 web client to WCF web service. I created the proxy class using the svcutil.exe with the async option. Here is an example of the client code calling the web service:
protected void Page_Load(object sender, EventArgs e)
{
WSClient client = new WSClient();
Asyn...
One of my [DataContract] classes contains a [DataMember] which is a List. BaseClass has a few different sub-classes.
Whenever that List contains instances of any sub-class, an exception occurs during/after the Service is returning to the request channel. If the List does not contain any sub-classes, it works fine.
Here is an example of...
I have a WCF service where I am trying to return a List (where IWatchable is a custom interface I have built) in one of my operation contracts. When I test the service on the client the method returns an object[] instead of List<IWatchable>. Is it possible to return a List of IWatchable, since IWatchable is an interface with WCF?
Method...
Hello everyone,
I am developing a WCF service hosted by IIS, using VSTS2008 + C# + .Net 3.5. I find when reference the service from a client by using Add Service Reference..., client has to be able to resolve the machine name to IP address, because WSDL reference some schema file by machine name. Here is an example of a part of WSDL fil...
This is maybe a really simple question, but I couldn't locate an answer:
For a client I need to HOST a webservice. The client has sent me a wsdl file that the webservice should 'implement'. How do I go about that? I've generated any number of client-rpoxies but this is the other way around. I can use both ASP.NET 2.0 webservices or Wind...
Hello,
I have created a WCF service on my local machine. My local machine uses Windows 7 RC1, thus the web server is IIS 7. However, my production machine is a Windows Server 2003 using IIS 6.
When I attempt to reference the service in my local environment, everything works fine. However, when I promote my service to my production mach...
I want to use Fitnesse to do a subsytem testing of a WCF service.
Now to test a WCF service should I add the 'WebReference', and to add the webreference I require to host the service somewhere?
I believe Fitnesse as a new consumer to the service and it should add the WebReference.
...
I've got a machine control application where I have a single client computer and 5 server boxes communicating on the machine subnet. There is no domain controller. I would like to use netTcpBinding to allow for reliability and transaction support.
Is is possible to use UserName / Password authentication with this binding, when a dom...
I'm working on designing an EDI system for two companies: Company A and Company B. Company A already exists as a small manufacturing business, and Company B is a new company formed around a specific product with the involvement of the owner of Company A. Company A will have exclusive rights to produce the product for Company B.
I'm res...
I have a WCF service exposed with a webHttpBinding endpoint.
[OperationContract(IsOneWay = true)]
[WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "/?action=DoSomething&v1={value1}&v2={value2}")]
void DoSomething(string value1, string value2, MySimpleObject ...
I'm having a problem with setting up a WCF web service integration with a 3rd party. It appears that it's not correctly deserializing the response object, I'm just getting a null from the web service call.
The 3rd party is using this web service framework, which has a large set of abstract and complex types for performing simple operat...
So I'm designing a WCF service. I'm unexperienced with WCF, and I'm trying to decide whether it should be hosted in IIS, or a custom Windows service.. Or some other option?
Things to consider:
It needs to load data from a database on startup.
It needs to maintain this data across requests, not load it each time.
It needs to process mu...
I have a c# multi-threaded monte carlo simulation, the application is already structured such that it can be partitioned by into Tasks that execute independently, a TaskController executes Tasks, aggregates intermediate results, checks for convergence (early termination criteria) then returns final results, this is currently implemented ...
While setting WCF client service configuration, there is an option "collection type" which defaults to "System.Array". If I change it to "Generic List", is there any performance loss?
...