# logging for OData log4j.logger.de.uplanet.lucy.server.odata.consumer=DEBUG, File log4j.additivity.de.uplanet.lucy.server.odata.consumer=false |
DEBUG 2014-05-23 09:47:57,384 OData response: Status: 200 DataServiceVersion: 1.0; Content-Length: 5074 Server: Microsoft-IIS/8.0 Date: Fri, 23 May 2014 07:47:57 GMT Content-Type: application/atom+xml;charset=utf-8 <feed xml:base="http://SharePoint2013/myTest/_vti_bin/listdata.svc/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <title type="text">MyTestAufgaben</title> <id>http://SharePoint2013/myTest/_vti_bin/listdata.svc/MyTestAufgaben</id> <updated>2014-05-23T07:47:57Z</updated> <link href="MyTestAufgaben" rel="self" title="MyTestAufgaben" /> <entry m:etag="W/"6""> <id>http://SharePoint2013/myTest/_vti_bin/listdata.svc/MyTestAufgaben(2)</id> <title type="text">MyTask</title> <updated>2014-04-28T14:54:43+02:00</updated> <author> <name /> </author> <link href="MyTestAufgaben(2)" rel="edit" title="MyTestAufgabenItem" /> <category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" term="Microsoft.SharePoint.DataService.MyTestAufgabenItem" /> <content type="application/xml"> <m:properties> <d:ID m:type="Edm.Int32">2</d:ID> <d:Vorgangsname>MyTask</d:Vorgangsname> <d:Anfangsdatum m:type="Edm.DateTime">2014-04-11T00:00:00</d:Anfangsdatum> <d:Fälligkeitsdatum m:type="Edm.DateTime">2014-04-29T00:00:00</d:Fälligkeitsdatum> </m:properties> </content> </entry> <entry m:etag="W/"5""> <id>http://SharePoint2013/myTest/_vti_bin/listdata.svc/MyTestAufgaben(3)</id> <title type="text">PortalVisions 2014 - Infrastruktur</title> <updated>2014-04-25T17:29:00+02:00</updated> <author> <name /> </author> <link href="MyTestAufgaben(3)" rel="edit" title="MyTestAufgabenItem" /> <category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" term="Microsoft.SharePoint.DataService.MyTestAufgabenItem" /> <content type="application/xml"> <m:properties> <d:ID m:type="Edm.Int32">3</d:ID> <d:Vorgangsname>PortalVisions 2014 - Infrastruktur</d:Vorgangsname> <d:Anfangsdatum m:type="Edm.DateTime">2014-04-23T00:00:00</d:Anfangsdatum> <d:Fälligkeitsdatum m:type="Edm.DateTime">2014-04-28T00:00:00</d:Fälligkeitsdatum> </m:properties> </content> </entry> </feed> |
<systemProperty name = "de.uplanet.lucy.server.odata.consumer.ssl.allowSelfSignedCerts.<SERVICE_GUID>" value="true"/> |
<?xml version="1.0" encoding="UTF-8"?> <scripting xmlns="urn:schemas-unitedplanet-de:lucy:server:scripting" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <scriptable name="de.uplanet.lucy.server.odata.consumer.cfg" type="package" /> <scriptable name="de.uplanet.lucy.server.odata.consumer.jersey" type="package" /> <scriptable name="de.uplanet.lucy.server.odata.consumer.sharepoint" type="package" /> <scriptable name="org.odata4j.core" type="package" /> </scripting> |
import de.uplanet.lucy.server.odata.consumer.cfg.ODataConsumerRegistry import de.uplanet.lucy.server.odata.consumer.jersey.* import de.uplanet.lucy.server.odata.consumer.sharepoint import org.odata4j.core.* // SharePoint configuration def l_cfg = ODataConsumerRegistry.getInstance().getConsumerConfiguration('4F9C5FCE6D0160451C336C4E8FDC9C6E7362B00D') //l_cfgGuid // SharePoint service class def l_sharePointService = SharePointService.getInstance() // Search in SharePoint (Result is a JSON String) def l_result = l_sharePointService.search(l_cfg, '86BDB920D3B8A7E8AA20F42F3F3459DE1E0EDCF3', //serviceGuid, '7312F993D0DA4CECCA9AE5A9D865BE142DE413EA', //userGuid 'Suchausdruck') // OData Consumer Client for OData Requests: def l_strDgGuid = '...' //DG GUID of the SharePoint data group def l_strUserGuid = '...' // Intrexx User GUID with static SP login def l_odataConsumer = l_sharePointService.getConsumer(l_strDgGuid, l_strUserGuid) //Jersey Client for direct HTTP call ups within the user context def l_httpClient = ODataConsumerFactory.INSTANCE.createJerseyClient(l_cfg, '86BDB920D3B8A7E8AA20F42F3F3459DE1E0EDCF3', //serviceGuid '7312F993D0DA4CECCA9AE5A9D865BE142DE413EA') //userGuid |