[OpenSIPS-Users] How to configure Soap-Simple-Proxy and SoapClient?

Iñaki Baz Castillo ibc at aliax.net
Wed Dec 2 13:51:12 CET 2009

El Miércoles, 2 de Diciembre de 2009, Adrian Georgescu escribió:
> An example for PHP is here:
> http://openxcap.org/wiki/SoapSimpleProxy

What is "watchers" XCAP auid? Where is it defined?
Is it a custom XCAP application which reads the content of OpenSIPS
'watchers' table to generate a XML document?

I've just seen it in RFC 4825 (XCAP) pag 22 as a pure example:

   As an example, consider the following XML document:

   <?xml version="1.0"?>
   <watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo"
                version="0" state="full">
     <watcher-list resource="sip:professor at example.net"
       <watcher status="active"
                event="approved">sip:userA at example.net</watcher>
       <watcher status="pending"
                display-name="Mr. Subscriber"
                event="subscribe">sip:userB at example.org</watcher>

                      Figure 3: Example XML Document

   Assuming that the default document namespace for this application
   usage is "urn:ietf:params:xml:ns:watcherinfo"

    function &getWatchers($sipId, $password)
        // sipId is a ComplexType SipId,
        // refer to wsdl for more info
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:SoapSIMPLEProxy}SipId', $sipId);
        $result = $this->call('getWatchers',
                              $v = array('sipId' => $sipId, 'password' => $password),
                              array('namespace' => 'urn:AGProjects:SoapSIMPLEProxy:Presence',
                                    'soapaction' => '',
                                    'style' => 'rpc',
                                    'use' => 'encoded'));
        return $result;

> --
> Adrian
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

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

More information about the Users mailing list