Cloud functions are a great way to run small programmatic services in the
cloud. They are easy to create and use, are very secure, and need little
maintenance. They even scale on-demand in a way that is very difficult to
achieve using regular servers.
Nancy is a lightweight framework for building
HTTP-based services on .NET and Mono. The goal of the framework is to
stay out of the way as much as possible and provide a
to all interactions. This approach to sensible defaults and
conventions means that it is very easy to write a stand-alone
self-hosted web site or API that runs as a desktop application. In
this post, I'm going to discuss the equivalent happy-path for
deploying such an application as a Windows Service.
I demonstrated how to consume a stock web service using WSDL2JAVA.
Although WSDL2JAVA is a great tool, it can generate some long and
difficult-to-read code. In this post, I'm going to demonstrate an
easier, more concise way of calling the same web service using Groovy.
If you've come across the task of consuming a web service via a WSDL
you were given, there's a chance you may have cringed a bit. All that
XML involved and then determining your approach is a challenge as
well! Do you want to use a SOAPConnectionFactory or create an XML
message by hand and parse the response? These approaches will work but
it will likely take time away from what you really want to do and that
is develop the application you're working on. Along comes WSDL2JAVA, a
tool which will build Java proxies and skeletons for services with
WSDL descriptions. In this article I'll highlight the steps needed to
consume a web service with WSDL2JAVA.