Imagine I have this class
namespace CommonLibrary
{
public class Report()
{
public DateTime Begin { get; set; }
public int Count { get; set; }
}
}
This is the return type of a WCF Service method. When I use svcutil.exe it regenerates the class from metadata:
namespace CommonLibrary
{
[System.Code...
I have a WCF web service which allows both Basic HTTP and WS-HTTP clients, both over HTTPS using user name & password authentication. This is achieved with two bindings on the same service.
So, the service is at https://foo.com/Service.svc, the Basic HTTP (SOAP 1.1) endpoint is https://foo.com/Service.svc/Unp11, and the WS-HTTP (SOAP 1....
Hello,
I currently have a WCF service with webHttp bindings, im attempting to increase the max size that can be inputted to the service by overriding the default settings in config, i have tried doing something like
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="webHttp" >
<security mode="Transport">
<tra...
Dear ladies and sirs.
Does anyone know what this particular exception mean and how to fix it?
Note, that I am not asking for help on suppressing it in the Exceptions dialog. I want to understand the root cause of it and how to fix the cause itself, if at all possible.
Thanks.
P.S.
The line that causes FCE is:
using (ServiceHost hos...
I have been building a client / server app with Silverlight, web services, and polling. Apparently I missed the whole Duplex Communication thing when I was first researching this subject. At any rate, the MSDN article I saw on the subject was promising.
When researching the scalability, it appears as if there's conflicting opinions on...
Hi.
I am trying to get ASP.NET (Framework 3.5), AJAX, and JSON to work. I have two questions along those lines. This first is, when I add the below tag as required by ASP.NET:
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Allowed)]
I find that I cannot add it above an interface declar...
I was doing some unit testing, and ran into an interesting problem in WCF. I have a service using the wsHttpBinding, configured as such:
<bindings>
<wsHttpBinding>
<binding name="wsHttpUnsecured">
<security mode="None">
<transport clientCredentialType="None" />
<message clientCredentialType="None" />
<...
Hello,
I am trying to set transport level security on a webHttp binding WCF service my current config looks like this
<system.serviceModel>
<client>
<endpoint binding="webHttpBinding" bindingConfiguration="webHttp"
contract="PrimeStreamInfoServices.IService1" name="Client" />
</client>
<bindings>
<webHttpBinding>
<binding name...
Hi I want to create my custom collection, I am deriving my custom collection class from CollectionBase class as below:
public class MyCollection : System.Collectio.CollectionBase
{
MyCollection(){}
public void Add(MyClass item)
{
this.List.Add(item);
}
}
class MyClass
{
public string name;
}
Let me ask a f...
I have a custom collection which i want to expose from the WCF web service.
[DataContract( Name = "MyClass")]
public class MyCollection : IDisposable, List<MyClass>
{
}
When I use [DataContract( Name = "MyClass")]
attribute it gives error
Type MyCollection is an invalid collection type since it has DataContractAttribute attribute....
I some WCF services, which are hosted via WAS (and IIS 7). Is it possible to deactivate some selected services without uninstalling or removing them ?
...
Hi,
I want to access all the methods exposed in the service through the URL.
if suppose the URL will be :
http://localhost/MyService/MyService.svc
How can I access methods:
if suppose I have a ServiceReference
and what should I do if don't have the Service Reference.
...
I created a COM interop component using ClassLibrary which consumes WCF. Now when I call COM component's Method (which uses WCF) from my Classic ASP page, I'm getting the following error.
Error Type:
System.ServiceModel (0x80131509)
Could not find default endpoint element that references contract 'DLSWS.IDLSWS' in the ServiceModel clien...
Hi,
i got a webservice and want to return this "string" as a bare string, without the extra serialization by WCF, because it's already serialized... how do i do it?
[OperationContract]
[FaultContract(typeof(Exception))]
[WebGet(ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
...
Hi,
I have to WCF services which use the net.msmq protocol, hosted in IIS 7. My problem is that the services do not activate when a new message appears on the queue, you have to physically browse to the services first, before they will start picking up any messages.
Is there any way to auto activate these services?
Thanks in advance ...
I have the need to add a custom behavior extension to my WCF client endpoints. I tried doing this through configuration, but have been bitten by the often-mentioned bug where WFC configuration can't parse the type name correctly. So can I do this programatically instead?
I can't modify the configuration sections at runtime because the...
I'm working with a rather large query string(~30+ parameters) and am trying to pass them to a WCF service I've setup.
I've run into a few issues specifically with the UriTemplate field. This service is setup to access a third party Api, so the query string may or may not contain all parameters. I'm curious if the best approach is to bui...
I am consuming a WCF service from another company, and it is returning an object of type object. Is there a reason not to return the actual class, and return an object that must be cast into the correct form?
For example, if the web service returns an object of type OrderStatus, why would you instead return a plain old object?
Correct...
I have a WCF service deployed behind the load balancer, when I try to reach it with SOAP it works great, but when I try to reach it via REST url I get the below mentioned error.
This is the REST URL I try to reach it with https:// devreporting.dev.sample.com/ReportingManagement.svc/getAddtionsByCategory..
The load balancer VIP is https...
If a WCF service is consuming ADO.NET Data Services, what is the best approach to expose the Data objects to the WCF conusmers? DTO with your own Data Contract attributes? Is there a way to expose the Data objects directly to the WCF service's clients?
...