Sven,   Will any of this SOAP interface application that you have developed
be made available to the Open Source project?  I suspect there are others
that could benefit from a resource such as this.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George Niculae
Sent: Sunday, July 01, 2012 1:59 PM
To: Discussion list for users of sipXecs software
Subject: Re: [sipx-users] How to edit users using SOAP

On Sun, Jul 1, 2012 at 11:52 PM, Sven Evensen <[email protected]>
wrote:
> Our application is adding and deleting users using SOAP just fine, But 
> I want to edit name and sipPassword and I just cannot figure out how. 
> I aasume ManagerUser is to be used somehow.
>
> Any tips?
>

Use ManageUser same way you use it for deleting user but with edit operation
- you can pass sipPassword and userName/lastName/firstName with an User
object. Check sipxconfig.wsdl,
      <xsd:element name="ManageUser">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="search" type="tns:UserSearch"
minOccurs="1" maxOccurs="1" />
            <xsd:element name="edit" type="tns:Property"
maxOccurs="unbounded" />
            <xsd:element name="deleteUser" type="xsd:boolean"
nillable="true" minOccurs="0" maxOccurs="1" />
            <xsd:element name="addGroup" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="1" />
            <xsd:element name="removeGroup" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="1" />
            <xsd:element name="updateBranch" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="1" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

and User type


<xsd:complexType name="User">
        <xsd:sequence>
          <xsd:element name="userName" type="xsd:string" minOccurs="1"
maxOccurs="1" />
          <xsd:element name="pintoken" type="xsd:string"
nillable="true" maxOccurs="1" />
          <xsd:element name="lastName" type="xsd:string"
nillable="true" maxOccurs="1" />
          <xsd:element name="firstName" type="xsd:string"
nillable="true" maxOccurs="1" />
          <xsd:element name="sipPassword" type="xsd:string"
nillable="true" maxOccurs="1" />
          <xsd:element name="aliases" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="emailAddress" type="xsd:string"
nillable="true" maxOccurs="1" />
          <xsd:element name="groups" type="xsd:string" nillable="true"
minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="permissions" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="branchName" type="xsd:string"
nillable="true" maxOccurs="1" />
        </xsd:sequence>
      </xsd:complexType>


George
_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users/

_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to