Example 1: Validating a Translate (XLAT) Field
The following code example shows a request message sent to a PeopleSoft system as part of the PTLOOKUPXLAT service operation to obtain a list of valid field values and their descriptions for the CERTTYPE field. Note that the LookupFieldValue element is empty (< >). As a result, the PeopleSoft system will return a list of all valid values for the field:
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:⇒
soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http:⇒
//schemas.xmlsoap.org/ws/2003/03/addressing/" xmlns:xsd="http://www.w3.org/2001⇒
/XMLSchema/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/">
<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas. ⇒
xmlsoap.org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/ 2004/01⇒
/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<XLAT_Lookup xmlns="http://xmlns.oracle.com/Enterprise/Tools/schemas/ PT_⇒
Lookup.XLAT_Lookup.V1">
<LookupFieldName>CERTTYPE</LookupFieldName>
<LookupFieldValue></LookupFieldValue>
<DescrFieldName>XLATSHORTNAME</DescrFieldName>
<LanguageCode></LanguageCode>
<EffectiveDate>2010-01-03</EffectiveDate>
</XLAT_Lookup>
</soapenv:Body>
</soapenv:Envelope>The following code example shows the response message that the PeopleSoft system returns to the integration partner. The returned field values are returned in the <RespVal> and <RespDescr> elements, as highlighted in the example:
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/
encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<LookupResponse xmlns="http://xmlns.oracle.com/Enterprise/
Tools/schemas/PT_Lookup.LookupResponse.V1">
<ResponseComp xmlns="http://xmlns.oracle.com/Enterprise/
Tools/schemas/PT_Lookup.ResponseComp.V1">
<RespVal>USER</RespVal>
<RespDescr>User</RespDescr>
</ResponseComp>
<ResponseComp xmlns="http://xmlns.oracle.com/Enterprise/
Tools/schemas/PT_Lookup.ResponseComp.V1"><RespVal>NODE</RespVal>
<RespDescr>Node</RespDescr>
</ResponseComp>
<ResponseComp xmlns="http://xmlns.oracle.com/Enterprise/
Tools/schemas/PT_Lookup.ResponseComp.V1"> <RespVal>CERT</RespVal>
<RespDescr>Cert</RespDescr>
</ResponseComp>
<ResponseComp xmlns="http://xmlns.oracle.com/Enterprise/
Tools/schemas/PT_Lookup.ResponseComp.V1"><RespVal>ROOT</RespVal>
<RespDescr>Root CA</RespDescr>
</ResponseComp>
</LookupResponse>
</soapenv:Body>
</soapenv:Envelope>