AnsweredAssumed Answered

GEL to invoke URL

Question asked by Nag_cl on Nov 14, 2014
Latest reply on Nov 24, 2014 by navzjoshi00

I wanted to populate cost plan from investment team using custom gel script.

I thought of triggering/invoking the Populate from investment team URL  through soap, but I am hit with some error.

If you have done anything similar to this, kindly share your experience.

 

Gel Script:

<gel:script xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:core="jelly:core" xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"

  xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"

  xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sql="jelly:sql"

  xmlns:xog="http://www.niku.com/xog" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<core:set value="http://server.clarity.com:8081/niku/nu#action:revmgr.populateFromResourcePlan&superSecretTokenKey=superSecretTokenValue&plan_id=6684011&id=6007639&object_id=6007639&object_code=project&copyoption=Allocations" var="URL"/>

<gel:log>Hello World! log</gel:log>

<gel:log>${URL}</gel:log>

<soap:invoke endpoint="${URL}" var="auth">

        <soap:message>

          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

            <soapenv:Header/>

            <soapenv:Body/>

          </soapenv:Envelope>

        </soap:message>

</soap:invoke>

</gel:script>

 

 

Process Error:

SS1.png

 

Regards,

Naga

Outcomes