AnsweredAssumed Answered

XOG saving Custom Object <![CDATA[ com.niku.xog.XOGException: Invalid XOG S

Question asked by splogad on Aug 24, 2012
Latest reply on Aug 24, 2012 by nick_darlington
Hi!
I am opening a new thread since I did not find any similar texts elsewhere.
I have the following problem:
I am trying to create a new record in a given customobject and it works both using XOG and SOAPUI,
but when I embed the XOG code within a gel script in the process I get following error:
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd"> <Status elapsedTime="0.0 seconds" state="FAILURE"/> <Statistics failureRecords="0" insertedRecords="0" totalNumberOfRecords="0" updatedRecords="0"/> <ErrorInformation> <Severity>FATAL</Severity> <Description>Exception while processing client request</Description> <Exception type="com.niku.xog.XOGException"><![CDATA[ com.niku.xog.XOGException: Invalid XOG Service Request. Make sure there is a valid namespace associated to the root element of the request document. at com.niku.xog.service.XOGDispatch.processMessage(XOGDispatch.java:109) at com.niku.xog.service.XOGSOAPServlet.processMessage(XOGSOAPServlet.java:302) at com.niku.xog.service.XOGSOAPServlet.doPost(XOGSOAPServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) ]]></Exception> </ErrorInformation> </XOGOutput> </soapenv:Body> </soapenv:Envelope>
Here what I am trying to save:
  <soap:invoke endpoint="${XOGURL}/niku/xog" var="save_item">
                              <soap:message>



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>   
      <SessionID xmlns="http://www.niku.com/xog">${sessionID}</SessionID>
      <NikuDataBus xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="13.0.0.7032"/>
         <customObjectInstances objectCode="if_cliente">
            <instance instanceCode="-1" objectCode="if_cliente">
               <CustomInformation>
                  <ColumnValue name="partition_code">myEnterprise</ColumnValue>
                  <ColumnValue name="name">${r_name}</ColumnValue>
                  <ColumnValue name="code">${r_id}</ColumnValue>
                  <ColumnValue name="page_layout">odf.if_clienteFrame</ColumnValue>
                  <ColumnValue name="odf_period_start"/>
                  <ColumnValue name="odf_period_end"/>
                  <ColumnValue name="if_fatturato_cliente">${r_Fatturato__c}</ColumnValue>
                  <ColumnValue name="if_categoria">${r_industry}</ColumnValue>
                  <ColumnValue name="if_potenz_svil_cl">${r_Potenziale_Sviluppo_Cliente__c}</ColumnValue>
                  <ColumnValue name="if_mercato">${r_Mercato__c}</ColumnValue>
                  
                  <ColumnValue name="if_spending_cliente">${r_Spending__c}</ColumnValue>
                  <ColumnValue name="if_nr_prj_attivabili">${r_Nr_Progetti_Attivabili__c}</ColumnValue>
               </CustomInformation>
               <OBSAssocs complete="false"/>
               <Security/>
            </instance>
 </customObjectInstances>        
      </NikuDataBus>
   </soapenv:Body>
</soapenv:Envelope>



 </soap:message>
               </soap:invoke>
Is there anybody who knows how to fix this problem?

thanks
giacomo

Outcomes