Book a Demo

Author Topic: Mapping SOA service(WSDL)  fields to a class model  (Read 3487 times)

andykennelly

  • EA User
  • **
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Mapping SOA service(WSDL)  fields to a class model
« on: June 24, 2013, 07:25:24 pm »
In my organisation we’ve created component and interface elements to  model our SOA service estate. As part of that, we’ve even imported WSDL’s into the relevant part of the model.

Now that’s done, we are modelling a system that will be technically implemented over a MVC pattern on a .net platform. We’ve created class diagrams to represent the application model onto which we now want to map to the various SOA services required to populate that model (i.e. Customer class will be linked to SOA service getParty, getPartyAddress etc.).

So far, so good …… but we’re now wondering if it’s possible to go one step further and map the fields within the SOA services to the relevant attributes of the class, i.e. CustomerPrimaryName attribute of Customer class is populated from getParty.primaryName. We’ve haven't been able to work out if this is possible using Sparx, but since the tool enables us to import the WSDL and since it seems such a useful/obvious thing to want to do, we can’t help but feel somebody must have been down this road before??!!! Maybe using a plug-in?  Maybe it’s possible for Sparx to generate some .net code for the transformation?

(My example here is simple, of course …. things might be trickier where we have to combine several service fields to populate a single class attribute).

Has anbybody been here before?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Mapping SOA service(WSDL)  fields to a class m
« Reply #1 on: June 25, 2013, 08:51:03 pm »
Too long ago to remember details. But it was a couple of very complicated scripts which were able to im-/export WSDL/XSD according to some self-defined constraints to enable this. The build-in EA im-/export was pretty much useless.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Mapping SOA service(WSDL)  fields to a class m
« Reply #2 on: June 25, 2013, 10:37:55 pm »
In EA you can link relations with element features. This allows you to connect two attributes with each other, or an attribute with a class, or...

Geert