XML in People Soft
-
Upload
vishalpathania -
Category
Documents
-
view
231 -
download
0
Transcript of XML in People Soft
-
8/3/2019 XML in People Soft
1/60
Jud i Doo l it t le
Sandia Nat ional Laborat or ies
-
8/3/2019 XML in People Soft
2/60
Judi Doolittle, MA, OCP
Author of PeopleSoft Developer's Guide forPeopleTools & PeopleCode
-
8/3/2019 XML in People Soft
3/60
Agenda
XML Basics Major Components of XML
SOAP
XML Publisher for PeopleSoft Publisher Security
Flat File Layout
Tags
-
8/3/2019 XML in People Soft
4/60
Agenda Cont inued
u
Report Categories
ata ource reat on
XML Application Packages Register the Data Source
XML Files in SQL Dev
Putting it Together
-
8/3/2019 XML in People Soft
5/60
XML Bas ic s
, ,
Three pieces are EMPLID, NAME, and DEPTID Pieces of information in the flat file coma delimited
12345
John Smith
< > < >
-
8/3/2019 XML in People Soft
6/60
XML Basic s Cont inued
Markup Elements
Outside brackets is Data Each piece of Data has a starting and ending
tag
No limit to tags you can Or Rename
-
8/3/2019 XML in People Soft
7/60
Renam ing a Tag
xamp e o renam ng to
12345
< > < >
0987
-
8/3/2019 XML in People Soft
8/60
Major Com ponent s o f XML:
Root Element--Encloses all the Information
end tag
--tab
--end tag are collectively a XML Element
Data--Information between start and end ta s
-
8/3/2019 XML in People Soft
9/60
Major Com ponent s o f XML:
XML Declaration--the general characteristicsof the document
DTD Document Type Declaration--the
structure of the document; internalec arat ons oca to t e ocument
DTD Internal Subset--DTD contains
re erences o o er XML Information Set--Document content
-
8/3/2019 XML in People Soft
10/60
SOAP
Simple Object Access Protocol SOAP a lications can be develo ed in
separate unrelated systems
These separate applications exchangen orma on
Standards: http://www.w3.org/TR/soap/
http://www.soapuser.com/basics3.html
-
8/3/2019 XML in People Soft
11/60
SOAP Ex am pleHost: www.widget.com
ontent- ype: text xm : c arset=ut -8
Content-Length: 560
SOAPAction: htt ://www.wid ets.com/assembl search
-
8/3/2019 XML in People Soft
12/60
SOAP Response
-ENV Body>
-
8/3/2019 XML in People Soft
13/60
SOAP Elem ent s
Complex Elements
Related Services
Allows for specification of low-level data-typing
Grouping Element
< n ng> Link between physical and logical model
Transmission method i.e. SMTP
Physical location of the end-point communication
-
8/3/2019 XML in People Soft
14/60
XMLP
Java based reporting platform XML Publisher
Or XMLP
HTML
Excel
PDF
RTF
-
8/3/2019 XML in People Soft
15/60
XML Publ isher Sec ur i t y
Three Parts to XMLP Securit
Report Definitions Report Running
Report Viewing
Query Defined Reports XML Does Not Provide This Level of Security
Query Security
Application Security
And Or Process Scheduler Security
-
8/3/2019 XML in People Soft
16/60
XML Publ isher Sec ur i t y
Queries: Quer Securit is the Decidin
Security Data Extraction: Component Security
Determines Access
Processes: Process Security is the Key
-
8/3/2019 XML in People Soft
17/60
Flat Fi le Layout
coma
12345, John Smith, 0987
12345
John Smith0987
< mp oyees>
-
8/3/2019 XML in People Soft
18/60
Tags
o m o e um er o ags ou an
Use Create
Or Rename
Example you want to rename NAME to ENAME
12345
< > o n m < >0987
-
8/3/2019 XML in People Soft
19/60
Basic Set up Settings are Defined in the xdo.cfg File
xamp e:
true
trueCACHE
50
" "< = - > < >
-- =" - - " --
-
8/3/2019 XML in People Soft
20/60
Basic Set up
-
8/3/2019 XML in People Soft
21/60
Basic Set up
.
;To pass java options to the jvm loaded via JNI, uncomment JavaVMOptions=
;an set t equa to t e st o parameters you wou e to use.
;The options need to be a blank space separated list of valid java options.
Consult our JRE vendor for valid ava o tions.
;For example, JavaVM Options=-Xmx256m -Xms128m
JavaVM Options=-Xrs -Dxdo.ConfigFile=../xdo.cfg
New Setting:JavaVM Options=-Xrs -Dxdo.ConfigFile=xdo.cfg
anges w no a e e ec un you res ar e
Application Server
-
8/3/2019 XML in People Soft
22/60
ages se n e up
Two Pages Used in Set-up of XML Publisher in
PeopleSoft PSXPSETUPRPTCAT -- the Report Category
Page
-
8/3/2019 XML in People Soft
23/60
ages se n e up on nue
Second Page in Set-up of XML Publisher inPeopleSoft
PSXPSETUPDWNLD -- the Design Helper Page
-
8/3/2019 XML in People Soft
24/60
Report Cat egor ies Cont inued
e -up o er Contains:
Re ort Cate or
Design Helpers
-
8/3/2019 XML in People Soft
25/60
Report Cat egor ies
epor e n ons equ re
All Templates Stored in Content Library
Set Row Level Security to the level of the
Com onent
-
8/3/2019 XML in People Soft
26/60
Report Cat egor ies Cont inued
epor a egory n ayro w wo
PeopleSoft Roles Defined
-
8/3/2019 XML in People Soft
27/60
Report Cat egor ies Cont inued
ey n orma on n rea ng epor a egory Report Category ID
Object Owner ID
ID Type Security ID
Description
-
8/3/2019 XML in People Soft
28/60
-
8/3/2019 XML in People Soft
29/60
Dat a Sourc e Creat ion
wo a n eces o epor s PeopleSoft Developer usually Does the Data
Piece
Functional Business Team Member doesTemplate
eren ypes o a a ources: PeopleSoft Queries
XML Document Objects
XML Files
XSD Files
-
8/3/2019 XML in People Soft
30/60
a a ourc e RowSet
Example taken from websitettp: peop eso tt pster.com 2007 05 24 xm -pu s er-w t n-peop eso t
/*Populating the RowSet */import PSXP_XMLGEN:*;
/*create rowsets */
&rs_compensation CreateRowSet(Record.COMPENSATION);
&rs_job CreateRowSet(Record.JOB);
/*Fill Parent */
&rs_job.Fill(where EMPLID like K0G00%);* *
For &I = 1 to &rs_Job.ActiveRowCount
&row = &rs_Job.GetRow(&i);
&rs = &row.GetRowSet(Scroll.COMPENSATION);
. , . . .
End-For;/*Output Files */
/*Create XSD */
&rds = create sx xml en:RowSetDS_
&myschema = &rds.GetXSDSchema(&rs_Job);
&f1 = GetFile(C:\temp\rpt01.xsd, W, %FilePath_Absolute;
&f1.WriteLine(&myschema);&f1.Close(); J
-
8/3/2019 XML in People Soft
31/60
XML Appl ic a t ion Pac k ages
XML Publisher Classes
import PSXP_RPTDEFNMANAGER:*;
mpor _ : ;
import PSXP_XMLGEN:*;
*_
N
-
8/3/2019 XML in People Soft
32/60
eg s er e a a ourc e PeopleSoft Query
ere we w on y e oo ng at popu at ng a ata
Source from a Query Data Source Pa e
-
8/3/2019 XML in People Soft
33/60
eg s er e a a ourc e on nue First Setting is the Data Source Type
PSQuery
Rowset
XML Doc
XML File
Next Setting is the Data Source ID
PS Pulls the Data Source ID from the Query Manager
Which is why it is important to have your Query Created before youregister the Data Source
Next is Description Object Owner is Optional
Product
Feature or Application that Owns the Data Source
-
8/3/2019 XML in People Soft
34/60
eg s er e a a ourc e on nue Registered Date/Time
Read Only
Maintained by the System
Stores the Date and Time of the Last U date
Active
Sets a Data Source to be Actively Chosen when Creatingthe Report Definition
If InActive--You will not see it when you try to Create aReport
Registered By UserID
Person who First Registered the Data Source
Updated by the System to Note Last Person to Update theField
-
8/3/2019 XML in People Soft
35/60
eg s er e a a ourc e on nue Create a Report Definition with the Query
-
8/3/2019 XML in People Soft
36/60
eg s er e a a ourc e on nue Create a Report Definition with the Query
-
8/3/2019 XML in People Soft
37/60
es n ev In the Highlighted Rows Right Click Export Results as XML File
-
-
1
ABSENT_AFTER
< > < >
1/1/1900
A
No
No
9/5/1997
PPLSOFT
26067
.
-
8/3/2019 XML in People Soft
38/60
XML Fi les in SQL Dev Cont inued
-
8/3/2019 XML in People Soft
39/60
Ex am ple--Put t ing i t Toget her
-
8/3/2019 XML in People Soft
40/60
Ex am ple--Put t ing i t Toget her
-
8/3/2019 XML in People Soft
41/60
Query Cont inued
-
8/3/2019 XML in People Soft
42/60
Query Cont inued
-
8/3/2019 XML in People Soft
43/60
XML Dat a for Query
" " " "- < = = _ _ _ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xsi:noNamespaceSchemaLocation="">
- EMPLID samp
FULL_NAME sample data
SL_BIRTHDA
START_DATE< _ > _ s< _ >
TO
CURR_DATE
SIGNITURE sample data
S
HOST_SL_SNL
HOST_NAME sample data
HOST_ORG s
HOST
HOST_PHONE sample data
HOST_FAX sample data
-
8/3/2019 XML in People Soft
44/60
XML Dat a for Query Cont inuedLOCATION sample data --:4
< > < > --
MEETING_ACCESS sample data--:6
SIGMA sample data --:7
SITE sample data --:8
COU --:10
ADDRESS sample data--:11
COMP_PHONE s --:12
SL_AFFILIATION sample data --:13T --:15
T --:16
COMMENTS sample data--:17
CO HOST EMP--:18_ _ _ _ _ _
CO_HOST_PHON --:19CO_HOST_FAX --:20
CO_HOST_NAME sample data--:22
_ _ _ _ _ _ --
MGR_NAME sample data --:23
MGR_PHONE sa --:24
-
8/3/2019 XML in People Soft
45/60
Report Def in i t ion
-
8/3/2019 XML in People Soft
46/60
Report Def ini t ion Tem pla t e
-
8/3/2019 XML in People Soft
47/60
Report Def in i t ion Out put
-
8/3/2019 XML in People Soft
48/60
Report Def in i t ion Sec ur i t y
-
8/3/2019 XML in People Soft
49/60
-
8/3/2019 XML in People Soft
50/60
-
8/3/2019 XML in People Soft
51/60
PeopleCode t o Genera t e Report
-
8/3/2019 XML in People Soft
52/60
Peop leCode Cont .
-
8/3/2019 XML in People Soft
53/60
Def in ing PDF Fie lds
-
8/3/2019 XML in People Soft
54/60
-
8/3/2019 XML in People Soft
55/60
and Dat abase Profess ional
www. u .access to:
Member Discounts and Special Offers
ourna
Library of Oracle Knowledge (LoOK)
Member Directory Special Interest Groups
Discussion Forums:
Access to Local and Regional Users Groups:
5 Minute Briefing: Oracle Volunteer Opportunities
-
8/3/2019 XML in People Soft
56/60
St op by t he IOUG Boot h
Moscone Center West 2nd Floor
Register for Raffles and Giveaways
Fill out a SIG interest card
Tell them I sent you!!!
-
8/3/2019 XML in People Soft
57/60
Summary
Major Components of XML
XML Publisher for PeopleSoft
Publisher Security
Flat File Layout
Tags
-
8/3/2019 XML in People Soft
58/60
Sum m ary Cont inued
u
Report Categories
ata ource reat on
XML Application Packages
Register the Data Source
XML Files in SQL Dev
Putting it Together
-
8/3/2019 XML in People Soft
59/60
Quest ions/Comments/Discussion?
-
8/3/2019 XML in People Soft
60/60
Judi Doolittle, [email protected]