Hello all
I try to create an item in CS via the create_item() method of the ELS webservice, but it seems that I do not use the correct parameters. It's complaining about invalid object nature. Somebody knows what I'm doing wrong?
Thx
Ludwig
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:content.elib.services.ecm.opentext.com">
<soapenv:Header>
<urn:OTAuthentication>
<!--Optional:-->
<urn:AuthenticationToken>G%2Fj9nfuP3rNiQ8s7078FKYfESaifBJ2Uxc3dopvZVFQ%3D</urn:AuthenticationToken>
</urn:OTAuthentication>
</soapenv:Header>
<soapenv:Body>
<urn1:CreateItem>
<item>
<displayName>Test folder via SOAPUI</displayName>
<parentId>default/808303</parentId>
<type>dm.Folder</type>
<nature>ELItem</nature>
</item>
</urn1:CreateItem>
</soapenv:Body>
</soapenv:Envelope>
Response:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<OTAuthentication xmlns="urn:api.ecm.opentext.com">
<AuthenticationToken>G%2Fj9nfuP3rNiQ8s7078FKYfESaifBJ2Uxc3dopvZVFQ%3D</AuthenticationToken>
</OTAuthentication>
</S:Header>
<S:Body>
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode xmlns:ns0="urn:api.ecm.opentext.com">ns0:ELService.Data.NatureIsInvalid</faultcode>
<faultstring>The object nature is not valid for this type!</faultstring>
<detail>
<ns3:ELServiceFault xmlns:ns3="urn:elib.services.ecm.opentext.com" xmlns:ns2="urn:content.elib.services.ecm.opentext.com">
<faultCode>ELService.Data.NatureIsInvalid</faultCode>
<message>The object nature is not valid for this type!</message>
<parameters>
<entry>
<key>EVENT_ID</key>
<value>Thu Sep 03 15:34:29 CEST 2015</value>
</entry>
<entry>
<key>CAUSE_MESSAGES</key>
<value/>
</entry>
</parameters>
</ns3:ELServiceFault>
</detail>
</S:Fault>
</S:Body>
</S:Envelope>