Here is the capture from server,
## T 2013/09/05 12:06:22.298929 192.168.41.60:53983 -> 192.168.41.10:5060 [AP] GET /xcap-root/pidf-manipulation/users/sip:test@kamailio.com/perm-presenceHTTP/1.1^@ Host: kamailio.com^@ Keep-Alive: 115^@ Connection: keep-alive^@ TE: trailers^@ ^@ # T 2013/09/05 12:06:22.357104 192.168.41.10:5060 -> 192.168.41.60:53983 [AP] HTTP/1.1 200 OK^@ Via: SIP/2.0/TCP 192.168.41.60:53983^@ ETag: "sr-1377875323-9520-14"^@ Content-Type: application/pidf+xml^@ Server: kamailio (4.0.2 (i386/linux))^@ Content-Length: 683^@ ^@ <?xml version = "1.0" encoding = "UTF-8"?><presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:op="urn:oma:xml:prs:pidf:oma-pres" xmlns:opd="urn:oma:xml:pde:pidf:ext" xmlns:opd11="urn:oma:xml:pde:pidf:ext:1.1" xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10" xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr" xmlns:caps="urn:ietf:params:xml:ns:pidf:caps" xmlns:gml=" http://www.opengis.net/gml" xmlns:gs="http://www.opengis.net/pidflo/1.0" xmlns:lt="urn:ietf:params:xml:ns:location-type" entity = " sip:test@kamailio.com"><pdm:person id = "aa"></pdm:person></presence> ##
^@^@^@^@^@^@ # T 2013/09/05 12:06:22.389308 192.168.41.60:53985 -> 192.168.41.10:5060 [AP] PUT /xcap-root/pidf-manipulation/users/ sip:test@kamailio.com/perm-presence/~~/presence/pdm:person?xmlns(pdm=urn:ietf:params:xml:ns:pidf:data-model)HTTP/1.1^@ Host: kamailio.com^@ Keep-Alive: 115^@ Connection: TE, Keep-Alive^@ TE: trailers^@ Content-Length: 117^@ Content-Type: application/xcap-el+xml^@ ^@
## T 2013/09/05 12:06:22.389576 192.168.41.60:53985 -> 192.168.41.10:5060 [AP] <pdm:person id = "aa">op:overriding-willingnessop:basicclosed</op:basic></op:overriding-willingness></pdm:person> ## T 2013/09/05 12:06:22.403805 192.168.41.10:5060 -> 192.168.41.60:53985 [AP] HTTP/1.1 500 Server error^@ Via: SIP/2.0/TCP 192.168.41.60:53985^@ Server: kamailio (4.0.2 (i386/linux))^@ Content-Length: 0^@ ^@