[OpenSIPS-Users] [OpenXCAP] Does OpenXCAP support fetching elements from the document?

Iñaki Baz Castillo ibc at aliax.net
Mon Jul 20 01:24:18 CEST 2009


El Jueves, 16 de Julio de 2009, Iñaki Baz Castillo escribió:
> I'm trying to fetch an element of the XML document [*]. For example I
> send the following GET request:
>
> GET /xcap-root/pres-rules/users/user at domain/index/~~/cp:ruleset/cp:rule
>
> Theorically it should retrieve the first rule of the document.
> However OpenXCAP replies "500 Internal Server Error" and logs nothing
> (neither in access.log or error.log)
> Note that I've "log_stacktrace=any".
>
> Does OpenXCAP support it?

opss, it does support it :)

But I was doing a wrong query. The correct one is:

GET /xcap-root/pres-
rules/users/user at domain/index/~~/cp:ruleset/cp:rule?xmlns(cp=urn:ietf:params:xml:ns:common-
policy)

-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Users mailing list