I'm making WCF calls from a Mono client running on Ubuntu (Mono 2.6).
I can't seem to add a custom header to my messages. I have tried two different ways:
Using a [MessageContract] and [MessageHeader] attributes on a custom class
Adding the header to the outgoing messages programmatically, e.g.
MessageHeader mhg = new MessageHeader("...
I have a class that is decorated with a KnownType attribute with a type of the class. Is this not allowed?
[KnownType(typeof(Occ600UIConfig))]
public class Occ600UIConfig
{ }
If so, why is the DCS throwing the following exception?
{"Error in line 1 position 387.
Element
'http://schemas.microsoft.com/2003/10/Serial...
I am getting the following error when trying to use the WCF Test Client to hit my new web service. What is weird is every once in awhile it will execute once then start popping this error.
Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; th...
We have a WCF-based client server that operates over a LAN. We've been getting along ok by using the NetTcpBinding, chosen because we couldn't get either HttpBinding to work between hosts. (Within a single host works fine, but is not useful for the production environment.)
We're now back at the point where we want to explore using eithe...
I am consuming a WCF Service from a webpart in Sharepoint 2007. But its giving me the following error:
There was no endpoint listening at
http://locathost:2929/BusinessObjectService
that could accept the message. This is
often caused by an incorrect address
or SOAP action. See InnerException, if
present, for more details. -...
Hi guys,
I've got a WCF service (basicHttpBinding, basic authentication, IIS 6.0) on which I want to restrict the number of calls per hour - on user basis. For example, max 1000 calls per user, per hour (a la Google Maps, etc).
I also want to implement some sort of subscription mechanism, so that users can upgrade their call-limit ac...
I have a L2S Repository class which instantiates the L2S DataContext in its constructor.
The repository is instantiated at run time (using Unity) in a service hosted in IIS with WCF.
When I run up the client MVC applicaton the calls to the backend WCF service work for a while and then timeout.
I suspected perhaps a database issue as I...
Hi all,
I've got a wcf service that returns me an array of items.
I've got a javascript method that recieves the items and handles them.
I want to send the javascript function another parameter from the client side, an id of an object on the page.
Something like this:
function WriteSonCategories(selectedCategoryId, callback) {
...
Just a technology update, now that .NET 4.0 is out.
I write an application that communicates to the server through what is basically a message bus (instead of method calls). This is based on the internal architecture of the application (which is multi threaded, passing the messages around).
There are a limited number of messages to go ...
Hi,
We have server to server WCF service call failing and throwing following exception message. We are using certificate to authenticate to downstream services. The services are load balanced, but keeping just one server on load balancer also shows up the same behaviors. These failures are not consistent. Any help is greatly appreciate...
Hello,
maybe I will not correct explain a problem, maybe somebody help me explain this problem.
So, I have next task: create instance of URI with name of PC, like this:
baseAddress = new Uri(string.Format("http://{0}:{1}", Dns.GetHostName() ,port ));
But if PC in domain I need to use extended PC name like this:
pcname.company.com...
Scenario: I have an existing https ASP.NET site to which I'm going to be adding some new remote services. The services provide calculations that need to be callable both via AJAX methods on the site, and via a .NET desktop application.
I had been using ASP.NET WebServices (marked with the ScriptService attribute) to accomplish this. I...
For example, is this correct?
[OperationContract]
bool IsHappy(string userID);
bool IsSad(string userID);
bool IsHungry(string userID);
Is that a valid body of operations for a WCF ServiceContract or do I have to do it this way:
[OperationContract]
bool IsHappy(string userID);
[OperationContract]
bool IsSad(string userID);
[Operati...
Here's my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using BankServiceClient.BankServiceReference;
namespace BankServiceClient
{
class Program
{
static void Main(string[] args)
{
Uri baseAddress = new Uri("http://localhost:80...
I am setting up a REST endpoint that looks like the following:
[WebInvoke(Method = "POST", UriTemplate = "?format=json", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json)]
and
[WebInvoke(Method = "DELETE", UriTemplate = "?token={token}&format=json", ResponseFormat = WebMessageFormat.Json)]
The ...
I am getting some data in the form ExtensionData in Client side. However, it is coming properly in the server side(means the class properties as expected) But how to get the data from the Extension object is not known to me. I am new to WCF and is using C#
Hewlp needed.
...
Has anyone managed to run wcf successfully in 2.0 integrated mode on IIS7 when .net 4 has been installed?
I found that installing .net 4 removed the 2.0 handlers for svc and replaced them with .net 4 versions (this led to a 404.17 error in my v3.5 site), I managed to get my 3.5 site working again by running ServiceModelReg.exe /i from ...
we are having this error on our production. When the biztalk invokes the WCF service it gets the following error:
Invokation of Target Service Failed
I invoke the production service using my console application and it works fine. Any ideas?
UPDATE:
The service is ASMX service which is called from Biztalk using WCF client. Does th...
I am trying to figure out a way to consume a WCF service I have (wsdl) from Coldfusion. I need to pass values in the request header. I can't seem to find any good examples anywhere. Anyone?
...
I have a set of data contracts that act as wrappers to base classes that we wish to expose. A quick example is:
[DataMember]
public List<decimal> Points
{
get
{
return sourceObject.ListPoints();
}
private set{}
}
We have some other properties that we have to massage the data first (we are converting object gr...