21
NASHVILL E JUNE 1-4 2009 Creating Your Own Teamcenter SOA Services

Creating Your Own Team Center SOA Services

Embed Size (px)

Citation preview

Page 1: Creating Your Own Team Center SOA Services

NASHVILLE

JUNE 1-4

2009

Creating Your Own Teamcenter SOA

Services

Page 2: Creating Your Own Team Center SOA Services

Page 2 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Platform Extensibility Services

Page 3: Creating Your Own Team Center SOA Services

Page 3 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Platform Extensibility ServicesCreating Teamcenter Services (SOA)

Overview Demo – Creating a Teamcenter

Service Operation Summary

Page 4: Creating Your Own Team Center SOA Services

Page 4 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Platform Extensibility Services

Services that enable you to realize value from your Teamcenter investment quickly and cost effectively

Teamcenter’s Solution

Teamcenter SOA

Services

Teamcenter BMIDE

Teamcenter Global

Services

Teamcenter Gateway

Eclipse

Business Modeler

Integrated DevelopmentEnvironment

ConfigureConfigure Teamcenter To Fit Your Business

ConnectConnect Teamcenter & Other Enterprise Applications

CustomizeCustomize Teamcenter With Specialized Applications

Page 5: Creating Your Own Team Center SOA Services

Page 5 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Use Cases for Creating a Teamcenter Service

There are a number of Use Case for defining and implementing a new Teamcenter Service operation:

Internal Teamcenter Development Developers in the Teamcenter organization are using the BMIDE to

define and implement services that extend the core product Add-On Extensions

Developers creating an Add-On Extension to Teamcenter and need to provide a client/server interaction that does not exist in the core product

Site Customization Developers creating a Site Customization and need to provide a

client/server interaction that is unique to a use case at that particular site

Page 6: Creating Your Own Team Center SOA Services

Page 6 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

User Scenario

Create a Template Project Define a Service

Create a Service Library Create a Service Interface Create Data Types Create a Service Operation

Generate Source & Build Auto-generate Source Files Implement Service Operation Compile Source

Deploy the Service Libraries Use the New Service

Add Libraries to Client Development Environment

Write Code to use Service Operation

Page 7: Creating Your Own Team Center SOA Services

Page 7 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Create a Template Project

Services are created in a Business Modeler Template Project From the ‘New Project’ dialog,

select the ‘New Business Modeler IDE Template Project’

This will step you through the input needed to create the project Required Compilers Source location Desired Client bindings

(AVI)

Page 8: Creating Your Own Team Center SOA Services

Page 8 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Define a ServiceCreate a Service Library

Create the Service Library in the Extensions View Select the ‘Services’ Context Menu ‘New Service Library’ Fill in the dialog fields for your library

Page 9: Creating Your Own Team Center SOA Services

Page 9 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Define a ServiceCreate a Service Interface

Create the Service Interface in the Extensions View Each Service Library may contain one or more Service Interfaces. Each

Service Interface will contain one or more Service Operations, and Data Types used by those operations

Select the ‘AcmeSoaCore’ Context Menu ‘New Service’ Fill in the dialog fields for your service

Page 10: Creating Your Own Team Center SOA Services

Page 10 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Define a ServiceCreate Data Types

Create the Data Types in the Data Types tab of the DataManagement Service Editor. All custom data structures used in a service operation must be defined first Select the ‘Add...’ button Fill in the dialog fields for your data type (AVI)

Page 11: Creating Your Own Team Center SOA Services

Page 11 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Define a ServiceCreate a Service Operation

Create the Service Operation in the Operations tab of the DataManagement Service Editor Select the ‘Add...’ button Fill in the dialog fields for your service

operation(AVI)

Page 12: Creating Your Own Team Center SOA Services

Page 12 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Generate Source & Build Auto-generate Source Files

Auto-generate source code from the Extensions View Select the ‘AcmeSoaCore’ Context Menu ‘Generate Code Service

Artifacts’.

Page 13: Creating Your Own Team Center SOA Services

Page 13 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Generate Source & BuildImplement Service Operation

Implement the service operation from the Project Explorer View in the C/C++ Perspective Double click on the datamanagement0906impl.cxx file in the Project

Explorer View to load the source file into the editor The previous auto-generation step created an outline for the service, you

will need to add the actual business logic for the operation

Page 14: Creating Your Own Team Center SOA Services

Page 14 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Generate Source & BuildCompile Source

Compile your service implementation and generated source code Save the datamanagement0906impl.cxx file Select the Project Build All menu items This will produce server side libraries under the

output/server/lib folder Client libraries under out/client XSD bindings used on both client and server under

output/types

Page 15: Creating Your Own Team Center SOA Services

Page 15 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Deploy the Service Libraries

Deploy the Service Library to the Teamcenter Server Select the ‘AcmeSoaCore’ Context Menu ‘Deploy Template...’ Select the ‘Server connection Profile’, other fields will be filled in

automatically Fill in the ‘User ID’ and ‘Password’, and press the ‘Finish’ button

Page 16: Creating Your Own Team Center SOA Services

Page 16 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Use the New Service Add Service Client Libraries to Application Build Env.

Add the generated client libraries to your client application’s development environment. This process is unique to each client application’s development environment Copy the client Jars from the Acme Template project output folder. Add those Jars to the client application’s classpath

Page 17: Creating Your Own Team Center SOA Services

Page 17 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Use the New ServiceWrite Code to Use Service Operation.

Write the client application code to call the new service operation Add the needed import statements Instantiate the service stub. Fill in the input arguments Call the service operation

Page 18: Creating Your Own Team Center SOA Services

Page 18 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Summary.

Teamcenter Services are defined in the BMIDE A hybrid code-less and code-full extension point Only a small piece (the implementation of the service operation

business logic) done with hand coding The busywork (the communications and marshalling/demarshalling)

are generated for you

On site customization is done with the same tool used internally by the Teamcenter development team.

Page 19: Creating Your Own Team Center SOA Services

Page 19 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Related Sessions

Benefits of SOA Tuesday / 4:50 – 5:30

Platform Extensibility Services Overview Wednesday / 9:40 – 10:10

Metamodel: Codeless and Codeful Customization of Teamcenter Wednesday / 3:25 – 4:50

Customization Guidelines Tuesday / 4:10 – 4:50

Teamcenter Architecture Update Thursday / 11:00 – 11:45

Page 20: Creating Your Own Team Center SOA Services

Page 20 May-09Copyright © Siemens PLM Software Inc. 2009. All rights reserved.

Siemens PLM Software

Related Material

Business Modeler IDE Guide Teamcenter Services Guide Teamcenter Services Reference

Contact for obtaining additional material Michael Zawacki [email protected] Office – (425) 468-5346 Mobile – (425) 830-6181

Page 21: Creating Your Own Team Center SOA Services

NASHVILLE

JUNE 1-4

2009

Ron MarchiTeamcenter [email protected]

Steve ChesneyTeamcenter [email protected]