Hi,
I have a public interface auto-generated bu svcutil:
[System.ServiceModel.ServiceContractAttribute(Namespace="...", ConfigurationName="...")]
public interface MyInterface
Then I have asmx web service inheriting it and working fine. I am trying ot convert it to WCF but when I instrument the service (in asmx.cs code behind) with Se...
Hi,
I'm have a Silverlight 3 UI that access WCF services which in turn access respositories that use NHibernate. To overcome some NHibernate lazy loading issues with WCF I'm using my own DataContract surrogate as described here: http://timvasil.com/blog14/post/2008/02/WCF-serialization-with-NHibernate.aspx. In here I'm setting preserveO...
I am currently developing an Android app i previously developed for IPhone. My Backend is built using WCF service with basichttpEndpoint, i also enabled RESTful methods for better support with other Mobile platforms as well.
Now i want to access my existing WCF service(SOAP/REST endpoint) on Android but i need some good ProxyGenerator ...
What benefits does WCF bring to the table and why should I use this new technology over good old ASP.Net web services?
...
i have two methods in Icontact and wcf service, i want to version one method for new requirement.
and want existing clients to call old code. and new client to call the new changed method and existing method for backward compatibility.
code:
[ServiceContract(Namespace = "http://www.testk.com/1/11", Name = "cService")]
public interfa...
I have some web services that use Message contracts. It's probably worth mentioning that for these services, I cannot shift to Data contracts...
One of my types specifies a property whose type happens to be an enum:
[SerializableAttribute()]
[MessageContract(IsWrapped = false)]
[KnownType(typeof(RiskTypeCode))]
public partial class Ris...
I have to do a small introductory presentation for my WCF Intro class (for my fellow students). :D
Can anyone point me in the right direction for a simple WCF/MSMQ application? Something dead-basic so I don't overwhelm everyone and myself. We're just learning this stuff. :)
...
I have a WCF service that needs to know the Principal of the calling user.
In the constructor of the service I have:
Principal = OperationContext.Current.IncomingMessageHeaders.GetHeader<MyPrincipal>("myPrincipal", "ns");
and in the calling code I have something like:
using (var factory = new ChannelFactory<IMyService>(loca...
The situation is that I am making a WCF call to a remote server which is returns an XML document as a string.
Most of the time this return value is a few K, sometimes a few dozen K, very occasionally a few hundred K, but very rarely it could be several megabytes (first problem is that there is no way for me to know).
It's these rare ...
Hi, im brand spanking new to WCF and Im trying to understand how to correctly expose my BLL to it.
I created my first Resource.svc and IResource.svc
Resource.svc
[ServiceBehavior]
public class Resources : IResources
{
#region IResources Members
public List<Model.Resource> GetAll()
{
return R...
I was trying to use svcutil.exe to generate proxy classes for a service but when I use the /reference option to reference an assembly that is built for .NET 4.0 I get an error.
Could not load file or assembly [...] or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be ...
I have created a custom msmq service with WCF, which uses a custom binding as it needs to do some custom logic at the channel layer, where it calls another wcf service. The service is going to be a core pience of functionality for our systems for at the the next few years. i want to do what I can to make sure the service is robust, but, ...
Hello
I'm trying to understand how DI exactly works.
I'm currently using Windsor as DI container. I use this to load my services dynamically in code without direct reference. But I have change behaviour and want to know a bit more on the instance mgmt using DI.
I have a web app projct, here is a WCF service using PerCall as instancemo...
Im returning two List, one works fine its when I execute the other I get the error
The underlying connection was closed: The connection was closed unexpectedly.
Ive googled and all ican see is about setting the following in web.config (where the service is hosted)
<behaviors>
<serviceBehaviors>
<behavior>
<dataContractSerial...
I have this WCF service running as a window service.
I have in my code that everytime it faults it will restart the service.
Now I'm having the issue where the host faults, it tries to restarts, then faults again, but at some point it just stop the service.
Wondering why it stop the service? Is this something handled by the OS that...
Hi !
I'd like to know if it's possible to call a method on a WCF windows service while another one is executing ? I need this so I can call my Terminate method that sets a static variable shared by my threads that tells them to stop. But when I call the method on the service, it waits till the first one (Execute) is over before he takes...
We have OSB services that are currently secured with a username and a password. I get a 401 unauthorized when attempting to generate a service proxy using svcutil. I know you need to set up a svcutil.exe.config file but I cannot find any examples except for one that passes a certificate.
Dows anyone know how to send a username and passw...
Hi, I'm new to the validation application block and trying to use it with wcf...
I have a wcf service that has data objects with validation rules defined with attributes, using the validation application block .
On my client side (WPF), I have a service reference. When I update the service reference the generated classes do not have th...
So I'm venturing out into the world of Linq and WCF web services and I can't seem to make the magic happen. I have a VERY basic WCF web service going and I can get my old SqlConnection calls to work and return a DataSet. But I can't/don't know how to get the Linq to SQL queries to work. I'm guessing it might be a permissions problem s...
I need a little bit of advise regarding the situation I am faced with. The current arrangement I have been tasked with improving just doesn't sit well with me and I feel like there is a better way to do it. The more I read about WCF, the more I get the feeling that it might be what I am looking for.
Right now, I have an asp.net client...