wcf-binding

WCF Service Reference Support Files Not Updating

做~自己de王妃 提交于 2019-12-12 15:16:41
问题 I have a VS 2010 solution containing a WCF service project and a unit test project. The unit test project has a service reference to the WCF service. Web.config for the WCF service project sets a number of binding attributes to other-than-default values: web.config: (Specifically note maxBufferSize=" 20000000 ") <basicHttpBinding> <binding name="basicHttpBindingConfig" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000"> <readerQuotas maxDepth="32"

Selfhosted WCF service cant be tested via WCFTestClient

◇◆丶佛笑我妖孽 提交于 2019-12-12 13:09:11
问题 I am trying to test my self hosted wcf service using WCFTestClient. I get an error like so: Error: Cannot obtain Metadata from http://localhost:2303/MyService If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error URI: http:/

WCF Service Communication Exception Due to Parameter Size

假如想象 提交于 2019-12-12 12:04:59
问题 I've got a WCF Web MEthod that takes in an XElement object as a parameter. For one of my XML files (sized at 600KB or so) this works just fine, however, for this bigger XML file (about 5MB) I get a CommunicationException right away. I've already increased the message sizes for my binding. Below is the ServiceModel section of my web.config: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="BIMIntegrationWS.metadataBehavior"> <serviceMetadata httpGetEnabled="true" />

Is there a way to add WCF svc-less activation with multiple service Activations?

♀尐吖头ヾ 提交于 2019-12-12 03:35:24
问题 Given the following configuration: <serviceHostingEnvironment multipleSiteBindingsEnabled="true" > <serviceActivations> <add relativeAddress="./UserService.svc" service="Mercato.KnowledgeKube.WebSvc.Service.KnowledgeuserManagerService" factory="Mercato.KnowledgeKube.WebSvc.WCF.KnowledgeServiceHostFactory" /> <add relativeAddress="./ProductService.svc" service="Mercato.KnowledgeKube.WebSvc.Service.ProductManagerWebServices" factory="Mercato.KnowledgeKube.WebSvc.WCF.KnowledgeServiceHostFactory"

MSDN Conflicting statement- Which protocol support which security in WCF (Particularly Transport and Message security)

邮差的信 提交于 2019-12-12 03:08:51
问题 Statement 1: Transport security is available on all of the bindings except for wsDualHttpBinding. Statement 2: Transport security is available on all of the bindings except for netNamedPipeBinding. I am a beginner, I was looking for which protocols support transport security and which protocols support message security and which support both. I came across the statements above from MSDN which I don't understand as it appears to be conflicting, which is on the same page of MSDN (below ref) Ref

WCF - wsHttpBinding with UserName Autentication and Message - error message “An error occurred when processing the security tokens in the message”

邮差的信 提交于 2019-12-12 02:46:44
问题 I'm trying to create WCF applications with username authentication. And this error occurring. This is the service configuration: Web.config <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service name="Jsl.BureauInf.Services.BureauInfSVC" behaviorConfiguration="ServiceBehavior"> <endpoint address="" binding="wsHttpBinding" contract="Jsl.BureauInf.Contracts.ICliente" bindingConfiguration=

Problem while using MessageContract attribute : Exception -> End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected

江枫思渺然 提交于 2019-12-12 02:44:18
问题 I am moving my WSE3 web services to the WCF. But the client is WSE3 client. All the Operation Contracts return an instance of the MessageContract classes. This works for 2 operations but somehow fails for one operation of the same service contract. The error is: The signature or decryption was invalid. When I look into WCF trace file, I found the following: The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation

Soap and Rest on same service returns status 404/endpoint not found for soap endpoint

微笑、不失礼 提交于 2019-12-11 20:41:59
问题 I am trying to configure two endpoints for the same service one for rest that is webHttpBinding and one for soap that is wsHttpBinding. but when I hit the service for soap it gives me no endpoint found. Here is my interface ITicketService.cs [ServiceContract] public interface ITicketService { [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/tickets")] void

WIF, Duplex and Bindings

ε祈祈猫儿з 提交于 2019-12-11 18:38:42
问题 I've used WIF to create a STS but how can I get Duplex callbacks working. The current binding i'm using is WS2007FederationHttp. Which I'm lead to believe doesn't support Duplex. Can WIF support duplex? 回答1: WIF can but that federation binding doesn't out of the box. You'll want to do something like: // Setting RequireClientCertificate = true enables mutual authentication (2 way SSL), originally disabled for WS2007FederationHttpBinding HttpsTransportBindingElement httpsBinding = outputBinding

Silverlight serialization of a .NET Web service causes XML error

坚强是说给别人听的谎言 提交于 2019-12-11 15:39:11
问题 I've got this class being provided by a web service that is then being consumed by a Silverlight app (I don't know if that's relevant or not) [Serializable] public class Entry { private string _title; public string Id { get; set; } public string Title { get { return _title; } set { _title = value; } } public string Link { get; set; } public DateTime Published { get; set; } public DateTime Updated { get; set; } public User User { get; set; } public Service Service { get; set; } public List