+ All Categories
Home > Technology > Advanced Federation and Web Services in Aras for Enterprise PLM

Advanced Federation and Web Services in Aras for Enterprise PLM

Date post: 10-Jun-2015
Category:
Upload: aras
View: 1,065 times
Download: 43 times
Share this document with a friend
Description:
Understanding Federation and Web Services for Real-Time Enterprise Systems Connectivity using Aras
Popular Tags:
37
ACE 2011 International Understanding Federation Understanding Federation and Web Services www.aras.com aras.com Copyright © 2011 Aras All Rights Reserved.
Transcript
Page 1: Advanced Federation and Web Services in Aras for Enterprise PLM

ACE 2011 International

Understanding FederationUnderstanding Federation and Web Services

www.aras.com

aras.comCopyright © 2011 Aras All Rights Reserved.

Page 2: Advanced Federation and Web Services in Aras for Enterprise PLM

Welcome

Session Goals

Previous session covered overall Integration strategies and a focus on how to integrate desktop applications (authoring tools)applications (authoring tools)

This session:  PLM Server  other business servers

Creating server peer‐to‐peer configurations

d hData and Process status exchange

For the end‐users,  blurring the lines between systems and 

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 2

presenting all their relevant data in a single context

Page 3: Advanced Federation and Web Services in Aras for Enterprise PLM

Session Topic1. Pull data from external

apps into PLM to use in Client, Reports, workflowsClient, Reports, workflows

2. External apps using PLM as a data source

Homegrown ApplicationsHomegrown Applications

File VaultDatabase

ERPERP

Legacy PDMLegacy PDM

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 3

Page 4: Advanced Federation and Web Services in Aras for Enterprise PLM

Two Use Cases

1. Data in the ERP system or your legacy applications is relevant to the PLM users.   We want this data and PLM data together in the right context on the PLM user interface ‐‐ like a Mash‐Up

Corporate Document Management office filesERP for costing or inventory recordsCRM t i f tiCRM customer information

2. Other systems need access to data records or files ystored in the PLM system

Shop floor viewing of Drawings through MES

aras.comCopyright © 2011 Aras All Rights Reserved.

Quality system view of Part‐BOM structure

Slide 4

Page 5: Advanced Federation and Web Services in Aras for Enterprise PLM

Two Use Cases

•NOTE: for many commercial systems, such as SAP and  SharePoint,  you can find a commercial 3rd party , y p yconnector from an Aras partner.    

– For this discussion, it is more interesting to imagineFor this discussion,  it is more interesting to imagine that we are building an integration from scratch.

•NOTE:   it’s always possible to batch transfer data from one system to another.  We (IT folks) have been doing y ( ) gthat forever.  

– For this discussion it is more interesting to talk about 

aras.comCopyright © 2011 Aras All Rights Reserved.

ghow we build real‐time connectors

Slide 5

Page 6: Advanced Federation and Web Services in Aras for Enterprise PLM

Two Use Cases

1. Data in the ERP system or your legacy applications is relevant to the PLM users.   We want this data and PLM data mixed together in the right context on the PLM user interface ‐‐ like a Mash‐Up

Federation

2. Other systems need access to data records or files t d i th PLM tstored in the PLM system

Web Services

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 6

Page 7: Advanced Federation and Web Services in Aras for Enterprise PLM

Federation ‐ Definition

Core concept in Aras:   Federation creates a wrapper around data objects in remote systems, and thenaround data objects in remote systems,  and then extends their definition with PLM functionality

Th d fi th d t t f d t iThe wrapper defines  the data transfer, data mapping and the internal PLM representation

We can add security, web interface, workflow routing to data in the legacy system,  using it as a data source f di ffor a new audience of users   

We can federate an entire ItemType or just federate a 

aras.comCopyright © 2011 Aras All Rights Reserved.

yp jfew properties on a PLM internal Item in Aras

Slide 7

Page 8: Advanced Federation and Web Services in Aras for Enterprise PLM

Federation – Definition (continued)( )

We aggregate data from many sources in this way in order to:

o Present the aggregated data in a single window for the user,  e.g. a Mash‐Up

o Execute business rules, BI dashboards, or Reports against the lid d dconsolidated data set

o Add advanced PLM capabilities such as BPM workflow or a secure web interface to legacy systemsweb interface to legacy systems

Done well, the end‐user is not aware of the sources of data

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 8

Done well,  the end user is not aware of the sources of data

Page 9: Advanced Federation and Web Services in Aras for Enterprise PLM

Federation Scenarios

Corporate document management systemDocuments checked in to the PLM system are transferred ydirectly to a corporate document archiving solution

Searching and viewing documents is performed within the PLM i f di l i l d dinterface,  directly accessing remotely stored data

Cost and inventory‐on‐hand fields in ERPCost and inventory on hand fields in ERPMaterial cost may be maintained in the ERP system,  but is useful information to engineers using PLM

The PLM material forms contains a mash‐up of data from both PLM and a real‐time ERP query

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 9

The PLM workflows may branch automatically based on the levels of inventory of parts being changed

Page 10: Advanced Federation and Web Services in Aras for Enterprise PLM

Why Server‐Based Federation?

Aras Innovator is an HTML Client; we can use the client as an integration platform also.   g p

Server‐based Federation Advantages:

PLM client is sent a single data set, and is not aware that core business objects have been modified with remote properties,  or that the data objects are not nativej

Integration of remote data objects is encapsulated on the server, eliminating client customizingg g

Server‐side business rules such as Permissions, LifeCycle, and Workflow logic can act on the 3rd party data objects

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 10

Page 11: Advanced Federation and Web Services in Aras for Enterprise PLM

Simple Exercise

Create an ItemType named Test with 1 Property=name

Add a Server Event OnGet with a Method that createsAdd a Server Event OnGet with a Method that creates and returns a hardcoded XML string

<It t ‘T t’ id ‘1234’>< >H ll </ ></It ><Item type=‘Test’ id=‘1234’><name>Hello</name></Item>

Select this item on the TOC

Grid will populate with the ‘fake’ data.

NOTE:

aras.comCopyright © 2011 Aras All Rights Reserved.

o Had to create a dummy ID for each row

Slide 11

Page 12: Advanced Federation and Web Services in Aras for Enterprise PLM

Why is the Simple Exercise Simple?

Aras Client and all internal framework services expect AML to be returned on every transaction ‐ this is key to the simplicity of Federation

No customizations normally on the clientNo customizations normally on the cliento As long as AML is returned,  the client is happy to work with any data it receives

o Exception is file check‐in handling  ( ** discussed later )

Use standard Ser er E ents to add the Federation logicUse standard Server Events to add the Federation logico OnAfterGet to merge federated properties

O G t t t 100% f d t d it

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 12

o OnGet to return 100% federated items

Page 13: Advanced Federation and Web Services in Aras for Enterprise PLM

Pseudo Code for a View

Assume “MyFederation”   OnGet event  ‐ VB/C# Method

Assume entire ItemType has been FederatedAssume entire ItemType has been Federated

Properties for the remote object, TOC Access, Form Views are defined in standard Aras Innovator ItemType Editor

2 Modes:2 Modes:

1. Simple Searching and Viewing (unstructured)

2 U i th F d t d It i R l ti hi2. Using the Federated Item in Relationships

For example:   Part to Document Relationship where th D t f d t d

aras.comCopyright © 2011 Aras All Rights Reserved.

the Documents are federated

Slide 13

Page 14: Advanced Federation and Web Services in Aras for Enterprise PLM

Pseudo Code for View #1

User query parameters from the Simple Search grid row are Properties on the Me / This objectare Properties on the Me / This object 

Check if this is a Get for one record or a set.   How?

B ild h f h i hBuild the query for the remote system, passing the query parameters the user entered in the client

R h d ( ** di d )Run the query code  ( ** discussed next )

Create an AML string from the query result

Add a dummy ID for each row

Return AML

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 14

QUIZ:  Is there an ItemType table for this item?

Page 15: Advanced Federation and Web Services in Aras for Enterprise PLM

Pseudo‐Code for View #2

Federated Items will be used as Item Properties, ith th S R l t d i R l ti hior either the Source or Related in a Relationship

ItemType is not flagged as Federated this time because we do want an Aras Innovator tablebecause we do want an Aras Innovator table

QUIZ ‐ What properties must this table store?

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 15

Page 16: Advanced Federation and Web Services in Aras for Enterprise PLM

Pseudo‐Code for View #2

Three properties are required to maintain configurations

IDID

Federated‐ID

Keyed‐Name

Solution:   in the OnGet method we add a function to register the data objects found via user queries,register the data objects found via user queries,  assigning a new Aras Innovator ID to each

I use a small stored procedure to execute this efficiently

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 16

p ff y

Page 17: Advanced Federation and Web Services in Aras for Enterprise PLM

Remote Data Access Techniques

Web Servicesld / d lo Building an ASPX/PHP page as a wrapper around legacy systems

o Using Visual Studio to make a Proxy

XMLHTTP bj to XMLHTTP object

ODBC

Commercial API from the other system vendor

QUIZ:   How do we register a DLL (either API or WS Proxy) th t th DLL di tl i M th d ?

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 17

so that you can use the DLL directly in Methods ?

Page 18: Advanced Federation and Web Services in Aras for Enterprise PLM

Other Design Considerations

File check‐in to a Federated source

After check‐in, move file from Aras vault to remote vault

Aras client does direct file upload

Actions for Add, Update and Delete are possible, p p

Synchronizing permissions and access

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 18

Page 19: Advanced Federation and Web Services in Aras for Enterprise PLM

Two Use Cases

1. Data in the ERP system or your legacy applications is relevant to the PLM users.   We want this data and PLM data together in the right context on the PLM user interface ‐‐ like a Mash‐Up

Federation2. Other systems need access to data records or files 

stored in the PLM systemy

Web Services

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 19

Page 20: Advanced Federation and Web Services in Aras for Enterprise PLM

Web Services

Example:  On‐line website catalog needs data from p gthe PLM system (drawings, specs, part numbers).      • BTW this is how the Aras web site runs

Shop floor MES system displays drawings from the p y p y gPLM vault

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 20

Page 21: Advanced Federation and Web Services in Aras for Enterprise PLM

Aras Training Class ‐ Outline

Overview of Aras Web Services

Creating a Web Service Configuration

Generating the Web Service Code

Publishing a new Application to IIS

T i h W b S iTesting the Web Service

Consuming the Web Service example using Visual Studio

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 21

Consuming the Web Service example using Visual Studio

Page 22: Advanced Federation and Web Services in Aras for Enterprise PLM

Web Services

You can develop XML/SOAP messages that are sent directly to the Aras Server,  the only requirement is that each transaction is authenticated,  and you have the XML message payload correct.

http://myServer/Innovator/Server/InnovatorServer.aspx

What? No WSDL Why is there no WSDL?What?  No WSDL.      Why is there no WSDL?   

WDL implies a static object model  

Tradeoffs   •Performance

aras.comCopyright © 2011 Aras All Rights Reserved.

• Static vs. Dynamic view of the world

Slide 22

Page 23: Advanced Federation and Web Services in Aras for Enterprise PLM

Aras Web Services Choices

Interfacing to the Aras Server directlyInnovatorServer.aspx provides the ApplyItem service

All AML commands are available

No WSDL necessary

Creating a Custom Web Service

Advantages• Can generate WSDL

C b d i h l h WSDL b ild i f• Can be used with tools that use WSDL to build interfaces

DisadvantagesSt ti d l

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 23

• Static model

• If an ItemType is altered, the service must be regenerated

Page 24: Advanced Federation and Web Services in Aras for Enterprise PLM

Service Publishing Overview

Steps:

1) Establish a physical directory location for the service

2) Create a Web Configuration Item) g

3) Save the Web Configuration File to web service directorydirectory

4) Generate the Web Service program code and configure serviceconfigure service

5) Add the Web Service to IIS

aras.comCopyright © 2011 Aras All Rights Reserved.

6) Test the ServiceSlide 24

Page 25: Advanced Federation and Web Services in Aras for Enterprise PLM

Creating Web Service Configurationg

1 2

3

4

6 8

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 25

5 7

Page 26: Advanced Federation and Web Services in Aras for Enterprise PLM

Specifying Actions

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 26

Page 27: Advanced Federation and Web Services in Aras for Enterprise PLM

Creating Custom Actions

Create Server Method1

Create Corresponding Action2

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 27

Page 28: Advanced Federation and Web Services in Aras for Enterprise PLM

Creating a Location Directory

Locate the web service generator files:

Innovator/Server/bin/WebServiceGenerator…Innovator/Server/bin/WebServiceGenerator

Copy the folder to a new location

Example: C:\WebServiceGenerator

Rename directoryy

Example: C:\WorkOrder_Service

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 28

Page 29: Advanced Federation and Web Services in Aras for Enterprise PLM

Saving the Web Configuration File

1

2

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 29

Page 30: Advanced Federation and Web Services in Aras for Enterprise PLM

Generating the Web Service Code

GenerateWS.exeParameters:• Folder to generate Web Service code files

• File name of Web Service Configuration File

• Folder containing  the template configuration .zip file

• Name of published web service

Example:G t S SC 1 l kO d S i

aras.comCopyright © 2011 Aras All Rights Reserved.

GenerateWS . WSC_1.xml . WorkOrderService

Slide 30

Page 31: Advanced Federation and Web Services in Aras for Enterprise PLM

Configuring the Web Service

Locate the innovator.config.xml file

Replace the following parameter valuesURL

DB

E lExample:<?xml version="1.0" encoding="utf-8" ?>

<appSettings>pp g

<add key="url" value="http://localhost/Innovator920" />

<add key="db" value="DevelopingSolutions920" />

</appSettings>

aras.comCopyright © 2011 Aras All Rights Reserved.

</appSettings>

Slide 31

Page 32: Advanced Federation and Web Services in Aras for Enterprise PLM

Creating the IIS Application

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 32

Page 33: Advanced Federation and Web Services in Aras for Enterprise PLM

Testing the Service

Use Internet Explorer and enter the URL:Example:http://localhost/WorkOrderService/innovator.asmx

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 33

Page 34: Advanced Federation and Web Services in Aras for Enterprise PLM

Consuming the Web Service in Visual Studio

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 34

Page 35: Advanced Federation and Web Services in Aras for Enterprise PLM

Two Use Cases

1. Data in the ERP system or your legacy applications is relevant to the PLM users.   We want this data and PLM data together in the right context on the PLM user interface ‐‐ like a Mash‐Up

Federation

2. Other systems need access to data records or files t d i th PLM tstored in the PLM system

Web Services

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 35

Page 36: Advanced Federation and Web Services in Aras for Enterprise PLM

More Resources

Federation test package

Innovator‐to‐Innovator federation used fortesting of the Server Events   

Aras wiki articles

http://www.aras.com/community/wikis/

Aras training classes and materials

aras.comCopyright © 2011 Aras All Rights Reserved. Slide 36

http://www.aras.com/university/

Page 37: Advanced Federation and Web Services in Aras for Enterprise PLM

ACE 2011 International

Understanding FederationUnderstanding Federation and Web Services

www.aras.com

aras.comCopyright © 2011 Aras All Rights Reserved.


Recommended