On Fri, Oct 19, 2012 at 10:38 AM, George Niculae <[email protected]> wrote:
> On Fri, Oct 19, 2012 at 9:36 AM, Russell Fox <[email protected]> wrote:
>>
>>
>> I’m trying to get a list of phones (users too) using SOAP, but get no
>> records returned even though I use the exact serialnumber that I added the
>> record with.
>>
>
> Hm, I just double checked on a 4.4 machine using SoapUI and I cannot
> get response back either, I am looking into and will come back
>

Well it turned out it's only the new version of SoapUI that somehow
removed digest authentication. I tried the old one (3.5.1) and it
worked without issue, sample of request / response for querying phones
and users, could you check your requests to see if they match (also
added the headers used):

POST http://192.168.0.80/sipxconfig/services/PhoneService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 386
Authorization: Digest username="superadmin", realm="ezuce.ro",
nonce="MTM1MDkwNjg0MjcxNjo2NDMwYWI3MGUyNmI0OTdhOTZjYjAzZWJmYWU3YTk4Ng==",
uri="/sipxconfig/services/PhoneService",
response="42dba10a89763ddd20d50ee3f07fa332", qop=auth, nc=00000001,
cnonce="957142670103a1eca733431449be5579"
Host: 192.168.0.80
Cookie: $Version=0; JSESSIONID=2nq97gnbuqoe3; $Path=/sipxconfig

request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:con="http://www.sipfoundry.org/2007/08/21/ConfigService";>
   <soapenv:Header/>
   <soapenv:Body>
      <con:FindPhone>
         <search>
            <!--Optional:-->
            <bySerialNumber>0004f22dc547</bySerialNumber>
         </search>
      </con:FindPhone>
   </soapenv:Body>
</soapenv:Envelope>


response:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Body>
      <FindPhoneResponse
xmlns="http://www.sipfoundry.org/2007/08/21/ConfigService";>
         <phones xmlns="">
            <user>
               <serialNumber>0004f22dc547</serialNumber>
               <modelId>polycom335</modelId>
               <description>sadasdsa</description>
               <lines>
                  <userId>201</userId>
                  <uri>"Baba Bubu"&lt;sip:[email protected]></uri>
               </lines>
               <deviceVersion>polycom2.0</deviceVersion>
            </user>
         </phones>
      </FindPhoneResponse>
   </soapenv:Body>
</soapenv:Envelope>

for users:

request:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:con="http://www.sipfoundry.org/2007/08/21/ConfigService";>
   <soapenv:Header/>
   <soapenv:Body>
      <con:FindUser>
         <search>
            <!--Optional:-->
            <byUserName>superadmin</byUserName>
         </search>
      </con:FindUser>
   </soapenv:Body>
</soapenv:Envelope>

response:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <soapenv:Body>
      <FindUserResponse
xmlns="http://www.sipfoundry.org/2007/08/21/ConfigService";>
         <users xmlns="">
            <user>
               <userName>superadmin</userName>
               <pintoken>11111111</pintoken>
               <lastName xsi:nil="true"/>
               <firstName xsi:nil="true"/>
               <sipPassword>VtRohrXeV7g7</sipPassword>
               <emailAddress xsi:nil="true"/>
               <groups>administrators</groups>
               <permissions>FreeswitchVoicemailServer</permissions>
               <permissions>InternationalDialing</permissions>
               <permissions>LocalDialing</permissions>
               <permissions>LongDistanceDialing</permissions>
               <permissions>Mobile</permissions>
               <permissions>TollFree</permissions>
               <permissions>Voicemail</permissions>
               <permissions>music-on-hold</permissions>
               <permissions>personal-auto-attendant</permissions>
               <permissions>subscribe-to-presence</permissions>
               <permissions>superadmin</permissions>
               <branchName xsi:nil="true"/>
            </user>
         </users>
      </FindUserResponse>
   </soapenv:Body>
</soapenv:Envelope>
_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to