Sie sind auf Seite 1von 21

Creating Your Own Teamcenter SOA Services

Platform Extensibility Services

Page 2

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Platform Extensibility Services Creating Teamcenter Services (SOA)  Overview  Demo Creating a Teamcenter Service Operation  Summary

Page 3

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Teamcenters Solution Services that ena le you to realize value from your Teamcenter investment quickly and cost effectively

Platform

tensi ility Services

Teamcenter BMIDE Configure Configure Teamcenter To Fit Your Business Business Teamcenter Teamcenter Connect Modeler Global Gateway Connect Teamcenter & OtherServices Applications Enterprise Teamcenter SOA Services
Integrated Customize Development Eclipse Customize Environment With Specialized Applications Teamcenter

Page 4

May-09

Copyright 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
Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Page 5

May-09

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 Copyright Siemens PLM Software Inc. 2009. All rights reserved.
Page 6 May-09 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)
Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Page 7

May-09

Define a Service Create 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 8

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Define a Service Create 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 9

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Define a Service Create 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 10

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Define a Service Create 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 11

May-09

Copyright 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 Artifacts.

Service

Page 12

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Generate Source & Build Implement 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 13

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Generate Source & Build Compile 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 14

May-09

Copyright 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 15

May-09

Copyright 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 applications development environment. This process is unique to each client applications development environment  Copy the client Jars from the Acme Template project output folder.  Add those Jars to the client applications classpath

Page 16

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Use the New Service Write 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 17

May-09

Copyright 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 18

May-09

Copyright 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
Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Page 19

May-09

Related Material
 Business Modeler IDE Guide  Teamcenter Services Guide  Teamcenter Services Reference  Contact for obtaining additional material  Michael Zawacki  michael.zawacki@siemens.com  Office (425) 468-5346  Mobile (425) 830-6181

Page 20

May-09

Copyright Siemens PLM Software Inc. 2009. All rights reserved. Siemens PLM Software

Ron Marchi Teamcenter Development ron.marchi@siemens.com Steve Chesney Teamcenter Development steven.chesney@siemens.com

Das könnte Ihnen auch gefallen