Questions tagged [operationcontract]
70 questions
0
votes
1 answer
WCF Binding Filter Option
Is it possible that we can expose few methods (OperationContract) of one contract ServiceContract) to one WCF binding and rest methods (OperationContract) of same contract (ServiceContract) to other binding ?
0
votes
1 answer
Can we send a Generic List ( List) as a parameter to a WCF OperationContract?
Can we send a Generic List ( List) as a parameter to a WCF OperationContract?
Seems like the only way to do it is to encapsulate the List as a DataMember inside another Class and specify the class as a DataContract:
But that doesn't look right…

Gadam
- 2,674
- 8
- 37
- 56
0
votes
0 answers
how do I add namespace to soap request?
How do i add namespace to the SearchSchemes ? The following is the soap request and
The current output is as follows .
…

user740022
- 39
- 1
- 8
0
votes
2 answers
Get ServiceContract Methods from WCF
I want to list all methods from a WCF service that has the attribute "OperationContractAttribute"
For that, I use the following code:
var service = assembly.GetType(typeName);
if (service == null)
return webMethodsInfo;
…

Sergiu
- 297
- 3
- 16
0
votes
1 answer
Send DbConnection via OperationContract in WCF
Is there any possibility to send DbConnection as a parameter of OperationConstract in WCF? Because I get exception "Type System.Data.SqlClient.SqlConnection with data contract name…

user1759320
- 57
- 5
0
votes
0 answers
Why WCF service is getting old values of parameters
I have setup two projects. One is WCF service project with following contract:
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate =…

monish001
- 671
- 2
- 8
- 20
0
votes
2 answers
Get custom object via WCF in an Explorer-Extension isn't working but in Winform
I have a WCF Host with something like this:
[ServiceContract]
public interface IMountToOs
{
[OperationContract]
char GetMountDriveLetter();
[OperationContract]
MyTestClass MyTest();
}
public class MyTestClass
{
public string A…

masterchris_99
- 2,683
- 7
- 34
- 55
0
votes
1 answer
WCF ServiceContract and SOAP response not called *Response
I'm writing a SOAP consumer using WCF.
In the following WCF service contract, WCF expects that the response has a Body and an element called HelloResponse:
[ServiceContract]
public interface HelloService
{
string Hello(string input);
}
On the…

Allanrbo
- 2,278
- 1
- 23
- 27
-1
votes
1 answer
Overloading actions wcfservice
Maybe i am mixing up some things but i can not find any questions or documentation on overloading actions for a wcf service recieving SOAP messages.
The goal: I have 3 SOAP messages coming in to my wcf service with the same actionname on the same…

Pieter
- 458
- 5
- 16
-2
votes
1 answer
WCF REST Service: I get a System.Net.Mime.ContentType is a type but is used like a variable
I have a WCF REST service that has to provide a video in one of its methods. The interface looks like under here (I did not provide the implementation because the problem lies here).
[ContentType] is recognized but I get a…

Tumelo
- 301
- 3
- 18