I am specifically looking for an example which use a) WCF & REST. After a long googling, though I got some but they are beyond my understanding.
Could some one please give me a very simple example say "Hallow World" or Summation of 2 numbers which will give me a clear insight about how to write a server, and also how to consume the same...
Hi,
Is it possible to restrict the access of an ASHX or WCF service to only AJAX calls from your own domain?
In order to improve site performance, we want to use the full jQuery & MS AJAX 4.0 approach however exposing our retail data via an ASHX or WCF service makes it really easier for competitors to harvest our data.
Yes it is a pub...
Hey there,
I am writing a Large Scale Silverlight Application.
I am currently writing the data retrieval elements.
I have now encoutered and issue.
I have a common Project that hold objects, this project is referenced by both the UI and the WCF service.
The UI requires INotifyPropertyChanged for binding purposes.
Now the WCF must us...
I need to consume a Java Webservice which has elements of type Date and Time.
Example from the wsdl:
...
<xsd:element name="fromTime" nillable="true" type="xsd:time" />
<xsd:element name="dateOfInspection" type="xsd:date" />
...
When consuming the Webservice via Add Service Reference Visual Studio 2008 generates the following code:
...
I have a WCF service. When it gets called I would like to append a unique ID of a particular call to the log.
Is there some built in way to get a unique id or GUID for a specific call to a WCF service. It is hosted in IIS, if that makes any difference.
The OperationContext.Current.SessionId only works in situations where the binding ...
the question is how to automatically create new ActiveRecord SessionScope when using WCF Service. in web application there is httpModule described in web.config like
but how to use it in WCF service ?
...
This is our setup - our customers will have a database server with our database on and multiple clients running our frontend. We have some WCF services to allow the clients to request info from the database and each WCF session is authenticated with a username/password stored (encrypted) in the database. This all works fine and has been ...
The client sends a lot of messages to the server from a single thread, over a single WCF channel.
The client sends the message with BeginMyMethod(x, b) as it does not wish to block while they get processed.
We have reliable messaging turned on, as we don’t wish to lose any messages, or have them get out of order.
However the messag...
Good day people. I have never posted on these type of sites before, however lets see how it goes.
Today i started working with WCF for the first time, i watched a few screencasts on it and now i am ready to jump into my first solution implementing it. All is well and so far all is working, although my question comes when i create the WC...
I've been trying for more than a week without any success at all, to host wcf service using netTcpBinding.
With http, everything is ok. But with tcp problems arise.
I have performed all the steps I'm supposed to, in order to host my service in WAS:
.Net 3.0 Features are enabled, including http and non-http Activation
. At IIS Manage...
I'm getting this EndpointNotFoundException on a webservice call from a website, while the same exact call works if I do it from a console application.
Here's the more detailed exception message:
Could not connect to https://******. TCP error code 10060:
A connection attempt failed because the connected party did not properly
respond aft...
If I add a web reference from a .NET 1.1 client to a WCF service, the proxy methods generated at the client contain an extra parameter ending with the suffix 'Specified' for each service method parameter, e.g.
[OperationContract]
string HelloWorld(string foo, int bar);
results in:
Service1.HelloWorld(string foo, bool fooSpecified, in...
Here is specifically what I am seeking to accomplish:
Using .Net 3.5, I have a Windows Service, within which I have a WCF Service running. I have a client, which requests a file from the WCF Service (Net.Tcp binding), which is then copied by the WCF service to a specified location, where it can then be edited/modified by the client. The...
I would like to host a service on a WinCE device. The WinCE device is the host which can be accessed(control and data acquisition) by multiple clients (PC or WinCE) over serial port, TCP, USB etc. I was considering using Protocol Buffers for serialization on the wire. It would be ideal to use WCF or remoting but as far as I see they are ...
I know performance can be an issue with web services when you compare them to direct code. But with SOA on the rise, I have to wonder if I should be planning to make every business object in my apps into a web service, either WCF or .asmx.
The improvements to WCF in .NET 4 are definitely making me give is a second look.
...
I have searched and searched and I cannot find a solution. It seems like it would be relatively common to run into this... WCF REST service over https. When I add the service reference all of the proxy classes are correct and I can create the objects defined in the service, call the services, etc. However, I can't create a configured ...
Hi I'm using the following code to cache objects.
HttpRuntime.Cache.Insert("Doc001", _document);
HttpRuntime.Cache.Remove("Doc001");
I would like to know were the cache is stored? (On the client PC or the IIS server)
Is this a save way of cache objects and by adding and removing cache in this way will it influence any of the other cli...
I have an architecture wich goes like this
Repository -> BO -> WCF -> Web
and vica verse
Repository <- BO <- WCF <- Web
My question is, if I have just simple CRUD operation like just delete a record by its Id, would it be acceptable to skip the BO and go straight to the repository ?
Repository <- WCF <- Web
...
I have to consume to a third-party web service using SOAP. It was easy to get it to work with WCF, but now I have a problem with SOAP faults. The service sends me an incorrect SOAP fault:
<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV...
Is it worth to set the service with ConcurrencyMode.Multiple and InstanceContextMode.Single attributes to save some performance when using named pipes ?
I mean when I do so I have to bother with multithreading issues.
...