Announcement

Collapse
No announcement yet.

Question about the SOAP-Interface

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about the SOAP-Interface

    Hi all,

    at the moment I'm playing around with the Soap-interface from OX. I have a php Script which should change for example the users display_name.

    When I want to change the display_name without changing the users password, that isn't possible. Is it right, that I can't change a users attribute without changing the password of that user? I think that _must_ be possible. (The CLT's can do that)

    Notes:

    If I send a UserObject with an empty password-attribute the OX says:
    Field "password" is a mandatory field and can't be set to null.
    If I send a UserObject without the password-attribute the OX says:
    Exception occurred while trying to invoke service method change
    [...]
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor866.invoke(Unkn own Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(RPCUtil.java:194)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:102)
    ... 17 more
    Caused by: java.lang.NullPointerException
    at com.openexchange.admin.rmi.impl.OXUser.checkChange UserData(OXUser.java:1120)
    at com.openexchange.admin.rmi.impl.OXUser.change(OXUs er.java:188)
    at sun.reflect.GeneratedMethodAccessor245.invoke(Unkn own Source)
    [...]
    But if I send a UserObject with a new password, the attributes I wanted to change are chagned, but the password is also change, which I didn't want.

    Can somebody give me a hint?

    Bye,
    moah

  • #2
    Hi all,

    nobody scripts against the SOAP-Interface?

    I have another problem with the Groupmanagement.

    In the SOAP-Example from the CVS is a example-script "changegroup". In this Script are the following lines:
    Code:
    $group = new Group();
    [...]
    
    $group->members = 2;
    
    $result = getGroupClient($SOAPHOST)->create(getContextObject($CONTEXT_ID),$group, getCredentialsObject($CONTEXT_ADMIN,$CONTEXT_ADMIN_PASS));
    I've changed this example to:
    Code:
    $group = new Group();
    [...]
    
    $group->members = array();
    $group->members[] = 2;
    $group->members[] = 4;
    
    $result = getGroupClient($SOAPHOST)->create(getContextObject($CONTEXT_ID),$group, getCredentialsObject($CONTEXT_ADMIN,$CONTEXT_ADMIN_PASS));
    These changes end in this exception:
    ./changegroup
    Exception occurred while trying to invoke service method create
    Any hint

    Bye
    moah

    Comment

    Working...
    X