Questions tagged [wcf-behaviour]
34 questions
2
votes
1 answer
SoapUI get response but not the .Net Client
I am trying to access a https Java webservice from .net client but always end up with "504 Gateway Timeout" exception.
I could get the response from the same webservice using SoapUI.
I also noticed that the request soap message of SoapUI and .net…

Sunil Munikar
- 25
- 2
- 6
2
votes
0 answers
How to programmatically read the current Filter Table on a WCF Router
We have an existing wcf router with the following configuration:

EdmundYeung99
- 2,461
- 4
- 27
- 43
1
vote
1 answer
Set wcf service credentials in config file for a service with endpoints created in code
I want to be able to set the uri for a service endpoint in code while having the configuration for the security behaviour set in the config file.
The following gets me some of the way there, the service uses the correct binding configuration - but I…

dice
- 2,820
- 1
- 23
- 34
1
vote
2 answers
Modify returnvalue in WCF operation
I want to ensure that all our operations that return datasets in our WCF has .ExcludedSchema value set in Property SchemaSerializationMode.
Can I do this with a CustomBehavior?
I tried to implement a CustomDispatchBehavior and add a…

Martin
- 1,521
- 3
- 18
- 35
1
vote
1 answer
Making domain data available to WCF behavior
In my application, I have a value ("BusinessUnit") which I want to add into every request to a web-service. One way of doing this would be to write a WCF behaviour, which would insert the value for me.
However, the one part I am not clear on is how…

RB.
- 36,301
- 12
- 91
- 131
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
2 answers
Throwing a fault inside a behavior and returning it to client
I'm writing some services in WCF to be called by a Silverlight client. I change status code to 200 every time a fault is to be returned, via a IDispatchMessageInspector.
It works almost perfect, but sometimes it keeps returning error 500: NotFound.…

André Werlang
- 5,839
- 1
- 35
- 49
1
vote
1 answer
WCF Catch faults returned if input has empty node for required property
I've created a WCF service that uses Unity/Unity.WCF/Unity.Interceptors for fault handling.
Now, If I do a SOAP request and do NOT include a required node in the request - the service method executes - I throw an exception and my interceptor makes…

Jochen van Wylick
- 5,303
- 4
- 42
- 64
1
vote
2 answers
Programmatic configuration of Exception-sending in WCF
I would like my Silverlight client to be able to display exceptions that have happened at the server during a WCF call.
Given my current code to create a WCF Channel (on the client):
// create the binding elements
BinaryMessageEncodingBindingElement…

Program.X
- 7,250
- 12
- 49
- 83
0
votes
1 answer
WCF - Addressing issue when using custom endpoint behavior
I am trying to implement a custom endpoint/operation extension in my WCF service. I have wired up my custom extension in the websconfig so that I can decorate my service & and operations with an attribute. However after doing so I get the following…

Nick
- 19,198
- 51
- 185
- 312
0
votes
1 answer
Not able to combine and in a single wcf endpoint behavior
I am trying to combine enablewebscript and clientcredentials in a single wcf endpoint behavior so that I can fetch a x509 certificate via thumbprint.
But when I define both the above mentioned tags in a single endpoint behavior, the service is not…

Sumit
- 1
- 1
0
votes
0 answers
How to use netTcpBinding with Message level security?
I am migrating my WSE3 services to WCF platform. Clients are going to be legacy WSE3 clients.
To achieve some requirements, I have created custom service behavior. The configuration (in web.config) for the service behavior contains the…

Learner
- 4,661
- 9
- 56
- 102
0
votes
2 answers
Restricting WCF Service access to only localhost which is hosted using console application
I am very new to WCF.I have a WCF service hosted using a console application but, the WCF needs to be called from a C# webservice hosted on the same machine. So how can I restrict the endpoint access to loopback ip, i.e 127.0.0.1
Right now I can…

debanka
- 187
- 1
- 4
- 13
0
votes
1 answer
Unpredictive Behaviour of WCF netTCPBinding
I'm implementing WCF netTCPBinding and encountering a problem while running tasks related to the database. The exception is "System.Net.Sockets.SocketException: 'An existing connection was forcibly closed by the remote host' in net tcp binding".…

Faisal Sajjad
- 239
- 2
- 4
- 13
0
votes
1 answer
WCF - Does a client must have the same behavior as the endpoint?
I have the following WCF endpoint configuration:

laconicdev
- 6,360
- 11
- 63
- 89