I'm using the WCF Rest Starter Kit, and I'm able to send and receive data. I'm trying to serialize the data I receive from the service, but for whatever reason, the XML reponse from the service includes (what I'm guessing is) an invalid DTD. For example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE response>
<response>
// blah blah...
For WCF I need to specify that the known type for any IEnumerable<T> is T[]. Is there any way that this is possible using the configuration section? Something like the following, though I know it doesn't work just like this:
<system.runtime.serialization>
<dataContractSerializer>
<declaredTypes>
<add type="System.IEn...
I'm trying to get authenticated using the the Authentication Service and my Membership Provider. Ideally I want to call my membership provider, but I bomb out before hitting my provider. Says a token cannot be validated. Checking my error log, it appears I'm trying to Authenticate using Windows auth. That's not what I'm intending to do. ...
I'm trying to call a WCF Service from a SQL Stored Procedure written in C#.
I saw various posts or questions on about the same topic :
http://stackoverflow.com/questions/3502343/calling-a-wcf-service-from-sql-clr-stored-procedure
http://stackoverflow.com/questions/751500/sql-clr-stored-procedure-and-web-service
But there's something I ...
Hey,
I am returning a list of items (user defined class) in a REST service using WCF. I am returning the items as JSON and it is used in some client side javascript (so the 'schema' of the class was derived from what the javascript library required). The class is fairly basic, strings and a bool. The bool is optional, so if it is absent...
Taking the follwing scenario in consuming a WCF method:
List<TList> MyList ; // contains 1000 rows
MyWCFclient svc = new MyWCFclient;
foreach ( var g in MyList){
g.field1inMyList = svc.getCalc( g.field2inMyList )
}
svc.Close();
could be a good implementation to reuse a wcf method in this way, performance etc ? please any one he...
When trying to create a web service proxy (WCF) using SVCUTIL.EXE (on command line or via Visual Studio) I get the below nonsensical error message.
Note: There is nothing wrong with the service as it works on another machine just fine. It's a new install of Windows and the service is on my local box. Generating the same proxy on my mach...
Hi,
I have a wcf discoverable service called "GetNameService" which is hosted on a PC @ 10.0.0.5:8732. It is hosted with wsHttpBinding and is discoverable thru' UdpEndpoint. I also have a client @ 10.0.0.9 which discovers for such services in the same network. When I ran the client, I am able to discover the service but the end point o...
EDIT
After looking at this for a while, I thought it might be a configuration issue on my development box. However, after doing a clean download of the source code to a different development machine, I'm still getting this issue.
I've got a Silverlight client that calls WCF services asynchronously. Intermittently, I will get one ...
Please any body tell me the link for WCF tutorial.
...
I have a WCF deployed on IIS. Now by adding web reference of it i am using it on my app.
So I have two questions:
Is it the best method of consuming WCF.
If the answer of first question is yes then what is the role of svcutil.exc, I mean what is the use of creating wcf proxy class. and if the answer is "No" then why?
...
Hi,
I have the following SOAP message that i want to post it to my WCF Service and get response.
"<s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\">\r\n <s:Header>\r\n <a:Action s:mustUnderstand=\"1\">http://schemas.devleap.com/OrderService/IOrderService/InsertOrder&...
I have an application consisting of several WCF services, some of which are implemented in Workflow Foundation (.NET 3.5), others just plain C#. These services communicate with each other over a netNamedPipeBinding for performance reasons. The trouble is that I'm seeing more and more CommunicationExceptions and underlying PipeExceptions ...
i want a web application to create a service reference to my WCF service, insert information to the header of the soap call and call my WCF method.
i read about MessageContract attribute and declared one in the interface file:
[MessageContract]
public class BasicServiceHeader
{
[MessageHeader]
public string myString;
}
my WCf...
Are DataContracts in WCF nothing more than DTOs? I was reading up about WCF and just had a couple of thoughts. It would be nice if some of the DataContract objects could have methods on them so that the client could do basic things with them before or after sending or retrieving back to the service.
To me this just doesn't seem possibl...
I have created and hosted my WCF REST API Using WCF REST Starter Kit preview2. Which supports Dynamic Response and Request format type (XML and JSON).Everything is working fine if I consume the service in same domain through Jquery, Microsoft.Http.
My cs code is as following:
private void GetData()
{
string url = string.For...
My requirement is to call WCF web service from ASP.NET code behind and pass some data for example:
void Add(int x, int y);
Result of the operation should be somehow stored within WCF web service (member variable).
Later user should be able to call
double Equals();
and get the result of the operation. Of course since it's an open w...
I'm thinking through the high level architecture of a WPF application.
Usually I would think in terms of this
A database server
A data access layer on its own server
A business logic layer on its own server
WCF wrapper round the business layer
UI Layer for use on the client.
E.g. a thin client with all the magic happening on remote...
We need to provide an API for an Activity Feed (think of Facebook) and we decided to give OData a try. We are using .NET so we went for WCF Data Service but we don't use Entity Framework (or any other ORM) so we will use the Reflection Provider. Because we have complex business logic for our retrieval methods we decided to expose them as...
Situation: multiple front-ends (e.g. Silverlight, ASP) sharing a single back-end server (WCF RIA or other web service).
I am looking for a standard to prevent multiple people from editing the same form. I understand that this is not an easy topic, but requirements are requirements.
Previously I used the DB last modified date against th...