wcf

RESTful Workflow Service Endpoints in WF4 / WCF

Folks, I'm building a pretty standard workflow that I want exposed via a WCF endpoint - I'm using the "WCF Service Application" project template and I've got a .xamlx service. This is a very simple document interchange workflow service - I want consumers to POST me a blob of XML as the body of an HTTP post (with HTTP headers containing...

Media Link Entry in WCF Data Services

For reading BLOBS in a OData Service, I am using the DataServiceContext.GetReadStream() The GetReadStream method synchronously requests a data stream that contains the binary property of the requested entity. In the AtomPub protocol, the entity is a Media Link Entry and the binary property is the associated Media Resource. In the code ...

WS-Policy Specification in WSDL document - .NET

I have authored a simple calculator Web service using visual studio 2010. I need to specify policy using WS-Policy language (which I need to append with the WSDL document generated for the service). How can I do that? Should I need WSE 3.0 Settings tool installed for that in VS 2010? Does VS 2010 support it? I have tried using XMLSeri...

Logging and WCF

I have seen many other questions on logging. Best practices. What logging platform is best. Etc. Here are some links from here on SO with very good discussions on the topic: logging best practices log4net vs TraceSource best logging solution for .NET 3.5 project .NET 3.5 logging BEGIN EDIT: Having typed this long post, I guess t...

Problem with MS WCF Message Inspector sample

I am trying to use the MS Message Inspector sample from WCF Message Inspector I converted the project to VS2010 and added a WCF application with a svc class. However, when I try to add a service reference, I am getting the following error: Could not find a base address that matches cheme http for the endpoint with binding WSHttpBind...

How to put WS-Policy in WSDL document

I have an external xml file which declare WS-policy as shown below: <?xml version="1.0" encoding="utf-8"?> <wsp:Policy xmlns:wsp="http://www.w3.org/2006/07/ws-policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" ...

How to consume an existing WCF service from my Silverlight app?

Hi, Im porting an "old" silverlight 3 app that used WS* webservices to connect. These services have been changed and are now replaced by an WCF "equivalent". I cant seem to get my silverlight app to work with the WCF service, I add a reference to the: http.....svc and create my client, but the clientConfiguration is empty. The silverligh...

Is it possible to upload a file from silverlight client to server using WCF streaming?

Hi, I have a WCF file upload service, which is using streamed mode. Is it possible to consume this in a silverlight application? Cheers ...

AppFabric monitoring issue, events won't travel from ASStagingTable to ASWcfEventsTable

I'm trying to get AppFabric monitoring to work but I'm stuck here. Events are being inserted into the ASStagingTable but they don't propagate to the ASWcfEventsTable. They do if I manually run the ASImportEvents sp. I use SQL server 2008 worksation edition on Windows Server 2008R2. I've verified that the AppFabric Event Collection Servi...

Documenting WCF RESTful service through the Service help page

I'm using the RESTful service starter kit and was having trouble adding documentation to the built in Service help page. I'm able to add documentation to each method in the Description using the WebHelp attribute. What I need and want to add documentation to the Request Schema that is generated for each method through the Request Schema...

Sharing Entity framework objects across projects?

I am having some refactor troubles, maybe someone knows why... In one solution I have a WCF service. In another solution I have a RIA application. Since the SQL database between these two is identical, I wanted to create a separate project, in which to host the edmx file as well as a domain service. If I create the edmx file in the W...

How to Catch Bad JSON Request Payload in REST using WCF3.5

Hi, Since no one replied to my thread in microsoft forum, I'm posting this question here. I'm using WCF 3.5 REST with JSON output. If I send the below request body {"persons": [{"fname":"John"}, {"fname":"sheena"}} to my web API, my REST service throws "500 - Internal Server Error". If you look at carefully, request is missing the ...

WCF Https Bindings, Require SSL

My seenario, I want to wcf httpsbinding configuration setting [client and server], Require SSL ...

web service that can withstand with 1000 concurrent users with response in 25 millisecond

Hello Team, Our client requirement is to develop a WCF which can withstand with 1-2k concurrent website users and response should be around 25 milliseconds. This service reads couple of columns from database and will be consumed by different vendors. Can you suggest any architecture or any extra efforts that I need to take while devel...

WCF client does not include XML declaration in HTTP POST message

Hi This post regards the last hurdle in completing my task of communicating with a Cisco router via the Web Services Management Agent (WSMA), as described here and here. You will not have to read those posts to understand my current question, though. The problem is this: I have build service and message contracts to match the router's ...

What is WCF RIA services?

I hate MSDN's site for WCF RIA services. I does not say what it is, it only says what it does. It says what it can achieve but does not say why I need it. For example: "A common problem when developing an n-tier RIA solution is coordinating application logic between the middle tier and the presentation tier". Well, it does ...

Building a single entry point to a WCF service: need unified approach to return objects and collections

Subject says it all: I'm creating a secure and generic wrapper to access a WCF service transparently. A little background: what I have done is that I've created similar business classes definition both on server and client. The server-side contains the actual logic while the client side contains only method definitions. Additionally, t...

How do I force a relative URI to use https?

I have a relative URI: Uri U = new Uri("../Services/Authenticated/VariationsService.svc", UriKind.Relative); The problem is that depending on whether the user has typed https:// or http:// into their web browser to get to the silverlight application, it may use either http or https when trying to contac...

WCF could not find default endpoint

Hi all, I am using a service reference to a webservice and created a new instance of it. I created a message and tried to send this to the webservice but I get this error: Could not find default endpoint element that references contract 'receivePortService.ITwoWayAsyncVoid' in the ServiceModel client configuration section. ...

wcf self hosting jquery

I'm trying to call an wcf self hosted method from jquery but, i'm aways getting the message: "method not allowed". I found some answers to this issue on this forum but nothing worked to me.... ps. It works fine when I add the reference on a console app and consume it. it's an windows forms self-hosted app form load: ServiceHost host =...