I want to integrate a custom application with Clarity using WSDL that calls XOG to read projects. What is the proper syntax?
search cancel

I want to integrate a custom application with Clarity using WSDL that calls XOG to read projects. What is the proper syntax?

book

Article ID: 52984

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Description:

Can you explain the syntax for the function:

System.Xml.XmlElement ProjectsService.ReadProject(System.Xml.XmlElement ReadProject)

What do I have to pass on the parameter ReadProject to get the list of Projects?

When I run my WSDL (Web Services Description Language) code I'm getting "Missing NikuDataBus request document".

Solution:

NikuDataBus is the XML Open Gateway (XOG) body that you need to pass to ReadProject.  After installing the XOG client on your local machine. You can get examples of the NikuDataBus syntax from the XOG client XML folder. You can use the 'prj_projects_read.xml' sample for ReadProject.

Here's an example of a request to read a project.

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

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.niku.com/xog/Object">
  <soap:Header>
  <tns:Auth>
<tns:SessionID>5321519__40cb852f:11dbff5f415:-7ffb1227300333687</tns:SessionID>
 </tns:Auth>
 </soap:Header>
 <soap:Body>
 <tns:ReadProject>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
 <Header version="14.1.0.431" externalSource="NIKU">
</Header> <Query> <Filter name="projectID" criteria="EQUALS">project1234</Filter> </Query> </NikuDataBus> </tns:ReadProject> </soap:Body> </soap:Envelope>

Environment

Release: ESPCLA99000-13.2-Clarity-Extended Support Plus
Component: