where is my category?

G

Guest

Hi All,

I am totally lost at this moment. I have been struggling to retrieve
"Category" from contact item from an Exchange public folder via webDAV for
days. Following is my query:

<a:searchrequest xmlns:a="DAV:">
<a:sql>
SELECT "a:href"
,"urn:schemas:contacts:blush:" as organization
,"urn:schemas:contacts:fileas" as fileAs
,"urn:schemas:contacts:cn" as cn
,"urn:schemas:contacts:telephoneNumber" as phone
,"urn:schemas:contacts:mobile" as cell
, "urn:schemas-microsoft-com:blush:ffice:blush:ffice#keywords" as category
FROM SCOPE('SHALLOW TRAVERSAL OF "$exchange_server/"')
WHERE "DAV:ishidden"=false AND "DAV:isfolder"=false
ORDER BY "urn:schemas:contacts:cn" ASC
</a:sql>
</a:searchrequest>

When I break down the xml for each item. they all look like below, with no
category info.

stdClass Object
(
[A_HREF] => Array
(
[0] => stdClass Object
(
[_text] =>
http://matrix/public/PM Contacts/Rona-Innes-155022051.EML
)

)

[A_PROPSTAT] => Array
(
[0] => stdClass Object
(
[A_STATUS] => Array
(
[0] => stdClass Object
(
[_text] => HTTP/1.1 200 OK
)

)

[A_PROP] => Array
(
[0] => stdClass Object
(
[ORGANIZATION] => Array
(
[0] => stdClass Object
(
[_text] => Rona-Innes
)

)

[FILEAS] => Array
(
[0] => stdClass Object
(
[_text] => Rona-Innes
)

)

[PHONE] => Array
(
[0] => stdClass Object
(
[_text] => (613) 741-6331
)

)

)

)

)

[1] => stdClass Object
(
[A_STATUS] => Array
(
[0] => stdClass Object
(
[_text] => HTTP/1.1 404 Resource Not Found
)

)

[A_PROP] => Array
(
[0] => stdClass Object
(
[D_HREF] => Array
(
[0] =>
)

[CN] => Array
(
[0] =>
)

[CELL] => Array
(
[0] =>
)

[CATEGORY] => Array
(
[0] =>
)

)

)

)

)

)


However when I run this query:
<a:propfind xmlns:a="DAV:">
<a:allprop/>
</a:propfind>
I can see everything about one contact including category. What have I
overlooked?

Thank in advance!

Benson
P.S. Environ: Windows Server 2003 with Exchange 2003 and IIS.
 
G

Guest

never mind, guys. First of all, I apologize for posting on the wrong forum.
Secondly, in case anyone cares, I found the problem. It was a stipud letter
case problem...

in the search query it should be
..
..
..
..
, "urn:schemas-microsoft-com:blush:ffice:blush:ffice#Keywords" as category
.. captial K
instead of lower case k
..
..
..

Yep, every once a while.....

Benson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top