AnsweredAssumed Answered

out put format from xog webs service - > xml file ??!!

Question asked by slima24 on Aug 30, 2013
Latest reply on Sep 2, 2013 by slima24
i used this gel script and i successfully has the output , but the problem is the output i have is just via the command line , so how can i have the output in xml file ?? is there any specific gel script for this ??


this is the gel script :

<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="https://empower.capgemini.com/niku/xog">


<gel:parameter var="XOGusername" default="xxxxxxx"/>

<gel:parameter var="XOGpassword" default="xxxxxxxx"/>


<soap:invoke endpoint="http://claritypreprod.capgemini.com/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>








<NikuDataBus xmlns:xsi="_http://www.w3.org/2001/XMLSchema-instance" >
<Header version="6.0.11" action="read" objectType="project" externalSource="NIKU">
<!-- you change the order by simply swap 1 and 2 number in the name attribute -->
<args name="order_by_1" value="name"/>
<args name="order_by_2" value="projectID"/>
<args name="include_tasks" value="true"/>
<args name="include_dependencies" value="true"/>
<args name="include_subprojects" value="true"/>
<args name="include_resources" value="true"/>
<args name="include_baselines" value="true"/>
<args name="include_allocations" value="true"/>
<args name="include_estimates" value="true"/>
<args name="include_actuals" value="true"/>
<args name="include_custom" value="true"/>
</Header>
<Query>

<Filter name="projectID" criteria="EQUALS">FR-FR-100122321_1;</Filter>
</Query>
</NikuDataBus>









</soap-env:Body>



</soap-env:Envelope>


</soap:message>

</soap:invoke>


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

Outcomes