Hello,
I cannot succeed in using OCSimport, and while analyzing logs, I find that SOAP request does not contain child elements in attributeList, that make request fail:
soap request:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns1:getCardList xmlns:ns1="http://soap.services.cmdbuild.org">
<ns1:className>Computer</ns1:className>
<ns1:attributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
<ns1:queryType>
<ns1:filter>
<ns1:name>Code</ns1:name>
<ns1:operator>EQUALS</ns1:operator>
<ns1:value>TR</ns1:value>
</ns1:filter>
</ns1:queryType>
<ns1:orderType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
<ns1:limit>1</ns1:limit>
<ns1:offset>0</ns1:offset>
</ns1:getCardList>
</soapenv:Body>
</soapenv:Envelope>
The same request works fine when removing <ns1:attributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />, and submitting directly in soapUI.
Does anyone knows how attributeList is generated, and why it is empty ?
I'm using last version of cmdbuild, shark and external connector.
Generated exception in cmdbuild.log is:
ERROR 2013-08-07 14:39:49 [cmdbuild] Cannot read attribute...
WARN
2013-08-07 14:39:49 [org.apache.cxf.phase.PhaseInterceptorChain]
Application
{http://soap.services.cmdbuild.org}WebservicesImplService#{http://soap.services.cmdbuild.org}getCardList
has thrown exception, unwinding noworg.apache.cxf.interceptor.Fault: Malformed sortersMalformed sorters
Thanks!