OPENXCAP MACHINE IP : 192.168.176.143 (server) EYEBEAM RUNNING IP: 192.168.176.35 (client) PYHTON SCRIPT FROM IP: 10.16.17.77 (desktop) ********* OPENXCAP SERVER is STARTED AS FOLLOWS ************* Server46:/home/nthattil# openxcap --no-fork Starting Open XCAP 0.9.9 /usr/lib/python2.5/site-packages/twisted/enterprise/util.py:19: DeprecationWarning: twisted.enterprise.util is deprecated since Twisted 8.0.0. category=DeprecationWarning) Supported Root URIs: http://192.168.176.143/ Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist Trusted peers: 192.168.176.0/24, 127.0.0.1, 10.16.17.77 twisted.web2.channel.http.HTTPFactory starting on 80 ************************************************************* ********* The REQUEST FROM THE EYEBEAM CLIENT(version 1.5.10.2 build 33793) IS ******** EyeBeam Tries to retreave the resource lists using GET method first. Request Method: GET Request URI: /xcap-root@192.168.176.150/pres-rules/users/user1/presrules Content Type: application/pres-rules+xml Response Code: 404 Request Method: GET Request URI: /xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml Content Type: application/pres-rules+xml Response Code: 404 Request Method: PUT Request URI: /xcap-root@192.168.176.150/pres-rules/users/user1/presrules Content Type: application/pres-rules+xml Response Code: 404 Request Method: PUT Request URI: /xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml Content Type: application/pres-rules+xml Response Code: 404 *************************************************************************************** ************** The Log from the OPENXCAP server is as follows ************************* /**Error Log for the First GET Method**/ Invalid Document Selector xcap-root@192.168.176.150/pres-rules/users/user1/presrules (the Document Selector context must be 'users' or 'global': 'pres-rules') /**Error Log for the second GET Method**/ Invalid Document Selector xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml (the Document Selector context must be 'users' or 'global': 'resource-lists') /**Error Log for the First PUT method**/ Invalid Document Selector xcap-root@192.168.176.150/pres-rules/users/user1/presrules (the Document Selector context must be 'users' or 'global': 'pres-rules') /**Error Log for the Second PUT method**/ Invalid Document Selector xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml (the Document Selector context must be 'users' or 'global': 'resource-lists') *************************************************************************************** /** From the Above Logs, I understood that XCAP is expecting either 'users' or 'global' instead of 'resource-lists' **/ ************* Using Python Scripts ********************** /**I tried with the Python scripts to access the XCAP server, from the same Machine **/ /**I took the Python Script from location. http://www.iptel.org/~vku/presence_handbook/ar01s04.html **/ nthattil@nthattil-desktop:~/Desktop/OPENXCAP/testing$ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import httplib, urllib >>> machine = "192.168.176.143" >>> uri = "/xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml" >>> headers = {"Content-Type": "application/resource-lists+xml"} >>> bf = file("list.xml", "r") >>> body = bf.read(65536); >>> conn = httplib.HTTPConnection(machine) >>> conn.request("PUT", uri, body, headers) >>> response = conn.getresponse() >>> print "Storing resource-lists document: ", response.status, response.reason Storing resource-lists document: 404 Not Found >>> OPENXCAP Error: Invalid Document Selector xcap-root@192.168.176.150/resource-lists/users/user1/resource-list.xml (the Document Selector context must be 'users' or 'global': 'resource-lists') >>> uri = "/xcap-root@192.168.176.150/users/smith/resource-list.xml" >>> headers = {"Content-Type": "application/resource-lists+xml"} >>> bf = file("list.xml", "r") >>> body = bf.read(65536); >>> conn = httplib.HTTPConnection(machine) >>> conn.request("PUT", uri, body, headers) >>> response = conn.getresponse() >>> print "Storing resource-lists document: ", response.status, response.reason Storing resource-lists document: 404 Not Found >>> >>> /**This time NO ERROR-LOG FROM OPENXCAP**/ *********************************************************