Questions tagged [operationcontract]
70 questions
2
votes
2 answers
WCF Connection closed with complex data
I have a WCF service and in this service I return a class with lots of properties, some of which are classes themselves and it is a little complex but not hugely. I've done a similar thing on the same project with another WCF service and it all…

Sachin Kainth
- 45,256
- 81
- 201
- 304
1
vote
0 answers
Return Multiple Elements in a SOAP Response
I'm using:
.NET Core 3.0 (C#)
SOAPCore for serialization
SQL Server
I have a pre-built SOAP service from a legacy system that is providing a request structured with two (2) Elements (RequestHeader and SearchPolicyDetails):

William Howell
- 69
- 7
1
vote
2 answers
WCF - Generalizing Action String
I have to take some pre-defined WSDL's (I do not control these), and expose them on our device to reply to various SOAP/UPnP requests.
Anyway, I have all of this working, but the problem comes through because I have one service that could be…

ifdef_debug
- 11
- 1
- 2
1
vote
1 answer
How to send over a PDF file through WCF Service?
I am currently using Visual Studio 2015 and is building a website. I have tried using OperationContracts and ServiceContracts with a 3-tier architecture, however, I could only do the basic things (Create, Retrieve, Update, Delete with normal…

John Arc
- 173
- 1
- 17
1
vote
2 answers
WCF service only receiving 65536 String.Length size only, not more than that
I have created a WCF service which receives String (Text/Json) as a request, but the problem is it is only able to receive String length of 65536 (String.Length). I have tried below (binding maxReceivedMessageSize="2147483647") by googling but there…

NDestiny
- 1,133
- 1
- 12
- 28
1
vote
2 answers
How to figure out (on server side) which contract a WCF Client has used to connect (multiple contracts)?
Consider the following:
I have one master server and several servers on different locations which can communicate with the master server. Additionally (GUI) clients can connect to each server.
So I have a public interface which is known by…

toATwork
- 1,335
- 16
- 34
1
vote
0 answers
Can I change a WCF method parameter from int data type to long?
Let's say I have an existing method in a WCF service:
[OperationContract]
CustomerInfo GetCustomerInfo(int customerId);
It turns out I need to change this to take a long as its parameter instead of an int. Would that break existing clients? Or is…

Mike G
- 133
- 1
- 7
1
vote
1 answer
Designing WCF Contracts (Operation / Data)
I am currently looking to design some WCF services and wanted to get the community's opinion on the best way to handle operation / data contracts.
I have 2 basic operation contracts, the first creates a quote and the second adds an item to a quote…

Ken Burkhardt
- 3,528
- 6
- 33
- 45
1
vote
1 answer
What is the use of "AsyncPattern" property of "OperationContractAttribute" + wcf?
Thus for used ajax enabled wcf services to get records from DB and display it in client without using AsyncPattern property of OperationContractAttribute....
When should i consider AsyncPattern property?
Sample of my operationcontract…

ACP
- 34,682
- 100
- 231
- 371
1
vote
1 answer
WCF cannot implement interface - no matching return type
Why do I get this error:
Error 1 'JoomlaWebservice.KundeService' does not implement interface
member 'JoomlaWebservice.ServiceInterface.HentOpgave(int)'.
'JoomlaWebservice.KundeService.HentOpgave(int)' cannot implement
…

Veshkuul
- 13
- 2
1
vote
1 answer
Can WCF Authentication be disabled for a single Operation
I have recently read the WCF Security Guide and am using it to create an application where users need to create their own account, and then access the application with message security. Below is the web.config file I have come up with so far from…

Mike Beck
- 35
- 4
1
vote
1 answer
Locating the parameter of an Operation in System.ServiceModel.Channels.Message in WCF
Suppose we have the following Service contract:
[ServiceContract]
public interface IPing
{
[OperationContract]
string Ping(string parameter1, string parameter2);
}
I'm wondering, how it would be possible to find a particular parameter…

charfeddine.ahmed
- 526
- 2
- 8
- 16
1
vote
0 answers
What is best practices for such scenario in Workflow?
I have one workflow which is calling a WCF service for some operations in my Library management application.
Now one of the operation is to - to add a new book in the library. But if there does not exist an author in the database then it will first…

Nirman
- 6,715
- 19
- 72
- 139
0
votes
1 answer
WCF XmlSerializerFormat and OperationContract: nested soap parameters serialization
After reading the post XmlSerializer with specified pattern not working I try to implement such a service : OperationContract with the XmlSerializerFormat. But my Soap message contains an additional tag that is the operation parameter. How can I…

FXB
- 1
- 1
- 2
0
votes
0 answers
C# SOAP OperationContract with Parameter does not apear in WSDL
I´ve written an SOAP Server using .netCore 5 WebApi. In this I´ve implemented a TestMethod called TestMethodAsync(TestRequest request) but in my WSDL file the parameters aren´t named for this method
My code:
[ServiceContract]
public interface…

Felix Arnold
- 839
- 7
- 35