Questions tagged [operationcontract]

70 questions
0
votes
1 answer

Wcf method interface as parameter seen as object on clientside

I am using an interface as input parameter in OperationContract. But when I generate the proxy class at client side, the client method is seen as: GetDat(object value) instead of GetData(IMyObj value) Service…
1408786user
  • 1,868
  • 1
  • 21
  • 39
0
votes
1 answer

Operation Contract with Different Source or Action Url

Our third party API provides two different web services but have identical methods, models. Nevertheless they only differ on URIs (Web Service Path, Action Path [Operation Contract]. So I have decided to: Generate the code from their wsdl using…
Peyton Crow
  • 872
  • 4
  • 9
0
votes
1 answer

Change Prefix To DataContract Inherited From OperationContract Namespaces

Please I need change the FORMULARIO'S Prefix (Tem: TO Men1:) from this XML:
0
votes
2 answers

IIS seems to think an Android HttpPost is a GET

UPDATE: These problems were caused by a reverse proxy performing a 301 redirect. Altering the url to the destination of the redirect fixed the issue. I am struggling to make a POST request from android to a web service. I have a web service running…
cutts
  • 574
  • 1
  • 5
  • 20
0
votes
1 answer

WCF - Calling WebGet Request From Another Service

There is a web service I am integrating into. Service asks for an url parameter for redirection after it does its' thing. I have created a WebGet request like: myserviceUrl/redirect/someVal/someOtherVal and gave the url to the request as…
0
votes
0 answers

universal contract WCF web service, OperationContract

I have defined OperationContract as such in Interface. [OperationContract(Action = "*")] Message ProcessMessage(Message message); On Program.cs, when I call ServiceReference1.Service1Client o = new…
Pax
  • 65
  • 1
  • 4
  • 19
0
votes
1 answer

Uploading image along with userid for wcf service using datacontract

I would like to upload image from javascript to wcf service using post , datacontract . I read in google , using datacontract it is not possible , it can be done with message contract , because when one parameter is stream , it should not have any…
0
votes
1 answer

Is there any way to add attributes to methods of inherit interface?

There is general service interface that been implemented by multi technologies. For example, I have 2 interfaces: IGenralService IWcfService that inherit from IGenralService. The base interface: public interface IGenralService { …
Moshe Levi
  • 21
  • 4
0
votes
3 answers

Getting Gibberish instead of Hello World from a service with webHttpBinding

Here is a trivial example that is supposed to return "Hello World" string. However, a browser displays something like SGVsbG8gV29ybGQ=. Which is the right way to return plain text from an oldskul-style service? please know that: I can't return a…
BreakPhreak
  • 10,940
  • 26
  • 72
  • 108
0
votes
2 answers

Cookies in wcf service OperationContract

Is it possible to read cookies in the OperationContract of a wcf service? I am trying to read a cookie value in the contract method, but its always empty. If I read the same cookie from a .aspx page, the value is present. Any ideas?
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

WCF operation contract with params array parameter

I think this guy has the same problem as me, but I need clarification: wcf service with params Anyway, I'm trying to write a WCF operation contract that takes in a string the same way as String.Format does using a params array of objects, and a…
user3685285
  • 6,066
  • 13
  • 54
  • 95
0
votes
1 answer

Is there any way to hide the operation contract tag in the wsdl for WCF soap web service?

For example, if I have a operation contract as GetData() I dont want it to be in wsdl but the method should be accessible by client using Action Attribute and would be able to be consumed.
suji8886
  • 3
  • 5
0
votes
1 answer

Upload file with messagecontract

I have been following the various tutorials that explain how to upload files via WCF and I am having some issues when I try to share the classes containing MessageContract between the client and the server. Basically my issue is as follows: I have…
Giardino
  • 1,367
  • 3
  • 10
  • 30
0
votes
1 answer

Collection return type of OperationContract and how to add to a list of DataContracts?

I have a Business Domain Object (BDO) class: public class BDO_LIST_DEPARTMENTS { public int DEPARTMENT_ID { get; set; } public string DEPARTMENT_NAME { get; set; } } And then I have a DataContract class: [DataContract] public class…
EliotE123
  • 47
  • 1
  • 12
0
votes
1 answer

OperationContract Name and UriTemplate

I create a service method. This have OperationName and UriTemplate. I am confusing this 2 names based on my scenario. [OperationContract(Name="MyMethod")] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "/MyMethod/{p1}")] …
Akhil
  • 1,918
  • 5
  • 30
  • 74