wcfservice

WCF mex too large

I have a mex binding that exceeds the reader quota of 16k. I know how to increase the size of the basicHttpBindings mut the mexHttpBinding does not allow for the same increase of buffer sizes etc. I cannot just break the service up into smaller services. Because our website has to deal with the requests even though our production serve...

Multi Tenant Service API for Business entities and Business logic

We have an application where we wish to expose an large number of database entities and some business logic. Each entity will require the ability to Read , Add, and Update. at this point we do not expect to allow deletion. the software we build is used in a wide range of business, so of which are multi tenanted operations Bureau ser...

Calling an Ajax-enabled WCF Application from AutoCompleteExtender

I'm trying to use a WCF service to fulfill MS Ajax AutoCompleteExtender completion list. I tried two alternatives. If I add a WCF service in my website project, AutoCompleteExtender calls it thriugh POST and it works fine. Then I decided to make a separate WCF Application and add my AJAX-enabled WCF service to new application. I also c...

Calling Linq to SQL method in Web service with jQuery

Hello, I have a test web service called: MySimpleService.svc with a method called:GetUserNamesByInitials. below is the Linq to SQL code: [OperationContract] public static string GetUserNamesByInitials(string initials) { string result = ""; //obtain the data source var testDB = new TestDBDataContext(); ...

Getting quotes in innerXML to go on the wire as "

(warning - unholy mixture of xml and gratuitous character encoding below.) Short version: Why can't I get my service reference call (c#, .net 3.5, automagic service reference code added to VS2008) to properly encode a parameter that's supposed to look like this one the wire: (look for the " bits...those are my bane.) (other extra ...

Send attachment with email using WCF

Hello, We need to build an email functionality in our application and the application will be based on Silverlight. In this application user will be able to send the email with attachement. So for this purpose we have realized that we need to build and utilize WCF service which is not a problem. The place where I am stuck is that how can...

How to make Windows Service start as "Automatic (Delayed Start)"

Scenario: A WCF service running as a Windows Service. Account is "User". What is done: I have overridden the OnBeforeInstall in the projectinstaller to be able to set username and password from a config file. What I would be able to do: I'd like to be able to set the starttype as Automatic (Delayed Start) What I have tried: ...

How to consume WCF on windows server 2000 OS?

Windows server 2000 does not support .NEt 3.5, so its not supporting WCF? We, lazy, did not consider this before creating WCF application (Server, client, listener etc). My Client Console application is compiled in 3.5 just to consume WCF. I can recompile Client app to framework 2.0. to able to run it on Windows Server 2000. But how i am...

WCF Service returning Dataser very slow with basicHttpBinding

Hi, I am working on WCf library that is hosted on IIS. It is working fine but it is very slow while returning Dataset. I hear about BinaryFormatter Serialize but it is not working at my end. so please any one give me brief about how to return dataset more officienty using WCF services. Thanks in advance. ...

wcf Service could not be activated

It's a .svc IIS hosted service with ssl and membership. My wcf client reports: System.ServiceModel.ServiceActivationException was unhandled Message="The requested service, 'https://www.greenjump.nl/WebServices/OrderService.svc' could not be activated. See the server's diagnostic trace logs for more information." Source="mscorlib" ...

WCF Service 405 Method Not Allowed Exception

I'm writing a WCF service in Visual Studio 2008 to be hosted on a Windows 2008 Standard server. I've created a new Web Site in IIS7 with its own application targeted to ASP.NET 2.0. I added .NET 3.0 Framework features to the server role. I've already gone through all of the steps involving *.svc extensions and the aspnet_isapi module. I...

Generic logging of operation parameters in WCF

I have a WCF service (happy joy) all my messages inherit from the abstract class MessageBase and implements the below interface. public interface IMessageBase<T> where T : class { String Serialize(T data); T Deserialize(string text); } Each time one of my operation contracts is hit with a message like this I want to log this m...

WCF Design questions

I am designing a WCF service. I am using netTCP binding. The Service could be called from multi-threaded clients. The multi-threaded clients are not sharing the proxy. 1. WCF Service design question. Client has to sent these 2 values in every call: UserID and SourceSystemID. This will help the Service to identify the user and the syste...

What are the pros and cons when choosing ajax enabled WCF service in an asp.net webform application?

I have just experimented my first ajax enabled WCF service in a sample asp.net webform application... If i have 10-15 pages in my webapplication which involves add,edit,view and delete operations, is it possible to make them ajax post and get without using .cs(codebehind) of all pages... What are the pros and cons when choosing ajax en...

Calling WCF Service(using basicHTTPBinding) from javascript without using .NET framework

Hi, I am relly stuck into this.please gimme the answer for my WCF Q I want to invoke my WCF service that is using BasicHTTPBinding with the help of Javascript without using scriptmanager or any .Net help. I need to send some credentials and parameters in SOAP header.. Please answer to my question as i want this urgently. ...

WCF Connection faults at DataSet return values

Hi, i am working on an intranet application which should able to control sub-applications. As part of the application i want to read the logs of the sub-applications. the sub applications are keeping the connection alive by sending an alive signal every 15 minutes. so the channel is not closed - this works fine, for many days. but when...

Ajax enabled wcf service doesnt seem to work for me...

I have a web application that uses ajax enabled wcf service Service.scv.... I got it working yesterday... But when i ran my application now... It gives me error 500 Internal Server Error When inspected through firebug i saw this, http://localhost:1482/CR-F/Service.svc/js 500 Internal Server Error Why is it happening am i missing so...

Should i host my ajax enabled wcf service?

My web application uses an ajax enabled wcf service and everything is fine as of now... But what about when i move my application to production server.... Should i host my ajax enabled wcf service?... Any suggestion from anyone who had experience in hosting an ajax enabled wcf service... ...

WCF dual binding hosting in IIS

Hi, i am trying to host a service in IIS which has 2 methods... 1 of them can also be accesed via a simple HTTP-GET request... This is my config: <service name="Svc.PaymentService" behaviorConfiguration="DefaultBehavior"> <endpoint address="PaymentService.svc/" bindingName="Http" binding="basicHttpBin...

Hosting a Simple Wcf Service in Console

I am trying to create a simple ConsoleApplication in which i would like to host a simple wcf service. Here is the code for my namespace HostConsoleApplication { class Program { static void Main(string[] args) { using (System.ServiceModel.ServiceHost host = new System.ServiceModel.ServiceHost(typeof(...