« Back to Cisco Webdialer Questions

SOAP WSDL Device Name / ID

Combination View Flat View Tree View
Threads [ Previous | Next ]
I've written a soap client using the webdialer WSDL.  Dialing seems to be working fine but I could really use an example of how to retrieve the user's Device Name.  I'm thinking I can query that using the user credentials and then be able to populate the user profile for dialing (with out the need to manually enter the Device Name) - Is that Ture / False ?  And is there a good code example (I'm using Delphi but any other example will be fine).
 
Thanks in Advance...

getProfileSoap should be the request you want to use.  You can create a UCM Application User with 'Standard EM Authentication Proxy Rights' which can be used to query the profile of any UCM user.
 
Note the following is using the wd70.wsdl at https://<CCM_Server>/webdialer/wsdl/wd70.wsdl
 
Sample request:
 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:WD70">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:getProfileSoap soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <in0 xsi:type="urn:Credential">
            <userID xsi:type="xsd:string">webDialerProxyUser</userID>
            <password xsi:type="xsd:string">password</password>
         </in0>
         <in1 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">testUser</in1>
      </urn:getProfileSoap>
   </soapenv:Body>
</soapenv:Envelope>

 
and 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>
      <ns1:getProfileSoapResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:WD70">
         <getProfileSoapReturn href="#id0"/>
      </ns1:getProfileSoapResponse>
      <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:GetConfigResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:WD70">
         <description xsi:type="xsd:string">Success</description>
         <deviceInfoList soapenc:arrayType="ns3:WDDeviceInfo[1]" xsi:type="soapenc:Array" xmlns:ns3="urn:WebdialerSoap">
            <item href="#id1"/>
         </deviceInfoList>
         <responseCode href="#id2"/>
      </multiRef>
      <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">0</multiRef>
      <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:WDDeviceInfo" xmlns:ns4="urn:WebdialerSoap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
         <deviceName xsi:type="xsd:string">SEP00070EB9C4B4</deviceName>
         <lines soapenc:arrayType="xsd:string[2]" xsi:type="soapenc:Array">
            <item xsi:type="xsd:string">1000 ; no partition</item>
            <item xsi:type="xsd:string">2000 ; no partition</item>
         </lines>
      </multiRef>
   </soapenv:Body>
</soapenv:Envelope>

David,
 
Thank you for the quick reply.  Since this will be a 32bit GUI client running on a users workstation, can I just query the users profile using the users own credentials ?

Yes, that will work fine.