Get default request - HxGN EAM - Version 12.0.1 - Customization & Programming - Hexagon

HxGN EAM Web Services Toolkit Help

Language
English
Product
HxGN EAM
Search by Category
Customization & Programming
HxGN EAM Version
12.0.1

A get default request returns the complete set of default values to allow creation of the business object. This request would typically be used to display default values in an add screen or create task. The context for the default object (such as Organization) must be provided.

This example requests default values for the Location object for user Jones for organization ORG1.

Request example

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope 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:Header>

<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">

<UsernameToken Id="MyID">

Username>Jones</Username>

<Password>password</Password>

</UsernameToken>

</wsse:Security>

<dstm:SessionScenario xmlns:dstm="http://schemas.datastream.net/MP_functions"> terminate

</dstm:SessionScenario>

<dstm:Organization xmlns:dstm="http://schemas.datastream.net/MP_functions">

ORG1

</dstm:Organization>

</soapenv:Header>

<soapenv:Body>

<tt:processMessage xmlns:tt="EWSConnector"/>

<ns1:MP0321_GetLocationDefault_001 noun="LocationDefault" verb="GET" version="001"

xmlns:ns1=http://schemas.datastream.net/MP_functions/MP0321_001
xmlns:dsf="http://schemas.datastream.net/MP_fields"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<dsf:ORGANIZATIONID entity="User">

<dsf:ORGANIZATIONCODE>ORG1</dsf:ORGANIZATIONCODE>

<dsf:DESCRIPTION/>

</dsf:ORGANIZATIONID>

</ns1:MP0321_GetLocationDefault_001>

</soapenv:Body>

</soapenv:Envelope>

The response returns default values (as bolded) for this object and context.

Response example

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope
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>

<MP0321_GetLocationDefault_001_Result
xmlns=http://schemas.datastream.net/MP_results/MP0321_001
xmlns:ns1=http://schemas.datastream.net/MP_entities/Location_001
xmlns:dsf="http://schemas.datastream.net/MP_fields">

<ResultData multiorg="false">

<ns1:Location>

<dsf:LOCATIONID>

<dsf:LOCATIONCODE/>

<dsf:ORGANIZATIONID>

<dsf:ORGANIZATIONCODE>ORG1</dsf:ORGANIZATIONCODE>

</dsf:ORGANIZATIONID>

</dsf:LOCATIONID>

<dsf:DEPARTMENTID>DEPT1<dsf:DEPARTMENTCODE/>

</dsf:DEPARTMENTID>

<dsf:CLASSID>

<dsf:CLASSCODE/>

</dsf:CLASSID>

<dsf:COSTCODEID>

CODE5<dsf:COSTCODE/>

</dsf:COSTCODEID>

<dsf:SAFETY>false</dsf:SAFETY>

<ns1:ParentLocationID>

<dsf:LOCATIONCODE/>

<dsf:ORGANIZATIONID>

<dsf:ORGANIZATIONCODE/>

</dsf:ORGANIZATIONID>

</ns1:ParentLocationID>

</ns1:Location>

</ResultData>

</MP0321_GetLocationDefault_001_Result>

</soapenv:Body>

</soapenv:Envelope>