1
Webservices QueMailBoxMigration not working
Problem reported by Brent Kenreich - 9/15/2015 at 5:45 AM
Resolved
The webservices documentation is incomplete and therefore largely unusable without hours of trying possible combinations and variable types
 
For example,
For QueMailBoxMigration
 
 
How is the parameter string supposed to be formatted? Single or double quotes or none?
 
<string>IMPORTTYPE=exchange2007</string>
<string>IMPORTTYPE=‘exchange2007'</string>
<string>IMPORTTYPE="exchange2007"</string>
 
Are the USESLL AND DELETECURRENTMAILBOX boolean values supposed to “false” or 0?
 
Why does the result code always return "user does not exist"? Is it the destination user, or the source user?
  <QueueMailBoxMigrationResponse xmlns="h t t p://tempuri.org/">
      <QueueMailBoxMigrationResult>
        <Result>false</Result>
        <ResultCode>-20</ResultCode>
        <Message>User does not exist.</Message>
      </QueueMailBoxMigrationResult>
    </QueueMailBoxMigrationResponse>

3 Replies

Reply to Thread
0
Employee Replied
Employee Post
Brent,
 
If you go to http://yourserver.com/Services/ you will see all of the web services available.  Click on svcUserAdmin and navigate to QueueMailBoxMigration.  This provides the web service specification and definitions for each of the parameters.  In your particular case, USESLL and DELETECURRENTMAILBOX (which clears the destination mailbox, if it contains anything prior to the migration), require True or False values with no quotes.  The USERNAME and PASSWORD are for the source mailbox.  The IMPORTTYPE would be exchange2007orlater (again with no quotes).
 
I hope this helps!
0
CLEBER SAAD Replied
Hello,
I try with these configuration using webservices:

comandos(0) = "ACCOUNTTYPE=IMAP"
comandos(1) = "DELETECURRENTMAILBOX=false"
comandos(2) = "DESTINATION=email@domain.com"
comandos(3) = "IMPORTITEMS=email"
comandos(4) = "IMPORTTYPE=other"
comandos(5) = "PASSWORD=***"
comandos(6) = "PORT=143"
comandos(7) = "SERVERADDRESS=172.16.12.7"
comandos(8) = "USERNAME=sourceemail@domain.com"
comandos(9) = "USESSL=false"

The return always have:

Result = False
Message = Object reference not set to an instance of an object.
ResultCode = -20

Using the latest version of SM 14.2.5711

When I try to use the web interface after the START there is no action in the web page and in the Error_LOG have this error:

[CurrentUser: email@domain]
[9/19/2015 5:44:58 PM]
http://mail.sm08.inetweb.com.br/Main/frmAccountImport.aspx

System.Exception: Null exception (likely a 404 or something else produced by IIS)
Application Error

Does really works? Best Regards
0
CLEBER SAAD Replied
Solved the problem. ALL fields in parameters need to be sent. Because my account it's not Exchange the DOMAIN are not in the parameters list. When i try with domain= it's works.

Reply to Thread