Whe i want ti get the fisrt 500 Users witz Webservice with lookup i get no data on the Sesion Manager 10.1 In Our Session Manger 8.1 it works correkt
My SearchCriteri is
29
Operators:
Operators Description
Equals Refine the search criteria by using the equals operator.
Equals imply having the same value as another.
StartsWith Implies the value will preclude the same value as
another.
endsWith Implies the value will end with the same value as
another.
Contains Refine the search criteria by using the contains
operator. Contains implies including or comprising the
same value as another.
Restrictions:
Restrictions Description
And A Boolean operator that gives the value one only if all
the operands are one and otherwise has a value of zero.
Or A Boolean operator that gives the value one if at least
one operand (or input) has a value of one and otherwise
has a value of zero.
searchcriteria.xml – The following is a sample XML file to specify criteria to
retrieve a list of users
<?xml version="1.0" encoding="UTF-8"?>
<tns:management-webservice-criteria
xmlns:tns="http://www.avaya.com/mgmt-web-criteria/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.avaya.com/mgmt-web-criteria/
mgmt-web-criteria.xsd">
<criterialist>
<criteria>
<propertyname>startindex</propertyname>
<operator>equals</operator>
<value>0</value>
<restriction>and</restriction>
</criteria>
<criteria>
<propertyname>offsetindex</propertyname>
<operator>equals</operator>
<value>500</value>
<restriction>and</restriction>
</criteria>
</criterialist>
</tns:management-webservice-criteria>
and i Use C# HttpWebRequest
...
HttpWebRequest req = WebRequest.Create(strRequestUri) as HttpWebRequest;
req.Method = "GET";
req.ContentType = "application/x-www-form-urlencoded";
req.PreAuthenticate = true;
byte[] authorizationHeaderBytes = System.Text.Encoding.UTF8.GetBytes(username + ":" + password);
string authHeader = "Basic " + Convert.ToBase64String(authorizationHeaderBytes);
Logger.GetInstance().LogError("req authHeader " + authHeader );
req.Headers.Add("Authorization", authHeader);
Logger.GetInstance().LogError("Lookup get response for request " + req.ToString());
HttpWebResponse resp = req.GetResponse() as HttpWebResponse;
Logger.GetInstance().LogError("Lookup get response done");
if (resp == null){
Logger.GetInstance().LogError("Lookup get response is null");
}
Stream receiceStream = resp.GetResponseStream();
StreamReader reader = new StreamReader(receiceStream);
string receivedMsg = reader.ReadToEnd();
What is starnge when i Open the url of my Requet in Firefox it works then i get my Useers an on our Session Mananer 8,1 it works as well. I doont know wht is the Difference ii gues it is not the searh criteria
|