Add request - HxGN EAM - Version 12.0 - Customization & Programming - Hexagon

HxGN EAM Web Services Toolkit Help

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

An add request allows creation of new business objects. It might be preceded by a get default request if a user interface is needed or might be used to directly upload new objects.

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>

<MP0317_AddLocation_001 xmlns="http://schemas.datastream.net/MP_functions/MP0317_001"

xmlns:dse-Location="http://schemas.datastream.net/MP_entities/Location_001" xmlns:dsf="http://schemas.datastream.net/MP_fields"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

verb="ADD" noun="Location" version="001">

<dse-Location:Location recordid="1" user_entity="String" system_entity="String">

<dsf:LOCATIONID>

<dsf:LOCATIONCODE>LOCATION15</dsf:LOCATIONCODE>

<dsf:ORGANIZATIONID entity="Location">

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

<dsf:DESCRIPTION>test LOCATION15 description</dsf:DESCRIPTION>

</dsf:ORGANIZATIONID>

<dsf:DESCRIPTION>test</dsf:DESCRIPTION>

</dsf:LOCATIONID>

<dsf:DEPARTMENTID>

<dsf:DEPARTMENTCODE>*</dsf:DEPARTMENTCODE>

<dsf:DESCRIPTION></dsf:DESCRIPTION>

</dsf:DEPARTMENTID>

</dse-Location:Location>

</MP0317_AddLocation_001>>

</soapenv:Body>

</soapenv:Envelope

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>

<ns1:MP0318_GetLocation_001_Result
xmlns:ns1=http://schemas.datastream.net/MP_results/MP0318_001
xmlns:ns2=http://schemas.datastream.net/MP_entities/Location_001
xmlns:dsf="http://schemas.datastream.net/MP_fields">

<ns1:ResultData>

<dsf:Location recordid="0">

<dsf:LOCATIONID>

<dsf:LOCATIONCODE>LOCATION15</dsf:LOCATIONCODE>

<dsf:ORGANIZATIONID>

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

<dsf:DESCRIPTION>test LOCATION15 description</dsf:DESCRIPTION>

</dsf:ORGANIZATIONID>

<dsf:DESCRIPTION>test</dsf:DESCRIPTION>

</dsf:LOCATIONID>

<dsf:DEPARTMENTID>

<dsf:DEPARTMENTCODE>*</dsf:DEPARTMENTCODE>

<dsf:DESCRIPTION>DEFAULT / ALL DEPARTMENTS</dsf:DESCRIPTION>

</dsf:DEPARTMENTID>

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

</dsf:Location>

</ns1:ResultData>

</ns1:MP0318_GetLocation_001_Result>

</soapenv:Body>

</soapenv:Envelope>