AnsweredAssumed Answered

Need syntax help reading from XOG write file in GEL...

Question asked by michael_weller on Dec 2, 2011
Latest reply on Dec 28, 2011 by fpena
I will need to simply read from an XML file nightly to import resource data and here's the basic syntax. I have the credentials parts and only have a question about the section bettween the asterists. Rather than have the XML here I want to read from a file that would have the basic resource write details for about 3000 resources.

Thanks in advance!!

<--Generic credentials -->
<gel:script xmlns:x="jelly:xml"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xog="http://pmo.sec.samsung.net/niku/xog">

<gel:parameter var="XOGusername" default="admin"/>
<gel:parameter var="XOGpassword" default="admin"/>

<soap:invoke endpoint="http://pmo.sec.samsung.net/niku/xog" var="result">
<soap:message>
<soap-env:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xog="http://www.niku.com/xog">
<soap-env:Body>
<xog:Login xmlns="http://www.niku.com/xog">
<xog:Username>${XOGusername}</xog:Username>
<xog:Password>${XOGpassword}</xog:Password>
</xog:Login>







<-- What do I replace this section with to read from a XOG write file?
-->
**********************





<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
<Header version="12.0.0.5028" action="read" objectType="resource" externalSource="NIKU">
<args name="include_contact" value="false"/>
<args name="include_management" value="false"/>
<args name="include_custom" value="false"/>
<args name="include_financial" value="false"/>
</Header>
<Query>
<Filter name="isActive" criteria="EQUALS">true</Filter>
</Query>
</NikuDataBus>
************************
</soap-env:Body>
</soap-env:Envelope>
</soap:message>
</soap:invoke>

<gel:out><gel:expr select="$result"/></gel:out>
</gel:script>

Outcomes