wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Part 2 - Calling a Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Part 2 - Calling a Web Service" Watch "Part 2 - Calling a Web Service" New topic
Author

Part 2 - Calling a Web Service

Nilo Rosa
Greenhorn

Joined: Mar 04, 2010
Posts: 3
OK, so I'm in the assignement stage of the SCEA.

I have to call an inventory system through a Web Service. The web service itself is already provided, so I should not have to worry about it. The question is how deep should I go in the modeling?

Here is what i'm thinking. I call an interface InventorySystem. My system would have an implementation of this interface which in turn is responsible for calling the web service. This specific call depends on the way the web service is implemented, so it's out of scope.
That way I would only model my system to the point where I call the methods on the interface. The concrete implementation of this interface doesn't matter.

Now, is that right, or is it better to assume the web service is implemented in EJBs? That way I could easily access them using JAX_WS...
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Nilo

I think that is an excellent question - one that you should probably ask the architect for guidance on.

Please take a look at IMPORTANT - Position on real assignment (Part 2) questions to see why this type of question is not allowed here.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Nilo Rosa
Greenhorn

Joined: Mar 04, 2010
Posts: 3
Well, I don't believe I'm getting into much detail about the project.

I'm sorry if I didn't make myself clear, but my question is not about implementation/architecture. I'm just asking how deep I should go in my sequence diagrams, class diagrams etc.

You see, in my assignement it's said the company already has an inventory system which is accessed through web services. The assignement just doesn't say how the system can be accessed.

Just rephrasing myself: In the cases where the assignement doesn't specify things, what should we do?
1 - Should I assume the web service is implemented in some specific way and model that into my diagrams?
2 - Should I ignore how the web service is implemented and just put an interface in my diagrams. The concrete implementation wouldn't matter to the assignement.

Do we assume something or do we ignore? I'm asking because this happens a lot in these assignements...
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Ahhh - I understand the intent of your question now. Sorry for butting in.
Dmitri Ericsson
Ranch Hand

Joined: Feb 16, 2010
Posts: 109
Your diagrams should have an interface which has methods you assume the Inventory System interface has. E.g. you have a InventorySystemManager with a method getComponentById(ID). You assume that imlementation connects to the systems webservice interface and runs some other method.


SCEA 5, SCJP 6 My SCEA Experience
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Part 2 - Calling a Web Service
 
Similar Threads
Socket Server calling web service
Misc URLyBird questions not covered in the assignment instructions
Newbie - web service design assistance needed
Release It!: How much Design and Deploy
exposing an interface