do { Engine.BlogAbout(".NET","Silverlight"); } while ( alive );  

Mark Monster

Mark Monster  

Posts Tagged ‘SOA’

Beware of reusing Class Library between Web Service and consumer

About a month ago I wrote about the ability to reuse a class library of data structures between Web Service and consumer. I’ve been thinking about this, and discussed this with colleges and my current customer’s software architect.

The main reason is because we have to be careful when to reuse a Class Library. First of all, don’t just share the data-structures between services belonging to different business processes. Why? Because this could help you forget about who’s the owner of the data, and responsible for the data structure. And second, why should we reuse? Because we would help ourselves, by using Generic Lists vs standard Arrays. Or because we could use some local methods on a data structure?

We will have to deal with those very small problems, why take risks about bringing ourselves into big trouble for this. Web Services can be used with proxies, although some people advocate you should actually use xml-documents instead of serialized classes with Web Services. I think a book like "SOA Patterns" could help us in the future so we won’t have to make almost mistakes.

Small note: There is a bug in the SchemaImporterExtension, which causes the extension not to be called for base classes. More about this here.

Reusing Class Library between Web Service and consumer

.NET and Visual Studio make it Web Service consumers very easy to generate a proxy for accessing the Web Service. It uses the WSDL to generate all the methods, even the asynchronous access methods. Also all data-structures are generated. Sadly all lists are generated like simple array’s.

Wouldn’t it be nice to use the same data-structures on the consumer as we can on the Web Service? I’ve been thinking about this for a long time, but as far as I knew it wasn’t possible. Also a lot of people told me it just wasn’t possible.

Read the rest of this entry »

Documenting your SOA

I’m not sure if any reader has an idea about documenting your Service Oriented Architecture. But I thought about it, I can just ask.

What are your ways to document a SOA?  I know the very useful tool called Word, but are there any industry standard tools to document your Services, their relations, versionin, functional and technical descriptions. I think it’s also interesting to know what kind of things you are documenting about the SOA in general and the Services specifically.

I’m waiting for your reply’s.