WCF and CORS: “No ‘Access-Control-Allow-Origin’ header is present on the requested resource”

Service-oriented ArchitectureIf you are building an Angular app (or other form of HTML5 web application) you are probably running controllers on JSON data to bind to repeaters and present to your users. In many examples, this is usually set up with static data, or a local file, but inevitably you will want to architect something a bit more scalable. One way is to introduce a WCF service to act as your gateway to a data store, but if you are running this service outside of the domain of your web application, you will see the following error in your Javascript console:

No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.yourdomain.com’ is therefore not allowed access.

Continue reading “WCF and CORS: “No ‘Access-Control-Allow-Origin’ header is present on the requested resource””

Baby Steps to SOA: A retrospective on the blog series

Service-oriented ArchitectureOne of the key needs in lean, scrum, and other agile processes is for continuous improvement.  We constantly review how we do things to do them better.  The most common method of doing this is the retrospective.  After 5 months of writing the Baby Steps to SOA series, I decided that I wanted to review what I had done and figure out how to do it better.  Of course, since this is an agile-related blog, I wanted to share this experience with those of you out there so you can learn about how a retrospective works, and how you can apply it to any work you are doing.

Continue reading “Baby Steps to SOA: A retrospective on the blog series”

Baby Steps to SOA – Step Ten: Riding the ESB

Service-oriented ArchitectureIn the continuing Baby Steps to SOA series, we follow Doug and the IT team behind BuyMyWidget.com as they take steps to renovate their digital asset architecture. In this final stage, the team moves to using an Enterprise Service Bus (ESB) to handle the inter-application communication. This step allows for an increased ability to manage the disparate systems and scale to an enterprise level while also removing tight coupling between the applications.

Continue reading “Baby Steps to SOA – Step Ten: Riding the ESB”

Baby Steps to SOA – Step Nine: Moving beyond the website

Service-oriented ArchitectureIn the continuing Baby Steps to SOA series, we follow Doug and the IT team behind BuyMyWidget.com as they take steps to renovate their digital asset architecture. Up next is expanding the use of the new services layers to their other applications within the business.   While focus is usually given to revenue-generating applications, the inclusion of other applications into this architecture permits all of the applications to interoperate, sharing data and functionality.  This step allows for full leveraging of all business capabilities within the organization.

Continue reading “Baby Steps to SOA – Step Nine: Moving beyond the website”

Baby Steps to SOA – Step Eight: Sharing the Business Tier

Service-oriented ArchitectureIn the continuing Baby Steps to SOA series, we follow Doug and the IT team behind BuyMyWidget.com as they take steps to renovate their digital asset architecture. Up next is the centralization and sharing of the business layer to allow all applications to use a single source for business logic.   Along with the previous steps, this iterative step finally brings the team to a Service-Oriented Architecture for their primary website application.

Continue reading “Baby Steps to SOA – Step Eight: Sharing the Business Tier”

Baby Steps to SOA – Step Seven: Centralizing eCommerce

Service-oriented ArchitectureIn the continuing Baby Steps to SOA series, we follow Doug and the IT team behind BuyMyWidget.com as they take steps to renovate their digital asset architecture. Previously, we introduced the problem and the team, started planning and analysis, decided on some metrics, and refactored the website applications. Most recently, the team has tackled identity management, introducing a CMS, building data services, and now continues by centralizing their eCommerce functionality.

Continue reading “Baby Steps to SOA – Step Seven: Centralizing eCommerce”

Baby Steps to SOA – Step Six: Data Services

Service-oriented ArchitectureIn the continuing Baby Steps to SOA series, we follow Doug and the IT team behind BuyMyWidget.com as they take steps to renovate their digital asset architecture. Previously, we introduced the problem and the team, started planning and analysis, decided on some metrics, and refactored the website applications. Most recently, the team has tackled identity management, introducing a CMS, and now continues with the migration of the data layer into web services.

Continue reading “Baby Steps to SOA – Step Six: Data Services”