UserCreateToXml

Creates a new user returning command's result in Xml format

public XmlDocument UserCreateToXml(bool <byHttps>, string <userName>, string <password>, UserCreateParameters <userCreateParameters>, ref char <messageType>, ref string <message>)

Parameters:

bool <byHttps> Set to true if you want to user https protocol otherwise, if you want to use http, set it to false
string <userName> A string containing the username assigned from MyWakes
string <password> A string containing the password for the MyWakes user
UserCreateParameters <userCreateParameters> A UserCreateParameters object containing command's specific parameters
ref char <messageType> A string containing output parameter that will return the type of message returned in <message> field: I=information, W=warning, E=error
ref string <message> A string containing output parameter with the message content

UserCreateParameters

string <Email> The e-mail address of the new user
uint <Emailconfirmed> If set to 1 the server will not send a confirmation mail. Default is 0.
string <Securityquestion> Question that will be asked in case of password reset
string <Securityanswer> Answer that will be asked in case of password reset
string <IMEI> Device's IMEI
string <Consumer> If set the server will create a new consumer with this call sign linking it with the just created user.

Returned Type: XmlDocument

Returns an XML Document with the following structure:

<?xml version="1.0" encoding="utf-8" ?> 
<furesult>
	<message><![CDATA[ OK ]]></message>
	<creationresult>0</creationresult>
	<creationmessage>The user account was successfully created!</creationmessage>
</furesult>

 

Where

  • <message> contains OK or Error description
  • <creationresult> if the command's result is OK this tag contains:
    • 0 (zero) user created correctly
    • 1 (one) user not created. User already exits.
    • 2 (two) user not created. Email address already exits.
    • 3 (three) user not created. Error in email address.
    • 4 (four) user not created. Security question error.
    • 5 (five) user not created. Security answer error.
    • 6 (six) user not created. Password error: it must be at least 7 (seven) character long.
    • 7 (seven) user not created. Unknown error.
  • <creationmessage> command's execution description
Terms Of Use | Privacy Statement | Company info
  • © Cedac Sistemi srl
  • Head office: Via Toscana, 3 40035 Castiglione dei Pepoli (Italy) Tel.: +39 0534-93811 Fax: +39 0534-93899
  • Branch office: Via del Lavoro, 47 40033 Casalecchio di Reno (Italy)
  • Branch office: Via Parini, 1 40033 Casalecchio di Reno (Italy)
  • Share capital Euro 26,000.00 - Company Register of Bologna / VAT no / fiscal code 01695261204