Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've done some research on this but I can't find more specific examples to help me with this. I'm new to SOA/Patterns in general please take it easy... :)

Can you display an example of using the fileupload control in .net implementing SOA Messaging Patterns?

share|improve this question

closed as unclear what you're asking by Robert Harvey, Jalayn, MichaelT, GlenH7, Kilian Foth Sep 18 '13 at 6:46

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
It's a valiant try at a question, but I'm not sure what you are asking here. Is your question really answerable with a simple "yes" or "no?" –  Robert Harvey Sep 16 '13 at 20:35
    
I edited my post slightly... –  ENC0D3D Sep 16 '13 at 23:48
    
You have a number of possible options: 1. Try it, 2. Read up a little more on SOA and see if the class is a good fit, 3. ?, 4. Profit. –  Robert Harvey Sep 16 '13 at 23:50
add comment

1 Answer

Pretty much any message could be a valid message in an SOA. It's all a question of where your service boundaries are.

Uploading a file is such a generic function that it's almost impossible to say. SOA is about defining proper service boundaries and contracts so that each service gets to be the unambiguous owner of all data associated with a particular business unit or business function. You don't specify whether there is supposed to be just one "file request", or many similar such types of requests belonging to different services, nor do you specify if uploading a file is a well-defined business capability or just something incidental to how a particular service might work. It's the answers to these last two questions that would tell you whether it fits the SOA model or not.

Be careful what you assume and/or read about SOA, there's a lot of steaming piles written on it by self-proclaimed gurus looking to make a quick buck off non-technical managers and enterprise architects by talking about Message Exchange Patterns that have been around since the original SOAP spec (or possibly since CORBA or even earlier). In practice, "good" SOA is largely about understanding how the business operates and specifically who owns what and how they're supposed to interact. Which MEPs you go with is hugely tied to what tools you use.

For example, in a strictly WCF architecture, "chunky messages" and callbacks are a normal everyday practice; on the other hand, in an ESB-based, pub/sub environment, request-reply messages (callbacks) are deeply disdained in favour of fire-and-forget, and bulky messages are something you want to avoid like the plague (especially in cloud computing environments where the message size limit is ridiculously small - you'd never get away with shoving an entire binary file in a single message!).

You have to tailor your MEPs to your tools. It's unproductive to ask about what messages are appropriate for an SOA. Ask about what service boundaries are appropriate for an SOA, and ask about what messages are appropriate for your specific tool set.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.