CMDBuild Forum

OCSImport: SOAP query does not contain elements in ns1:attributeList

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!

hi can u tell me.how u made request.i got ready with http://localhost:8080/cmdbuild-2.1.8/services/soap/Webservices?wsdl

 
but when trying through soapui giving following error
 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Body>
      <soap:Fault>
         <soap:Code>
            <soap:Value>soap:Sender</soap:Value>
            <soap:Subcode>
               <soap:Value xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity</soap:Value>
            </soap:Subcode>
         </soap:Code>
         <soap:Reason>
            <soap:Text xml:lang="en">An error was discovered processing the &lt;wsse:Security> header</soap:Text>
         </soap:Reason>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>
 
Thanks in advance