Hi,
We are wanting to make use of search services of Content Server Webservices. What WSDL needs to be imported so as to consume the web services?
We are trying to use Search Service of les-services using WSDL http://localhost:8080/les-services/services/SearchService?wsdl.
But for the Search method we are unable to successfully run the Soap Request.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:SearchServices.service.livelink.opentext.com">
<soapenv:Header>
<urn:OTAuthentication>
<!--Optional:-->
<urn:AuthenticationToken></urn:AuthenticationToken>
</urn:OTAuthentication>
</soapenv:Header>
<soapenv:Body>
<urn1:Search>
<urn1:queries>
<urn1:DataCollectionSpec></urn1:DataCollectionSpec>
<urn1:FirstResultToRetrieve>1</urn1:FirstResultToRetrieve>
<urn1:NumResultsToRetrieve>10</urn1:NumResultsToRetrieve>
<urn1:QueryLanguage>Livelink Search API V1</urn1:QueryLanguage>
<urn1:ResultOrderSpec>???</urn1:ResultOrderSpec>
<urn1:ResultSetSpec>???</urn1:ResultSetSpec>
<!--Zero or more repetitions:-->
<urn1:ResultTransformationSpec>???</urn1:ResultTransformationSpec>
</urn1:queries>
</urn1:Search>
</soapenv:Body>
</soapenv:Envelope>
Need to know what parameters to put in the ??? marked tags.
Search Webservice WSDL Posted byangad_s01@infosys.com (Singh, Angad)On 03/17/2015 09:06 AM We are trying to use Search Service of les-services using WSDL http://localhost:8080/les-services/services/SearchService?wsdl.But for the Search method we are unable to successfully run the Soap Request.<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:SearchServices.service.livelink.opentext.com"> <soapenv:Header> <urn:OTAuthentication> <!--Optional:--> <urn:AuthenticationToken></urn:AuthenticationToken> </urn:OTAuthentication> </soapenv:Header> <soapenv:Body> <urn1:Search> <!--Optional:--> <urn1:queries> <!--Optional:--> <urn1:DataCollectionSpec></urn1:DataCollectionSpec> <urn1:FirstResultToRetrieve>1</urn1:FirstResultToRetrieve> <urn1:NumResultsToRetrieve>10</urn1:NumResultsToRetrieve> <!--Optional:--> <urn1:QueryLanguage>Livelink Search API V1</urn1:QueryLanguage> <!--Optional:--> <urn1:ResultOrderSpec>???</urn1:ResultOrderSpec> <!--Optional:--> <urn1:ResultSetSpec>???</urn1:ResultSetSpec> <!--Zero or more repetitions:--> <urn1:ResultTransformationSpec>???</urn1:ResultTransformationSpec> </urn1:queries> </urn1:Search> </soapenv:Body></soapenv:Envelope> Need to know what parameters to put in the ??? marked tags.[To post a comment, use the normal reply function]Topic:Search Webservice WSDLForum:Content Server Development ForumContent Server:Knowledge Center
Thank you so much for reverting. I am getting this same error with use of the following request-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:SearchServices.service.livelink.opentext.com"> <soapenv:Header> <urn:OTAuthentication> <!--Optional:--> <urn:AuthenticationToken>zdsxyWFaX83kHR6DjBbEiRI8ERCAvrE1m%2B4xtBV7dGo%3D</urn:AuthenticationToken> </urn:OTAuthentication> </soapenv:Header> <soapenv:Body> <urn1:Search> <!--Optional:--> <urn1:queries> <!--Optional:--> <urn1:DataCollectionSpec>"dataCollections[0]"</urn1:DataCollectionSpec> <urn1:FirstResultToRetrieve>1</urn1:FirstResultToRetrieve> <urn1:NumResultsToRetrieve>10</urn1:NumResultsToRetrieve> <!--Optional:--> <urn1:QueryLanguage>Livelink Search API V1</urn1:QueryLanguage> <!--Optional:--> <urn1:ResultOrderSpec>"sortByRegion=OTCreatedBy"</urn1:ResultOrderSpec> <!--Optional:--> <urn1:ResultSetSpec>"where1=" +"my document"</urn1:ResultSetSpec> <!--Zero or more repetitions:--> <urn1:ResultTransformationSpec>"OTDataID", "OTName"</urn1:ResultTransformationSpec> </urn1:queries>
</soapenv:Body></soapenv:Envelope>
This was the error again-
<faultstring>The Slice you specified is inaccessible.</faultstring>
How will the use of slice help in searching the whole repository?
I'm guessing "dataCollections[0]" is being passed as the literal value of the DataCollectionSpec. Try "LES Enterprise" instead, for the Enterprise slice.
Regards,
Steve
I tried with that as well I get the below mentioned error-
<faultstring>You have either not specified any search criterion at all, or one of your Livelink Query Language statements is incorrect. Edit the query by clicking an option in at least one list and/or correcting the statements that appear in the fields.</faultstring>
That error means that your request did not generate a defined search query. Try a ResultSetSpec value of where1=* to get started by searching for everything the slice you specify.
Re Search Webservice WSDL Posted byangad_s01@infosys.com (Singh, Angad)On 03/19/2015 01:32 AM I tried with that as well I get the below mentioned error-<faultstring>You have either not specified any search criterion at all, or one of your Livelink Query Language statements is incorrect. Edit the query by clicking an option in at least one list and/or correcting the statements that appear in the fields.</faultstring>[To post a comment, use the normal reply function]Topic:Search Webservice WSDLForum:Content Server Development ForumContent Server:Knowledge Center