ECGrid Forums  

Go Back   ECGrid Forums > Electronic Commerce > ECGridOS > ECGridOS Developer

ECGridOS Developer Development related posts.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2010, 10:58 AM
ProjectDavid ProjectDavid is offline
New Member
 
Join Date: Aug 2010
Location: Freelance Contractor
Posts: 3
Default Managing Mailboxes

Hello.

I am trying to write code which will auto-create a mailbox for a system user if they cannot be found on the system. On our system each user will have an ANA. The logic is as follows:

Search ECGrid for the ANA. If found then return the mailbox ID.
If not found then do the following
1. create a new mailbox
2. assign the ANA to the mailbox as a trading partner object
3. assign a user account to the mailbox

Because this is not an atomic operation then I want to be able to roll it all back should any of the above steps fail. Typically the user account stage fails as ECGrid has lots of validation against a user object.

The problem is that when I try and use the SOAP call MailboxTerminate I get an authorisation error coming back at me:

<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>System.Web.Services.Protocols.SoapExc eption: 2 at api._SystemError(RetCode ErrCode, String ErrItem, String ErrMessage) at api._SessionEventEnd() at api.MailboxTerminate(String SessionID, Int32 MailboxID)</faultstring>
<faultactor>https://ecgridos.net/v2.2/prod/ECGridOS.asmx</faultactor>
<detail>
<ErrorInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<ErrorCode>2</ErrorCode>
<ErrorString>Access Denied</ErrorString>
<ErrorItem>Status</ErrorItem>
<ErrorMessage>Probable attempt to change Status on Terminated entry.</ErrorMessage>

</ErrorInfo>
</detail>
</soap:Fault>

The account I create the mailbox with has network level authority, so how can it be OK to create a mailbox but not delete it?

The error message "Probable attempt to change Status on Terminated entry" does not make sense because if I then search for the half-created account by ANA again it comes back as status = active.

Any advise would be most helpful.

Thankyou.

David.
Reply With Quote
  #2  
Old 09-13-2010, 03:39 PM
Todd Gould's Avatar
Todd Gould Todd Gould is offline
Loren Data Corp.
 
Join Date: May 2005
Location: Loren Data Corp.
Posts: 303
Send a message via Skype™ to Todd Gould
Default

David,

Sorry for the delay on this one.

Could you Private Message me or e-mail me a MailboxID and your User Login Name you are using so I can replicate this on my development system?

I'll get it fixed right up.

Thanks.

-=tg=-
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
ECGrid® is a registered service mark of Loren Data Corp.