ECGrid Forums  

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

ECGridOS Developer Development related posts.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2010, 02:54 PM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default Access required for MailboxList

What is the required access for MailboxList?

My request:
Code:
<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
  <env:Header />
  <env:Body>
    <ecg:MailboxList xmlns:ecg="http://ecgridos.net/">
      <ecg:SessionID>5a8c82c6-3045-4613-a60a-6f39e26e40d4</ecg:SessionID>
      <ecg:Name></ecg:Name>
    </ecg:MailboxList>
  </env:Body>
</env:Envelope>
and the response:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <soap:Fault>
      <soap:Code>
        <soap:Value>soap:Sender</soap:Value>
      </soap:Code>
      <soap:Reason>
        <soap:Text xml:lang="en">System.Web.Services.Protocols.SoapException: 2
   at api._SystemError(RetCode ErrCode, String ErrItem, String ErrMessage)
   at api._SessionEventEnd()
   at api.MailboxList(String SessionID, String Name)</soap:Text>
      </soap:Reason>
      <soap:Node>https://ecgridos.net/v2.1/prod/ecgridosv0201.asmx</soap:Node>
      <detail>
        <ErrorInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <ErrorCode>2</ErrorCode>
          <ErrorString>Access Denied</ErrorString>
          <ErrorItem>NetworkID</ErrorItem>
          <ErrorMessage>Only authorized for NetworkID=99</ErrorMessage>
        </ErrorInfo>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
Reply With Quote
  #2  
Old 03-29-2010, 05:00 AM
MarcNelson MarcNelson is offline
New Member
 
Join Date: Mar 2010
Posts: 10
Default

You need to be logged in and have a valid session to be able to do a mailbox list. Your user must also be linked to the mailbox that you are trying to do a listing for. I notice that this is on the development network (ID=99), do you have a mailbox assigned to your user?

Last edited by MarcNelson; 03-29-2010 at 05:02 AM.
Reply With Quote
  #3  
Old 03-29-2010, 08:29 AM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default

Quote:
Originally Posted by MarcNelson View Post
You need to be logged in and have a valid session to be able to do a mailbox list. Your user must also be linked to the mailbox that you are trying to do a listing for. I notice that this is on the development network (ID=99), do you have a mailbox assigned to your user?
Check and check. As you can see from the SOAP request in the original post I passed a session ID which was valid at that time. Also, when I perform a WhoAmI I can see that there is a MailboxID in the returned data, however the MailboxList function just returns access denied (see the SOAP response in the original post).
Reply With Quote
  #4  
Old 03-29-2010, 12:26 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

Currently, your user is a Mailbox Manager on th developer network, so you do not have the rights to do a MailboxList.

Since your development has reached this level, I will set you up with a full dev network to play with later today. This will include NetworkAdmin rights.

-=tg=-
Reply With Quote
  #5  
Old 03-29-2010, 12:45 PM
elDub elDub is offline
New Member
 
Join Date: Mar 2010
Posts: 16
Default

Thanks Todd. I was not sure if I was trying to do something out of sequence or what. Looking further into the API I do not see a method to change mailboxes (as a user action, not a setting or configuration), so perhaps I should have deduced that only a "network admin" would use such a function.

Do you have any outlines of common sequences of calls for scenarios such as "A day in the life of a mailbox user" or "A day in the life of a network admin"?
Reply With Quote
  #6  
Old 03-29-2010, 07:26 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

If you go through the API calls, there are many with an Ex suffix (e.g. MailboxList() and MailboxListEx()). The Ex APIs allow the NetworkID and MailboxID to be set, while the ones without the Ex default to the logged in users's NetworkID/Mailbox.

Your request for "a day in the life" examples are good.

In the meantime, you can check out the sample code.

-=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 08:47 PM.


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