wcf

How to Comsume IIS Hosted WCF Service from Asp.net 2.0

Hi, I'm trying to consume WCF service using asp.net2.0 Here are some details: 1) WCF service hosted on different server IIS URL : http://myserver/Service.svc 2) Web.config 3) asp.net page 4) myjs.js MYNameSpace.IService.MyMethod(); *** here it throw...

How to consume a iis hosted wcf service from asp.net2.0

Hi, I'm trying to consume WCF service using asp.net2.0 Here are some details: 1) WCF service hosted on different server IIS URL : http://myserver/Service.svc 2) Web.config bindings> wsHttpBinding> binding name="ServiceBinding" maxReceivedMessageSize="2147483647" readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArra...

WCF service hosted in IIS with netTCP binding

I have a WCF service hosted in IIS7 with netTCP enabled. This is my web.config in %apppath%\ , where the SVC file is. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <services> <service name="Search.Querier.WCF.Querier" behaviorConfiguration="SearcherServiceBehavior"> <host> <...

To consume a RESTful web service in C#, should I use HttpWebRequest?

How do I consume a RESTful web service in C# code? NOTE: by RESTful, I mean non-SOAP. For example, in the flickr API you can call their web service as follows to return JSON data: http://api.flickr.com/services/feeds/photos_public.gne?tags=cats&amp;tagmode=any&amp;format=json Do I simply use HttpWebRequest? What if I'm using a web se...

Using application domain model on WCF service

I just referenced my application domain layer dll to the new WCF service that I am creating. On my initial tests I am able to use and return the objects from my domain layer on the WCF service. Question that come in my mind is none of my domain claseses have [DataContract] attribute so does this create a limitation or problem for me th...

Sharing domain model with WCF service

Is it good practice to reference my web applications domain layer class library to WCF service application. Doing that gives me easy access to the already existing classes on my domain model so that I will not need to re-define similar classes to be used by the WCF service On the other hand, I don't like the coupling that it creates be...

svcutil fails against service with a fault contract

We have a WCF self hosted service which we have been developing for awhile. As part of our standard we have defined a FaultContract which we apply to operations. Recently we needed to add a new ServiceContract so we did that and added a simple method (void/no params) to it. Once we added this contract though SVCUtil would no longer ge...

Inherited web.config files and HttpContext bug in WCF?

I'm using WCF to create a SOAP service with the following file layout hosted on IIS: / /web.config /service /service/test.svc /service/web.config In the /web.config, I have a few general settings (system.codedom, etc) and in the /service/web.config I have an appSettings section with a few settings defined. <?xml version="1.0"?> <conf...

empty response from a WCF call even though Soap has values

hi, when im invoking a service from my code and from WCFTestClient, im getting a null response, but when im using another Tool (SoapUI), im getting a valid response back. Anyone has any idea why this is happening? thanks a lot ...

WCF address does not match what I specify in my web.config

In my web.config, I have specified <services> <service name="Querier.WCF.Querier" behaviorConfiguration="QuerierServiceBehavior"> <host> <baseAddresses> <add baseAddress="http://myserver:8000/SearcherService"/&gt; </baseAddresses> </host> <endpoint address="net.tcp://...

WCF Metadata on separate port and not SSL

Hi all, Pretty new to complex WCF configs and have looked around, but couldn't clearly answer this. I'm looking for a yes this is possible and ideally a sample or no, this is not possible. Question: Can you separate out the Metadata (WSDL) from a secure transport (SSL) service and make it plain old HTTP? We have a WCF service that is...

WCF - VS2005 to VS2008 Sln Conversion Problem

I have converted a VS2005 solution to VS2008 solution. I am trying to Add a Service Reference to a project in the solution but not finding the desired option in the Right click -> Popup Menu. I am not trying to add a Web Reference. I am trying to add a Service Reference. I am working with a WCF Client. ...

LINQ: Doing an order by!

Hi there, i have some Linq to Entity code like so: var tablearows = Context.TableB.Include("TableA").Where(c => c.TableBID == 1).Select(c => c.TableA).ToList(); So i'm returning the results of TableA with TableB.TableBID = 1 That's all good Now how can I sort TableA by one of its column? There is a many to many relation ship betwee...

Simple query regarding WCF service.

Hi All, I have a WCF service which has two methods exposed: Note: The wcf service and sql server is deployed in same machine. Sql server has one table called employee which maintains employee information. Read() This method retrieves all employees from sql server. Write() This method writes (add,update,delete) employee info in emplo...

When to use WCF and when to use ADO data services in ajax websites?

I am really confused about when to use WCF and when to use ADO data services in my website ajax calls. I always make my javascript code call a webservice to get data from server "ajax". But while reading in both WCF and ADO data service, i am not sure when to use each and when not use?, and if they replace each other in my case? or can...

Joining threads in a WCF hosted service

Can anyone recommend a "clean" way of closing a WCF service and its threads when hosted in a servicehost object? Calling servicehost.Close(); doesn't work when the service has spawned other threads :/ Cheers, Rob ...

Correct way to host a *stable* WCF MSMQ windows service

I have an application that uses MSMQ for asynchronous processing of certain things. I use WCF to put messages on to the queue and have a WCF MSMQ listener (a windows service) to receive messages and deal with them. My problem is keeping this stable. What is the correct way to deal with (for example) the queue server (which is a separat...

Is it necessary to change the service contract of a WCF service (Begin<operation> and End<operation>) for it to be consumable by Silverlight?

My team owns both the WCF service and the Silverlight 3.0 application that will be consuming it. We do not want to use svcutil to generate proxies as it adds complexity to the development process. We've been down that road before and we're not doing it again. I've successfully used the ChannelFactory on a WinForms app and I'd like to...

LoadControl in WCF

Since i havn't access to the TemplateControl or page from a WCF service i was wondering if it was possible to render a custom control? If so how would one do it? private string GetRenderedHtmlFrom(Control control) { StringBuilder stringBuilder = new StringBuilder(); StringWriter sw = new System.IO.StringWriter(stringB...

WCF call throws: "The provided URI scheme 'http' is invalid; expected 'net.tcp'." exception

I have a WCF service hosted in IIS7. This is the app.config for my service hosted in IIS <system.serviceModel> <bindings /> <services> <service behaviorConfiguration="querierSearch.Querier.WCF.QuerierBehavior" name="querierSearch.Querier.WCF.Querier"> <endpoint address="net.tcp://localhost:808/querierSearc...