Tag: web-services
All blog posts with the tag "web-services".
Using Autofac with Self Hosted WCF Services in a Windows Service
Published:5 min readThis article offers an approach to wiring up Autofac with WCF Self Hosting in a Windows Service. It describes creating an Autofac module, an IServiceHostInitializer interface and base implementation, and a ServiceBootstrapper to register and open the service hosts.
Worst validation message ever
Published:1 min readA web service validation message was found to be difficult to understand due to its extremely technical and legal-like wording.
WSCF.blue V1.0.13 Update
Published:1 min readI have released an update for WSCF.blue, version 1.0.13, to fix a bug with the WSDL round-tripping feature that caused message headers not to be round-tripped when fault messages existed for the same operation.
WSCF.blue V1.0.12 Update
Published:1 min readWSCF.blue V1.0.12 Update is now available for download and contains one new feature, AutoSetSpecifiedPropertiesDecorator, as well as several bug fixes. The update is courtesy of user contributions from BartKoelman, cjberg, jamaica and MrGlover.
WSCF.blue V1.0.11 Update
Published:1 min readWSCF.blue V1.0.11 is now available for download, with a new feature and several bug fixes. It supports both Visual Studio 2008 and Visual Studio 2010, and has passed the 10,000 downloads mark.
WSCF.blue on endpoint.tv
Published:1 min readOn November 10, 2010, Ron Jacobs and Santosh Benjamin recorded a webcast on endpoint.tv discussing WCF contract first and WSCF.blue.
Fault Contract support in WSCF.blue
Published:4 min readWSCF.blue has implemented support for fault contracts, allowing users to define fault messages in their WSDL using the WSDL Wizard. This feature was introduced with a new V1.0.9 update release on CodePlex.
Making Self-Hosting with Autofac WCF Integration easier
Published:2 min readThis article explains how to use the Autofac WCF integration to make self-hosting WCF services easier. It provides code to extend ServiceHost with a new method called AddDependencyInjectionBehavior which takes an IContainer instance as an argument. This makes the code more concise and eliminates the need to write a separate helper method.
Self-Hosting WCF Services with the Autofac WCF Integration
Published:2 min readThis post provides a demonstration of how to use Autofac's WCF Integration to self-host a web service with a dependency that is injected through the WCF extensibility points. An example and instructions on how to create a client proxy are provided.
WSCF.blue Roadmap
Published:3 min readThe WSCF.blue team has been discussing the features to include in the next release and a roadmap has been summarized on Santosh Benjamin's blog. Some of the key features discussed include the ability to persist settings, support for WS-Addressing, Fault Contracts and T4 templates. Microsoft's Feature Builder is being considered as the primary user experience. Feedback is welcome.
MockingBird v2.0 Release Candidate Available
Published:1 min readSantosh Benjamin announced the Release Candidate of MockBird v2.0, a tool that allows you to mock web services through configurable message interception, is now available for download on CodePlex.
WSCF.blue now supports Visual Studio 2010 RC
Published:1 min readWSCF.blue version 1.0.7 is now available for download, adding support for Visual Studio 2010 RC in addition to Visual Studio 2008. There is an Issue Tracker and Discussions forum available for any problems or feedback.
WSCF.blue V1.0.6 Update
Published:2 min readWSCF.blue has released a V1.0.6 update with fixes for various reported bugs, including the data contract type filter not including all the required types in some complex contracts, adjusting the casing of enumeration members references, and an issue related to XmlChoiceIdentifier attributes. If there are any problems with the update, users should report them through the Issue Tracker.
Contract-First article on MSDN
Published:1 min readChristian and Buddhike wrote an excellent MSDN article on Schema-based Development with Windows Communication Foundation (WCF). It is focused on contract-first web service development and how it can be achieved with WCF. A diagram was created to illustrate the steps of the process and it highlights the iterative nature of the approach.
WSCF.blue V1 Final Released
Published:2 min readWSCF.blue V1 Final has been released and includes features such as a WSDL Wizard, Data Contract Generator, Service/Endpoint Stub Generator, Client Proxy Generator, Generate Data Contract Code feature, Paste XML as Schema option, support for C# and VB.NET code generation, and improved WSDL error handling. It provides an invaluable resource to the .NET open source community.
Improved WSDL error handling in WSCF.blue
Published:1 min readThis improvement to WSCF.blue allows for better error handling when a WSDL is selected for Client-side proxy or Service-side stub code generation, displaying the errors in a message box and directing users to the WSCF.blue pane in the Output window where they can view all the details.
Paste XML as Schema in WSCF.blue
Published:3 min readWSCF.blue's Paste XML as Schema feature allows users to paste XML from the clipboard and have it automatically converted into an XSD file for use in web services contracts. The menu item appears on the Edit menu in Visual Studio and is only enabled when a project is open.
Data contract generation is now available in WSCF.blue
Published:2 min readData contract generation is now available in the WSCF.blue V1 Beta 2 release, and as always user feedback and bug reports are welcome. The feature allows users to select one or more source XSD or WSDL files and generate data contracts using the XmlSerializer. Data Contract Code Generation Options are also available.
Controlling your Service method implementation in WSCF.blue
Published:4 min readWSCF.blue has added new options that control how the methods in your service class are code generated. This will allow you to separate your service implementation into another file that remains untouched when you regenerate your service code.
WSCF.blue Beta Released: Are you doing contract-first?
Published:3 min readWSCF.blue is a Visual Studio Add-in designed to bring the benefits of contract-first web service development to those working with WCF (Windows Communication Foundation). It is the latest version of an earlier tool called WSCF and was created by a team of talented developers. The contract-first approach makes web services more interoperable, and the Beta version of WSCF.blue can be downloaded and tested.
Using REST in NAnt with a custom HTTP Task
Published:3 min readThis article describes how to make HTTP requests to a REST web service from a NAnt script using a custom task. The HttpClient class from the WCF REST Starter Kit is used, and the source code is available on GitHub. The assembly has been merged with the Microsoft.Http.dll dependency making deployment easier.
Bugs in the bit.ly REST API
Published:3 min readThis article discusses bugs found in bit.ly's REST API which prevent users from expanding URLs from its shortened representation by returning XML that includes the hash for the URL as one of the elements, which cannot start with a numeric or punctuation character. It also covers issues with serialization for .NET consumers and how other services in the bit.ly REST API do not suffer the same problem.
Introduction to the HttpClient
Published:7 min readThe HttpClient class simplifies interaction with REST web services by providing constructors, a Send method, extension methods, and methods to receive content, use headers, and send requests asynchronously.