I had written a Web Service to return a DataSet back to my ASP.Net site and this was working fine. However due to security issues and also the ability to get certain references installed, I have to move this to an App Server and so doing it as a Windows Service and communicating with the ASP.Net site now via sockets.
Is there a way I c...
Hi,
what is the difference between class without DataContract attributes:
public class BankOperationResult
{
public int CurrentAmount { get; set; }
public bool Success { get; set; }
}
and the same class with DataContract attributes:
[DataContract]
public class BankOperationResult
{
[DataMember]
public...
Hi,
I am new to WCF and I want to know if it is possible to create a WCF service on it's own application and host it on IIS. Then another ASP.NET application will consume it. So far all the examples i have seen have the WCF service inside the same ASP.NET solution.
If so, can you please provide some hints about how to do it? I want to c...
I have a WCF service with operations that all require MyServiceRequest parameter (or derived type)
and returns MyServiceResponse (or dervived type), i.e.:
[OperationContract]
MySeviceResponse FindAppointments(FindAppointmentRequest request);
[OperationContract]
MyServiceResponse MakeAnAppointment(MakeAnAppointmentReques...
Hi All,
I am using a WCF call to update my database with any changes from ActiveDirectory.
I call this WCF functin via client browser and the function trys to get details from AD within the servive itself. However the issue is AD needs UserName and Password to get any records.
Please advise how can I overcome this problem so that Windo...
Ok, Im really going to show my stupidity regarding the ASP.NET security model here but here goes.
I have a WCF web service and I have managed to hack my way around to having it pipe through my custom membership provider.
My membership provider overrides "ValidateUser" in which I attempt to load a user object with data from our SQL se...
I am trying to upload a WCF(Service1.svc) to my godaddy hosting account. When I type in the address of the service(http://www.domain.com/Service1.svc) I get a 404 not found error. What I'd like to know is what are all the files I need to upload to get it working? Also what should my directory structure consist of?
...
Hi there guys,
I am really new to WCF and one of the things that are confusing me right now is the type of projects that we can create with Visual Studio when it comes to Web services.
I would like to know the difference between a WCF Service Application and WCF Service Library, and when to use each.
Throw into the mix the WCF Data ...
Hi,
I have a service exposed via WCF. The service exposes several methods that talk to the database through a Linq to SQL datacontext. The datacontext is bound to the CallContext. All of this is working as it should but I can't figure out the proper place to dispose the Linq to SQL datacontext. Please help.
...
I'm using Amazon EC2 services and would like to publish my WCF application to this server using the visual studio 2008. Instead of opening so many ports on the amazon firewall, I'll use the ftp ACTIVE mode which will need to open only two ports (20,21). Alas, visual studio 2008 is determine to use only PASSIVE ftp connection, why?!
...
I have some WCF services and have separated out the data contracts for these services into their own assembly. I then have a client of the services that references the data contracts assembly.
I have turned on the option to Reuse types in referenced assemblies. This works, but not for collections. The proxy generator instead generates i...
Hi
a) I plan to start learning WCF, but I’m not sure whether it’s important to learn XML first. If XML should be learned before WCF, why?
b) In case XML should be learned prior to WCF, then I’d prefer to learn just the parts required to understand WCF. So which of the following XML technologies should be tackled and in how much detai...
Hi,
I'm starting a new WCF-based project which is composed by an "Engine" and some desktop applications.
But i found it difficult to make my project structure.
Engine (Windows Service, which host WCF Services for Desktop applications access and host all my business logic)
Desktop Application (Only Presentation)
Shared
MyProject.Core (...
I've been trying to find an example of how to used the CompositionAttribute with CUD operations when using LinqToEntitiesDomainService. I can't find one anywhere and really need this functionality in the next couple of days. Does anyone know how to implement this and can provide an example for me? The only resonable example I can find is...
Hi,
What is the best approach to handle Data Concurrency issues in a 3 layered Application (WCF + LinqToSql or EF) with detached entities or DTOs ?
Thanks.
...
I have a WCF service hosted in IIS (7.0) which implements multiple service contracts and therefore defines multiple endpoints (one for each contract). It has been working fine but I have just added an https binding to the IIS web application and I am now getting an activation exception specifying that the service implements multiple cont...
Hi,
I have developed a WCF Service library and I am hosting it in IIS 7.5
I am able to test it using the VS test client but whenever i attempt to invoke it using a client in another solution i get this error:
System.ServiceModel.CommunicationException
Could not connect to http://localhost/EvalServiceSite2/Eval.svc/ws. TCP error code 1...
Hi everyone,
How do you get an exception or error code that caused a WCF Client's Faulted event?
private void ConnectionFaultedHandler(object sender, EventArgs e)
{
// Darn! Something went wrong.
// Better clean up.
this._Connection.Abort();
this._Connection.InnerChannel.Faulted -= this.ConnectionFaultedHandler;
/...
Hi,
I have a WCF webservice that is hosted in IIS 7.5.
Inside the Service solution I have a test client that is able to invoke the service with no issues. even tested it with the Visual studio WCF client test tool.
However whenever i try to access the service using a client build on another solution i get the error: System.ServiceModel....
Hi,
What's the difference between Application Services and WCF Services ?
In a distributed environment :
Presentation => WCF => Application Logic => DataStore
Should i consider Application Logic "Services" as also WCF Services, or may i create seperate WCF services that exposes some Application Logic "Services" to client with DTO <=>...