SOAP Complex Type - attributes

I am trying to add the username and password to a user asset I am creating, and I need to set the AttributeInfo using complex types. Is this correct?

    testtest0000


I am getting this soap error:

    SOAP SERVER ERROR: Unable to create a User without a username and password [CORE0084]. Error Number:512. Error File:/home/websites/mysource_matrix/core/include/locale_manager.inc. Error Line:547


Have I crafted the XML for complex types incorrectly?

Arg, asked too soon and have figured it out:

    usernametest
    passwordtest0000