In WCF security, given the current OperationContext, what is the best way to determine whether the request is a SOAP request or a REST request?
WCF: Distinguish between REST and SOAP requests using the OperationContext
1.8k Views Asked by urig At
1
There are 1 best solutions below
Related Questions in WCF
- couldn't copy pdb file to another directory while consuming wcf web service
- Call wcf from android app
- WCF Service not accepting multiple body parameters
- Error in Calling some service in WCF Client
- WCF channel Factory caching
- How to convert a List<string> to an IEnumerable<ServiceReference.datatable> C# Silverlight WCF RIA Services LINQ to SQL
- WCF reusing types with inheritance - cannot generate client code
- System.ServiceModel.FaultException'1' Where might the error be?
- How to configure proxy address for multiple WCF-bindings at once?
- How pass XML from PHP to the Soap WCF service?
- Multiple service contract inter-commnication
- WCF Service not returning virtual property ServiceProvider
- How to get information about error from HttpContext in WCF services
- Using Service Bus to access On Premise WCF Service
- Test case for WCF REST Service
Related Questions in REST
- Spring RestTemplate passing the type of the response
- .net rest service with JSON string and consumed with java client
- SuiteCRM how to retrieve all account related contacts
- http status code for failed email send
- cloud foundry - 413 Request Entity Too Large
- Why does PHP add "\r\n" to an empty string?
- WCF Service not accepting multiple body parameters
- How to send Rest GET request that contains "#" value in url parameters?
- Phalcon PHP - RESTful API
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- purchase individual items and subscriptions in the same PayPal REST API transaction
- Empty Response Received on Android POST Request
- angular load more tweets onclick
- Async vs Horizontal scaling
- Responding to an Office 365 event invite via REST
Related Questions in SOAP
- Java - How to send byte array on Soap Request?
- SoapClient in PHP 5.6 when using HTTPS emits warning with "key values mismatch"
- zend soap server reading xml attributes
- Multiple HTTP post requests to a web service from XML files
- Header in SOAPclient PHP
- Namespace for array field in node-soap client (Node.js)
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- How pass XML from PHP to the Soap WCF service?
- Jira Soap Api Add Watchers
- java.lang.LinkageError: loader constraint violation when developing a SOAP plugin in JIRA
- Parsing XML with same parent and child node name
- WCF part of soap response body is signed instead of entire body
- Create signature with bouncycastle api. Key always null
- How to convert SOAP-based WCF service to RESTfull API
- Calling method from SOAP returns null
Related Questions in OPERATIONCONTEXT
- Can´t add header to MassTransit message from OperationContext?
- How to retrieve the client's machine name from within a WCF Operation Contract?
- How to use WCFMock w/ DI to mock OperationContext
- Propagate OperationContext into Async WCF Call
- WCF Operation Context - Contamination
- Does OperationContextScope dispose communication channel as well?
- WCF 4 REST service can't return a StatusDescription, only StatusCode
- WCF service with HttpContext
- How can I provide server-side administrative control of WCF clients?
- Read request content in JSON form from OperationContext in C#
- How can I get the exception object inside a IDispatchMessageInspector?
- How to log the raw request in WCF service
- Access to WCF endpoint service type in custom SecurityTokenAuthenticator implementation
- Storing OperationContext.Current in a instance variable of a WCF service instance
- current OperationContext is null in WCF Windows Service
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could look at the binding name on the ChannelDispatcher:
For REST, it would be
webHttpBinding- anything else would be SOAP.