AnsweredAssumed Answered

XOG generates incorrect wsdl fro InvokeAction/Process webservice

Question asked by StKirill on May 24, 2012
Latest reply on Jun 11, 2012 by nick_darlington
Can't believe that i'm the first one who faces this problem.

Url http://[SERVER]/niku/wsdl/InvokeAction/Process generates this wsdl:
<definitions xmlns:tns="http://www.niku.com/xog/InvokeAction" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InvokeActionProcess" targetNamespace="http://www.niku.com/xog/InvokeAction">
<types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.niku.com/xog/InvokeAction">
<xsd:complexType name="Process">
<xsd:sequence>
<xsd:element name="code" type="xsd:string" minOccurs="1" maxOccurs="1"/>





<xsd:element name="request" minOccurs="1" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:any/>






</xsd:sequence>





</xsd:complexType>




</xsd:element>



</xsd:sequence>


</xsd:complexType>



<xsd:element name="Process" type="tns:Process"/>



[color=#ff0000]<xsd:complexType name="ProcessResult">





<xsd:element name="returnValue" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>


</xsd:complexType>[color]



<xsd:element name="ProcessResult" type="tns:ProcessResult"/>...
But this is not correct xsd schema!
Correct schema you can find below:
<definitions xmlns:tns="http://www.niku.com/xog/InvokeAction" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InvokeActionProcess" targetNamespace="http://www.niku.com/xog/InvokeAction">
<types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.niku.com/xog/InvokeAction">
<xsd:complexType name="Process">
<xsd:sequence>
<xsd:element name="code" type="xsd:string" minOccurs="1" maxOccurs="1"/>





<xsd:element name="request" minOccurs="1" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:any/>






</xsd:sequence>





</xsd:complexType>




</xsd:element>



</xsd:sequence>


</xsd:complexType>



<xsd:element name="Process" type="tns:Process"/>



[color=#ff0000]<xsd:complexType name="ProcessResult">
<xsd:sequence>





<xsd:element name="returnValue" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>



</xsd:sequence>


</xsd:complexType>[color]



<xsd:element name="ProcessResult" type="tns:ProcessResult"/>...

Outcomes