Questions tagged [operation-contract]
8 questions
13
votes
3 answers
In the WCF web programming model, how can one write an operation contract with an array of query string parameters (i.e. with the same name)?
Using the WCF web programming model one can specify an operation contract like so:
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Xml, UriTemplate = "SomeRequest?qs1={qs1}&qs2={qs2}")]
XElement SomeRequest1(string qs1, string…

Dilip Krishnan
- 5,417
- 3
- 37
- 53
1
vote
2 answers
Is there a limitation for number of Operation Contracts in WCF services?
I have a WCF service that contains a number of operation contracts. When the number of these operations was too many, I get an error in wcftestclient for binding service. When I split this service into two services this problem is solved.
What is…

masoud ramezani
- 22,228
- 29
- 98
- 151
1
vote
1 answer
Remove TransactionScopeRequired = true
I have an operation contract, on a windows service and it has an attribute
[OperationBehavior(TransactionScopeRequired = true)]
I would like to get rid of this attribute. Reason :
containerize the service.
and Containerized apps do not support…

Raj
- 77
- 2
- 10
1
vote
1 answer
Is it necessary for me to write [OperationContract] over every method in my WCF Service?
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…
delete
1
vote
1 answer
WCF wrapper for 3rd party web service - fire and forget [OperationContract(IsOneWay = true)]
I have created a WCF service which is a wrapper for a third party web service adding some additional functionality. The issue I have is that within my methods I want to call methods in the 3rd party web service but I don't want to wait for a…

Nigel B
- 3,577
- 3
- 34
- 52
0
votes
1 answer
WCF operation contract and list size
I have an operation contract in my service contract that accepts a list of data contract objects as an input (void Foo(IList data)). How can I limit the number of data contract items in the collection so that f.ex. not more that 500 can't be…

erkib
- 35
- 6
0
votes
0 answers
WCF Service Datacontract got replaced with OperationContract name
After adding my wcf to website data contract got replaced with operation contract. How to get back like code 2
code1
[OperationContract(Action = "http://tempuri.org/IDocument/GetFile", ReplyAction = "http://tempuri.org/IDocument/GetFileResponse")]
…

Sadwik
- 37
- 1
- 8
0
votes
2 answers
WCF type conversion
I am stuck with this error..can anyone point me in right direction
In my WCF service ..I have a operationcontract defined as follows...
[OperationContract]
[FaultContract(typeof(ProductFault))]
BusinessResponse
- >…

bp581
- 859
- 1
- 16
- 47