Questions tagged [wcf-extensions]

50 questions
3
votes
1 answer

Difference between IOperationBehavior and IContractBehavior?

I want to know what is difference between IOperationBehavior and IContractBehavior and what is special case when we can see difference between this two in development.
dotnetstep
  • 17,065
  • 5
  • 54
  • 72
3
votes
1 answer

WCFExtras XmlComments ... Where Are They?

I spent the last 3 hours trying to get WCFExtras to output my XML comments to my WSDL using the steps they describe on the codeplex site among other places. Eventually I discovered WCFExtras was also generating a second WSDL available as a single…
omatase
  • 1,551
  • 1
  • 18
  • 42
2
votes
1 answer

IIS 500 Error WCF Service and Failed Request Tracing not info

I have a WCF service running in IIS 8.5 on Windows Server 2012 R2 with AppPool Integrated. I open url in the server: http://localhost:50123/MyService.svc I have HTTP 500 Internal Server Error. (IExplorer cannot show the page) I have not found the…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
2
votes
0 answers

MTOM messages must have type 'application/xop+xml'

I'm using C# to call a Java Webservice. Fiddler gives me a status of 200. So my call to the service is good. But something in the .NET does not like my MTOM message. Any ideas? Here are all the details. I'm getting this error: MTOM messages…
MindGame
  • 1,211
  • 6
  • 29
  • 50
2
votes
1 answer

How to get OperationContext from an attribute implementing IServiceBehavior/IOperationBehavior

I have a Attribute implementing IServiceBehavior to secure my WCF services, like below: public class AuthorizedServiceAttribute : Attribute, IServiceBehavior { #region IServiceBehavior Members public void…
Lewis LE
  • 45
  • 5
2
votes
2 answers

How to add behavior to client endpoint in IIS Hosted WCF Service using ServiceHostFactory

I am looking at implementing IDispatchMessageInpector & IClientMessageInpector to look at the message objects in AfterReceiveRequest and BeforeSendRequest Methods. My requirement is to make changes at code level of WCF service. No Configuration…
Sandeep Polavarapu
  • 382
  • 1
  • 6
  • 25
2
votes
2 answers

WCF IParameterInspector + IErrorHandler

If I have both IParameterInspector and IErrorHandler attached to a service can I be sure IErrorHandler.HandleError() will be called on the same thread where IParameterInspector.BeforeCall() is called? I need this because in case of a fault thrown…
UserControl
  • 14,766
  • 20
  • 100
  • 187
1
vote
1 answer

WCF Custom Message implementation

In the context of a WCF project, I need to handle in the same way xml and non-xml messages (eg. Standard SOAP, WS-Attachments, etc..). The normal flow of WCF creates a Message object which can handle an Xml message, this is done by the encoder, so…
Hoghweed
  • 1,938
  • 1
  • 16
  • 35
1
vote
1 answer

WCF service behavior extension throwing null reference exception

So, im trying to write routing service. The idea is that, every time someone calls routing service, endpoint is randomly selected by WCF behavior extension. I used slightly modified example from MSDN called DynamicReconfiguration to achieve that.…
aron
  • 1,874
  • 5
  • 23
  • 29
1
vote
0 answers

WCF mark all value type data members as required

I'm in the context of a WCF service. I am trying to validate that my client sends me a valid contract. In my company we have hundreds of data contracts. For us it makes sense that all value types, with the exception of Nullable, should by…
tsemer
  • 2,959
  • 3
  • 29
  • 26
1
vote
0 answers

Unity DI with WCF Client

I am using UnityContainer for our Project. I have a requirement to Add a Custom Header for all out going wcf calls so i have implemented IClientMessageInspector and IEndpointBehavior. Now i am trying to get the header value from some object using…
1
vote
1 answer

StructureMap exception 202

I'm using StructureMap on WCF service and MVC 4 application, I have configured it on both of them, but once I run the application I receive the following exception: StructureMap Exception Code: 202 No Default Instance defined for PluginFamily …
SVI
  • 921
  • 4
  • 11
  • 23
1
vote
2 answers

WCF Custom encoder - Assigning message content type at runtime

I'm currently building my own WCF Encoder that will parse my message. I want to dynamically change the content type that is assigned when I'm sending a reply but I can't get my head around where he is looking for it. Is he using the…
Tom Kerkhove
  • 2,151
  • 5
  • 26
  • 42
1
vote
1 answer

WCF: Injecting custom headers for an operation through decoration

Hi I need to inject a custom header in the message if the operation is decorated. What have I done so far? 1) Created an Attribute by inheriting Attribute and IOperationBehavior 2) Attached a custom OperationInvoker with the…
asolvent
  • 821
  • 13
  • 26
1
vote
0 answers

WCF CustomBinding for CustomTextMessageEncoder using HTTPS

I am working on a WCF REST-type service that will accept text/xml type documents via a POST over HTTPS (ASP.NET 4.0 on IIS). Can someone help me with the web.config? I'm testing with the sample code for the CustomTextMessageEncoder to parse the…