Failure to search bookmarks through SOAP integration

I am unable to search for bookmark using the SOAP protocol integration.

I send the following request

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xpr=“http://videoos.net/2/XProtectCSServerCommand”>

soapenv:Header/

soapenv:Body

xpr:BookmarkSearchTime

 <xpr:token>TOKEN#ca058345-468f-4743-960e-2dfd13d1ddca#srv01milpdoeira//ServerConnector#</xpr:token>

 <xpr:time>2020-01-20T16:30:00Z</xpr:time>

 <!--Optional:-->

 <xpr:timeLimit>

  <xpr:MicroSeconds>3600000000</xpr:MicroSeconds>

 </xpr:timeLimit>

 <xpr:countLimit>10</xpr:countLimit>

</xpr:BookmarkSearchTime>

</soapenv:Body>

</soapenv:Envelope>

and I always get the error: Server was unable to process request. —> Invalid name character in ‘FaultException`1’. [I can assure the token is valid]

I can retrieve the bookmark if I have its Guid using bookmark get method

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xpr=“http://videoos.net/2/XProtectCSServerCommand”>

soapenv:Header/

soapenv:Body

xpr:BookmarkGet

 <!--Optional:-->

 <xpr:token>TOKEN#ca058345-468f-4743-960e-2dfd13d1ddca#srv01milpdoeira//ServerConnector#</xpr:token>

 <xpr:bookmarkId>d7354027-a82c-4d8a-ba5c-c92740556519</xpr:bookmarkId>

</xpr:BookmarkGet>

</soapenv:Body>

</soapenv:Envelope>

<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>

soap:Body

 <BookmarkGetResult>

  <Id>d7354027-a82c-4d8a-ba5c-c92740556519</Id>

  <DeviceId>338f3bae-59ab-4ff5-baba-d0ae39317cce</DeviceId>

  <Reference>reference</Reference>

  <Header>CHECKIN</Header>

  <Description>Timestamp:2020-01-20T15:35:00ZCustomer:+351938045374;CustomerGuid:6b24d4ef-2c5d-4634-bde2-7251119f7a26;Gate:01</Description>

  <User>SRV01MILPDOEIRA\\OSPDNOVA</User>

  <TimeBegin>2020-01-20T16:33:00Z</TimeBegin>

  <TimeTrigged>2020-01-20T16:33:00Z</TimeTrigged>

  <TimeEnd>2020-01-20T16:33:10Z</TimeEnd>

 </BookmarkGetResult>

</soap:Body>

</soap:Envelope>

Can you help me check what I am doing incorrectly?

Best regards,

Rui Tomás

We investigated this and it turns out that the server does not handle properly that the deviceTypes parameter is not set. You need to specify which device type(s) you want to search for.

We will also improve the server, but that will not be included until 2020 R2 release.

Thank you the response. I was able to fix it.

To work, it is also necessary to add a camera Guid and eliminate the user section.

This is an example

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xpr=“http://videoos.net/2/XProtectCSServerCommand”>

soapenv:Header/

soapenv:Body

xpr:BookmarkSearchTime

 <xpr:token>TOKEN#68924869-5941-4b39-affa-a7a810d2ec5f#srv01milpdoeira//ServerConnector#</xpr:token>

 <xpr:time>2020-01-08T16:50:00Z</xpr:time>

 <!--Optional:-->

 <xpr:timeLimit>

  <xpr:MicroSeconds>10000000000</xpr:MicroSeconds>

 </xpr:timeLimit>

 <xpr:countLimit>1</xpr:countLimit>

 <!--Optional:-->

 <xpr:deviceTypes>

  <!--Zero or more repetitions:-->

  <xpr:MediaDeviceType>Camera</xpr:MediaDeviceType>

 </xpr:deviceTypes>

 <!--Optional:-->

 <xpr:optDeviceIds>

  <!--Zero or more repetitions:-->

  <xpr:guid>338f3bae-59ab-4ff5-baba-d0ae39317cce</xpr:guid>

 </xpr:optDeviceIds>

 <!--Optional:-->

 <xpr:optSearchStr></xpr:optSearchStr>

</xpr:BookmarkSearchTime>

</soapenv:Body>

</soapenv:Envelope>