Home

Results 1 to 10 of 10

Thread: Publishing Calendars to the Web (PHP SOAP Proxy)

Hybrid View

  1. #1
    user@domain.invalid NNTP User

    Publishing Calendars to the Web (PHP SOAP Proxy)

    Hello all,
    I'm not very experienced in setting up resources in groupwise, nor have
    I mastered the phpClient SOAP library, so bear with me :)

    What I would like to do, is set up a series of calendars in groupwise in
    some manner which would be editable by various users in our system via
    the groupwise client. Then, using the the SOAP API and PHP, I would
    like to grab events from these calendars for display in our internal
    web-portal.

    I'm mainly confused how these calendars should be created and then
    accessed via SOAP. These are my current thoughts:

    --------------
    1. Proxy access to separate calendars -
    As separate resources whereby I would proxy into each of these calendars
    through a common user via SOAP. Though my issue here resides in the
    fact that, though I have discovered how to login to a particular user
    and see their individual calendar events; I still have no idea how to
    proxy to another calendar through that current user...

    2. Shared calendars under a particular user -
    As shared calendars under a centralized account, so we would create a
    series of calendars under one user (or resource?). Then I could use
    SOAP to login to that user, and grab all the events I want from each of
    the calendars

    3. Another option? -

    --------------

    I'm wondering what the best organizational structure would be to
    create all these calendars, and then gain access to them via soap. If
    someone could point me in the right direction, I would be extremely
    greatful! :)

    Thanks,
    Brian

  2. #2
    Preston Stephenson NNTP User

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    You might want to check out the calendar publishing available
    in the Bonsai release. It might be more straight forward.
    Look at the administrator and client guides.

    http://www.novell.com/documentation/gwbonsai/

    Then, if you have more questions, post them here.

    Thanks.
    Preston

    >>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid> wrote:

    > Hello all,
    > I'm not very experienced in setting up resources in groupwise, nor have
    > I mastered the phpClient SOAP library, so bear with me :)
    >
    > What I would like to do, is set up a series of calendars in groupwise in
    > some manner which would be editable by various users in our system via
    > the groupwise client. Then, using the the SOAP API and PHP, I would
    > like to grab events from these calendars for display in our internal
    > web-portal.
    >
    > I'm mainly confused how these calendars should be created and then
    > accessed via SOAP. These are my current thoughts:
    >
    > --------------
    > 1. Proxy access to separate calendars -
    > As separate resources whereby I would proxy into each of these calendars
    > through a common user via SOAP. Though my issue here resides in the
    > fact that, though I have discovered how to login to a particular user
    > and see their individual calendar events; I still have no idea how to
    > proxy to another calendar through that current user...
    >
    > 2. Shared calendars under a particular user -
    > As shared calendars under a centralized account, so we would create a
    > series of calendars under one user (or resource?). Then I could use
    > SOAP to login to that user, and grab all the events I want from each of
    > the calendars
    >
    > 3. Another option? -
    >
    > --------------
    >
    > I'm wondering what the best organizational structure would be to
    > create all these calendars, and then gain access to them via soap. If
    > someone could point me in the right direction, I would be extremely
    > greatful! :)
    >
    > Thanks,
    > Brian


  3. #3

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    Preston,
    Thanks - Bonsai looks great, though I don't think it's exactly what I'm
    looking for in this particular instance. I did a little more
    investigating and it looks like I'm going to need to proxy from a
    centralized user account into other accounts.

    I've checked the SOAP docs and it looks like I'll need to use the
    loginRequest function to do this... though in GroupwiseService.php (in
    the phpClient library), loginRequest() doesn't appear to support passing
    across the proxy component during the initial login. Could someone give
    me a heads up on how (codewise) I can accomplish this?

    In trying to figure this out I've found that I could modify the
    loginRequest function. The original function looks like this (sorry
    about the formatting):

    ------------------
    public function loginRequest(loginRequest $loginReq) {
    $s = new SoapClient( NULL, array(
    "location" => $this->location,
    "uri" => "http://schemas.novell.com/2005/01/GroupWise/methods",
    "trace" => true ) );
    $pt = array(
    "username" => $loginReq->auth->username,
    "password" => $loginReq->auth->password );

    $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    "language" );

    $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,
    "version" );
    $app = new Soapvar( $loginReq->application, XSD_STRING, NULL, NULL,
    "application" );
    return $s->__soapCall( 'loginRequest', array( $login, $lang, $ver,
    $app));
    }
    ------------------

    By removing $pt and changing the $login line from this:

    $pt = array(
    "username" => $loginReq->auth->username,
    "password" => $loginReq->auth->password );

    $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    "language" );

    To this:

    $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    "language" );

    I've found I can proxy in just fine like:

    $proxy = new Proxy();
    $proxy->username = 'myusername';
    $proxy->password = 'mypassword';
    $proxy->proxy = 'account-to-proxy-into';

    $lr = new loginRequest();
    $lr->auth = $proxy;
    $lr->language = "en";
    $lr->version = "1.2";
    $lr->application = "phpClient";

    $lres = $gwservice->loginRequest($lr);

    ---------------

    Obviously I don't want to change the core library code. Is there
    another function that already accomplishes this? I'll apologize ahead
    of time because I'm probably missing something completely obvious here :)

    Thanks all!
    Brian



    Preston Stephenson wrote:
    > You might want to check out the calendar publishing available
    > in the Bonsai release. It might be more straight forward.
    > Look at the administrator and client guides.
    >
    > http://www.novell.com/documentation/gwbonsai/
    >
    > Then, if you have more questions, post them here.
    >
    > Thanks.
    > Preston
    >
    >>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid> wrote:

    >> Hello all,
    >> I'm not very experienced in setting up resources in groupwise, nor have
    >> I mastered the phpClient SOAP library, so bear with me :)
    >>
    >> What I would like to do, is set up a series of calendars in groupwise in
    >> some manner which would be editable by various users in our system via
    >> the groupwise client. Then, using the the SOAP API and PHP, I would
    >> like to grab events from these calendars for display in our internal
    >> web-portal.
    >>
    >> I'm mainly confused how these calendars should be created and then
    >> accessed via SOAP. These are my current thoughts:
    >>
    >> --------------
    >> 1. Proxy access to separate calendars -
    >> As separate resources whereby I would proxy into each of these calendars
    >> through a common user via SOAP. Though my issue here resides in the
    >> fact that, though I have discovered how to login to a particular user
    >> and see their individual calendar events; I still have no idea how to
    >> proxy to another calendar through that current user...
    >>
    >> 2. Shared calendars under a particular user -
    >> As shared calendars under a centralized account, so we would create a
    >> series of calendars under one user (or resource?). Then I could use
    >> SOAP to login to that user, and grab all the events I want from each of
    >> the calendars
    >>
    >> 3. Another option? -
    >>
    >> --------------
    >>
    >> I'm wondering what the best organizational structure would be to
    >> create all these calendars, and then gain access to them via soap. If
    >> someone could point me in the right direction, I would be extremely
    >> greatful! :)
    >>
    >> Thanks,
    >> Brian


  4. #4
    Preston Stephenson NNTP User

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    You would be better off using a trusted application key.
    You can then log in as a user without knowing their password.
    With proxy, you have to be given rights to proxy and proxy
    doesn't work cross post office.
    For example, if UserA is on post office 1 and UserB is on
    post office 2, UserA would not be able to proxy to UserB
    using SOAP.

    That said, I think you would have to modify the core library.

    Preston

    >>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>

    wrote:
    > Preston,
    > Thanks - Bonsai looks great, though I don't think it's exactly what I'm
    > looking for in this particular instance. I did a little more
    > investigating and it looks like I'm going to need to proxy from a
    > centralized user account into other accounts.
    >
    > I've checked the SOAP docs and it looks like I'll need to use the
    > loginRequest function to do this... though in GroupwiseService.php (in
    > the phpClient library), loginRequest() doesn't appear to support passing
    > across the proxy component during the initial login. Could someone give
    > me a heads up on how (codewise) I can accomplish this?
    >
    > In trying to figure this out I've found that I could modify the
    > loginRequest function. The original function looks like this (sorry
    > about the formatting):
    >
    > ------------------
    > public function loginRequest(loginRequest $loginReq) {
    > $s = new SoapClient( NULL, array(
    > "location" => $this->location,
    > "uri" =>

    "http://schemas.novell.com/2005/01/GroupWise/methods",
    > "trace" => true ) );
    > $pt = array(
    > "username" => $loginReq->auth->username,
    > "password" => $loginReq->auth->password );
    >
    > $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    > "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    > $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    > "language" );
    >
    > $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,
    > "version" );
    > $app = new Soapvar( $loginReq->application, XSD_STRING, NULL, NULL,
    > "application" );
    > return $s->__soapCall( 'loginRequest', array( $login, $lang, $ver,
    > $app));
    > }
    > ------------------
    >
    > By removing $pt and changing the $login line from this:
    >
    > $pt = array(
    > "username" => $loginReq->auth->username,
    > "password" => $loginReq->auth->password );
    >
    > $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    > "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    > $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    > "language" );
    >
    > To this:
    >
    > $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    > "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types", "auth"

    );
    > $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    > "language" );
    >
    > I've found I can proxy in just fine like:
    >
    > $proxy = new Proxy();
    > $proxy->username = 'myusername';
    > $proxy->password = 'mypassword';
    > $proxy->proxy = 'account-to-proxy-into';
    >
    > $lr = new loginRequest();
    > $lr->auth = $proxy;
    > $lr->language = "en";
    > $lr->version = "1.2";
    > $lr->application = "phpClient";
    >
    > $lres = $gwservice->loginRequest($lr);
    >
    > ---------------
    >
    > Obviously I don't want to change the core library code. Is there
    > another function that already accomplishes this? I'll apologize ahead
    > of time because I'm probably missing something completely obvious here :)
    >
    > Thanks all!
    > Brian
    >
    >
    >
    > Preston Stephenson wrote:
    >> You might want to check out the calendar publishing available
    >> in the Bonsai release. It might be more straight forward.
    >> Look at the administrator and client guides.
    >>
    >> http://www.novell.com/documentation/gwbonsai/
    >>
    >> Then, if you have more questions, post them here.
    >>
    >> Thanks.
    >> Preston
    >>
    >>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid> wrote:
    >>> Hello all,
    >>> I'm not very experienced in setting up resources in groupwise, nor have


    >>> I mastered the phpClient SOAP library, so bear with me :)
    >>>
    >>> What I would like to do, is set up a series of calendars in groupwise in


    >>> some manner which would be editable by various users in our system via
    >>> the groupwise client. Then, using the the SOAP API and PHP, I would
    >>> like to grab events from these calendars for display in our internal
    >>> web-portal.
    >>>
    >>> I'm mainly confused how these calendars should be created and then
    >>> accessed via SOAP. These are my current thoughts:
    >>>
    >>> --------------
    >>> 1. Proxy access to separate calendars -
    >>> As separate resources whereby I would proxy into each of these calendars


    >>> through a common user via SOAP. Though my issue here resides in the
    >>> fact that, though I have discovered how to login to a particular user
    >>> and see their individual calendar events; I still have no idea how to
    >>> proxy to another calendar through that current user...
    >>>
    >>> 2. Shared calendars under a particular user -
    >>> As shared calendars under a centralized account, so we would create a
    >>> series of calendars under one user (or resource?). Then I could use
    >>> SOAP to login to that user, and grab all the events I want from each of


    >>> the calendars
    >>>
    >>> 3. Another option? -
    >>>
    >>> --------------
    >>>
    >>> I'm wondering what the best organizational structure would be to
    >>> create all these calendars, and then gain access to them via soap. If
    >>> someone could point me in the right direction, I would be extremely
    >>> greatful! :)
    >>>
    >>> Thanks,
    >>> Brian


  5. #5

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    Thanks Preston, that sounds like the perfect solution. I'm trying to
    look into creating a trusted application key, but there aren't any
    definitive guides on doing this. Apparently I cannot do this through
    consoleone and must use something like 'GWArchrive' which I'm not
    familiar with?

    Preston Stephenson wrote:
    > You would be better off using a trusted application key.
    > You can then log in as a user without knowing their password.
    > With proxy, you have to be given rights to proxy and proxy
    > doesn't work cross post office.
    > For example, if UserA is on post office 1 and UserB is on
    > post office 2, UserA would not be able to proxy to UserB
    > using SOAP.
    >
    > That said, I think you would have to modify the core library.
    >
    > Preston
    >
    >>>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>

    > wrote:
    >> Preston,
    >> Thanks - Bonsai looks great, though I don't think it's exactly what I'm
    >> looking for in this particular instance. I did a little more
    >> investigating and it looks like I'm going to need to proxy from a
    >> centralized user account into other accounts.
    >>
    >> I've checked the SOAP docs and it looks like I'll need to use the
    >> loginRequest function to do this... though in GroupwiseService.php (in
    >> the phpClient library), loginRequest() doesn't appear to support passing
    >> across the proxy component during the initial login. Could someone give
    >> me a heads up on how (codewise) I can accomplish this?
    >>
    >> In trying to figure this out I've found that I could modify the
    >> loginRequest function. The original function looks like this (sorry
    >> about the formatting):
    >>
    >> ------------------
    >> public function loginRequest(loginRequest $loginReq) {
    >> $s = new SoapClient( NULL, array(
    >> "location" => $this->location,
    >> "uri" =>

    > "http://schemas.novell.com/2005/01/GroupWise/methods",
    >> "trace" => true ) );
    >> $pt = array(
    >> "username" => $loginReq->auth->username,
    >> "password" => $loginReq->auth->password );
    >>
    >> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    >> "language" );
    >>
    >> $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,
    >> "version" );
    >> $app = new Soapvar( $loginReq->application, XSD_STRING, NULL, NULL,
    >> "application" );
    >> return $s->__soapCall( 'loginRequest', array( $login, $lang, $ver,
    >> $app));
    >> }
    >> ------------------
    >>
    >> By removing $pt and changing the $login line from this:
    >>
    >> $pt = array(
    >> "username" => $loginReq->auth->username,
    >> "password" => $loginReq->auth->password );
    >>
    >> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    >> "language" );
    >>
    >> To this:
    >>
    >> $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    >> "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types", "auth"

    > );
    >> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,
    >> "language" );
    >>
    >> I've found I can proxy in just fine like:
    >>
    >> $proxy = new Proxy();
    >> $proxy->username = 'myusername';
    >> $proxy->password = 'mypassword';
    >> $proxy->proxy = 'account-to-proxy-into';
    >>
    >> $lr = new loginRequest();
    >> $lr->auth = $proxy;
    >> $lr->language = "en";
    >> $lr->version = "1.2";
    >> $lr->application = "phpClient";
    >>
    >> $lres = $gwservice->loginRequest($lr);
    >>
    >> ---------------
    >>
    >> Obviously I don't want to change the core library code. Is there
    >> another function that already accomplishes this? I'll apologize ahead
    >> of time because I'm probably missing something completely obvious here :)
    >>
    >> Thanks all!
    >> Brian
    >>
    >>
    >>
    >> Preston Stephenson wrote:
    >>> You might want to check out the calendar publishing available
    >>> in the Bonsai release. It might be more straight forward.
    >>> Look at the administrator and client guides.
    >>>
    >>> http://www.novell.com/documentation/gwbonsai/
    >>>
    >>> Then, if you have more questions, post them here.
    >>>
    >>> Thanks.
    >>> Preston
    >>>
    >>>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid> wrote:
    >>>> Hello all,
    >>>> I'm not very experienced in setting up resources in groupwise, nor have

    >
    >>>> I mastered the phpClient SOAP library, so bear with me :)
    >>>>
    >>>> What I would like to do, is set up a series of calendars in groupwise in

    >
    >>>> some manner which would be editable by various users in our system via
    >>>> the groupwise client. Then, using the the SOAP API and PHP, I would
    >>>> like to grab events from these calendars for display in our internal
    >>>> web-portal.
    >>>>
    >>>> I'm mainly confused how these calendars should be created and then
    >>>> accessed via SOAP. These are my current thoughts:
    >>>>
    >>>> --------------
    >>>> 1. Proxy access to separate calendars -
    >>>> As separate resources whereby I would proxy into each of these calendars

    >
    >>>> through a common user via SOAP. Though my issue here resides in the
    >>>> fact that, though I have discovered how to login to a particular user
    >>>> and see their individual calendar events; I still have no idea how to
    >>>> proxy to another calendar through that current user...
    >>>>
    >>>> 2. Shared calendars under a particular user -
    >>>> As shared calendars under a centralized account, so we would create a
    >>>> series of calendars under one user (or resource?). Then I could use
    >>>> SOAP to login to that user, and grab all the events I want from each of

    >
    >>>> the calendars
    >>>>
    >>>> 3. Another option? -
    >>>>
    >>>> --------------
    >>>>
    >>>> I'm wondering what the best organizational structure would be to
    >>>> create all these calendars, and then gain access to them via soap. If
    >>>> someone could point me in the right direction, I would be extremely
    >>>> greatful! :)
    >>>>
    >>>> Thanks,
    >>>> Brian


  6. #6
    Preston Stephenson NNTP User

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    All you need to do is get the trusted application registered. You only
    need to do it once. The catch is you need to be able to mount a drive
    to the post office database and run the application from windows.

    See
    http://developer.novell.com/wiki/ind...pplication_API


    Preston

    >>> On Thursday, May 08, 2008 at 9:53 AM, Brian Herold<bmherold@wisc.edu>

    wrote:
    > Thanks Preston, that sounds like the perfect solution. I'm trying to
    > look into creating a trusted application key, but there aren't any
    > definitive guides on doing this. Apparently I cannot do this through
    > consoleone and must use something like 'GWArchrive' which I'm not
    > familiar with?
    >
    > Preston Stephenson wrote:
    >> You would be better off using a trusted application key.
    >> You can then log in as a user without knowing their password.
    >> With proxy, you have to be given rights to proxy and proxy
    >> doesn't work cross post office.
    >> For example, if UserA is on post office 1 and UserB is on
    >> post office 2, UserA would not be able to proxy to UserB
    >> using SOAP.
    >>
    >> That said, I think you would have to modify the core library.
    >>
    >> Preston
    >>
    >>>>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>

    >> wrote:
    >>> Preston,
    >>> Thanks - Bonsai looks great, though I don't think it's exactly what I'm


    >>> looking for in this particular instance. I did a little more
    >>> investigating and it looks like I'm going to need to proxy from a
    >>> centralized user account into other accounts.
    >>>
    >>> I've checked the SOAP docs and it looks like I'll need to use the
    >>> loginRequest function to do this... though in GroupwiseService.php (in
    >>> the phpClient library), loginRequest() doesn't appear to support passing


    >>> across the proxy component during the initial login. Could someone give


    >>> me a heads up on how (codewise) I can accomplish this?
    >>>
    >>> In trying to figure this out I've found that I could modify the
    >>> loginRequest function. The original function looks like this (sorry
    >>> about the formatting):
    >>>
    >>> ------------------
    >>> public function loginRequest(loginRequest $loginReq) {
    >>> $s = new SoapClient( NULL, array(
    >>> "location" => $this->location,
    >>> "uri" =>

    >> "http://schemas.novell.com/2005/01/GroupWise/methods",
    >>> "trace" => true ) );
    >>> $pt = array(
    >>> "username" => $loginReq->auth->username,
    >>> "password" => $loginReq->auth->password );
    >>>
    >>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,


    >>> "language" );
    >>>
    >>> $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,
    >>> "version" );
    >>> $app = new Soapvar( $loginReq->application, XSD_STRING, NULL, NULL,


    >>> "application" );
    >>> return $s->__soapCall( 'loginRequest', array( $login, $lang, $ver,


    >>> $app));
    >>> }
    >>> ------------------
    >>>
    >>> By removing $pt and changing the $login line from this:
    >>>
    >>> $pt = array(
    >>> "username" => $loginReq->auth->username,
    >>> "password" => $loginReq->auth->password );
    >>>
    >>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,


    >>> "language" );
    >>>
    >>> To this:
    >>>
    >>> $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    >>> "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types",

    "auth"
    >> );
    >>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,


    >>> "language" );
    >>>
    >>> I've found I can proxy in just fine like:
    >>>
    >>> $proxy = new Proxy();
    >>> $proxy->username = 'myusername';
    >>> $proxy->password = 'mypassword';
    >>> $proxy->proxy = 'account-to-proxy-into';
    >>>
    >>> $lr = new loginRequest();
    >>> $lr->auth = $proxy;
    >>> $lr->language = "en";
    >>> $lr->version = "1.2";
    >>> $lr->application = "phpClient";
    >>>
    >>> $lres = $gwservice->loginRequest($lr);
    >>>
    >>> ---------------
    >>>
    >>> Obviously I don't want to change the core library code. Is there
    >>> another function that already accomplishes this? I'll apologize ahead
    >>> of time because I'm probably missing something completely obvious here

    :)
    >>>
    >>> Thanks all!
    >>> Brian
    >>>
    >>>
    >>>
    >>> Preston Stephenson wrote:
    >>>> You might want to check out the calendar publishing available
    >>>> in the Bonsai release. It might be more straight forward.
    >>>> Look at the administrator and client guides.
    >>>>
    >>>> http://www.novell.com/documentation/gwbonsai/
    >>>>
    >>>> Then, if you have more questions, post them here.
    >>>>
    >>>> Thanks.
    >>>> Preston
    >>>>
    >>>>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid>

    wrote:
    >>>>> Hello all,
    >>>>> I'm not very experienced in setting up resources in groupwise, nor

    have
    >>
    >>>>> I mastered the phpClient SOAP library, so bear with me :)
    >>>>>
    >>>>> What I would like to do, is set up a series of calendars in groupwise

    in
    >>
    >>>>> some manner which would be editable by various users in our system via


    >>>>> the groupwise client. Then, using the the SOAP API and PHP, I would
    >>>>> like to grab events from these calendars for display in our internal
    >>>>> web-portal.
    >>>>>
    >>>>> I'm mainly confused how these calendars should be created and then
    >>>>> accessed via SOAP. These are my current thoughts:
    >>>>>
    >>>>> --------------
    >>>>> 1. Proxy access to separate calendars -
    >>>>> As separate resources whereby I would proxy into each of these

    calendars
    >>
    >>>>> through a common user via SOAP. Though my issue here resides in the
    >>>>> fact that, though I have discovered how to login to a particular user


    >>>>> and see their individual calendar events; I still have no idea how to


    >>>>> proxy to another calendar through that current user...
    >>>>>
    >>>>> 2. Shared calendars under a particular user -
    >>>>> As shared calendars under a centralized account, so we would create a


    >>>>> series of calendars under one user (or resource?). Then I could use
    >>>>> SOAP to login to that user, and grab all the events I want from each

    of
    >>
    >>>>> the calendars
    >>>>>
    >>>>> 3. Another option? -
    >>>>>
    >>>>> --------------
    >>>>>
    >>>>> I'm wondering what the best organizational structure would be to
    >>>>> create all these calendars, and then gain access to them via soap. If


    >>>>> someone could point me in the right direction, I would be extremely
    >>>>> greatful! :)
    >>>>>
    >>>>> Thanks,
    >>>>> Brian


  7. #7

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    Maybe I'm thinking about this the wrong way, but I'm just trying to
    authenticate to groupwise via PHP and SOAP using a Trusted Application
    Key.

    Is there a way to simply generate an appname/key pair in order to
    perform a SOAP loginRequest()? Novell's SOAP API documentation seems to
    fully support this (see below). The only thing I would need is a name
    for the the trusted app, and a 64-bit key, both of which which I would
    have to create/register somehow. I'm doing all my SOAP connections via
    PHP, so it's not really a desktop application written in C++ or anything
    that could be registered, correct?

    From Novell NDK: Groupwise Web Services:
    http://developer.novell.com/document...a/bktitle.html

    <loginRequest>
    <types:auth type="types:TrustedApplication">
    <types:username>USERNAME-TO-LOGIN-TO</types:username>
    <types:name>MY-APP-NAME</types:name>
    <types:key>64BITKEY06A90000875068005A00E700C0C0A3D 306A90000875068005A00E700</types:key>

    </types:auth>
    <application>phpClient</application>
    </loginRequest>

    Preston Stephenson wrote:
    > All you need to do is get the trusted application registered. You only
    > need to do it once. The catch is you need to be able to mount a drive
    > to the post office database and run the application from windows.
    >
    > See
    > http://developer.novell.com/wiki/ind...pplication_API
    >
    >
    > Preston
    >
    >>>> On Thursday, May 08, 2008 at 9:53 AM, Brian Herold<bmherold@wisc.edu>

    > wrote:
    >> Thanks Preston, that sounds like the perfect solution. I'm trying to
    >> look into creating a trusted application key, but there aren't any
    >> definitive guides on doing this. Apparently I cannot do this through
    >> consoleone and must use something like 'GWArchrive' which I'm not
    >> familiar with?
    >>
    >> Preston Stephenson wrote:
    >>> You would be better off using a trusted application key.
    >>> You can then log in as a user without knowing their password.
    >>> With proxy, you have to be given rights to proxy and proxy
    >>> doesn't work cross post office.
    >>> For example, if UserA is on post office 1 and UserB is on
    >>> post office 2, UserA would not be able to proxy to UserB
    >>> using SOAP.
    >>>
    >>> That said, I think you would have to modify the core library.
    >>>
    >>> Preston
    >>>
    >>>>>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>
    >>> wrote:
    >>>> Preston,
    >>>> Thanks - Bonsai looks great, though I don't think it's exactly what I'm

    >
    >>>> looking for in this particular instance. I did a little more
    >>>> investigating and it looks like I'm going to need to proxy from a
    >>>> centralized user account into other accounts.
    >>>>
    >>>> I've checked the SOAP docs and it looks like I'll need to use the
    >>>> loginRequest function to do this... though in GroupwiseService.php (in
    >>>> the phpClient library), loginRequest() doesn't appear to support passing

    >
    >>>> across the proxy component during the initial login. Could someone give

    >
    >>>> me a heads up on how (codewise) I can accomplish this?
    >>>>
    >>>> In trying to figure this out I've found that I could modify the
    >>>> loginRequest function. The original function looks like this (sorry
    >>>> about the formatting):
    >>>>
    >>>> ------------------
    >>>> public function loginRequest(loginRequest $loginReq) {
    >>>> $s = new SoapClient( NULL, array(
    >>>> "location" => $this->location,
    >>>> "uri" =>
    >>> "http://schemas.novell.com/2005/01/GroupWise/methods",
    >>>> "trace" => true ) );
    >>>> $pt = array(
    >>>> "username" => $loginReq->auth->username,
    >>>> "password" => $loginReq->auth->password );
    >>>>
    >>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,

    >
    >>>> "language" );
    >>>>
    >>>> $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,
    >>>> "version" );
    >>>> $app = new Soapvar( $loginReq->application, XSD_STRING, NULL, NULL,

    >
    >>>> "application" );
    >>>> return $s->__soapCall( 'loginRequest', array( $login, $lang, $ver,

    >
    >>>> $app));
    >>>> }
    >>>> ------------------
    >>>>
    >>>> By removing $pt and changing the $login line from this:
    >>>>
    >>>> $pt = array(
    >>>> "username" => $loginReq->auth->username,
    >>>> "password" => $loginReq->auth->password );
    >>>>
    >>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,

    >
    >>>> "language" );
    >>>>
    >>>> To this:
    >>>>
    >>>> $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    >>>> "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types",

    > "auth"
    >>> );
    >>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL, NULL,

    >
    >>>> "language" );
    >>>>
    >>>> I've found I can proxy in just fine like:
    >>>>
    >>>> $proxy = new Proxy();
    >>>> $proxy->username = 'myusername';
    >>>> $proxy->password = 'mypassword';
    >>>> $proxy->proxy = 'account-to-proxy-into';
    >>>>
    >>>> $lr = new loginRequest();
    >>>> $lr->auth = $proxy;
    >>>> $lr->language = "en";
    >>>> $lr->version = "1.2";
    >>>> $lr->application = "phpClient";
    >>>>
    >>>> $lres = $gwservice->loginRequest($lr);
    >>>>
    >>>> ---------------
    >>>>
    >>>> Obviously I don't want to change the core library code. Is there
    >>>> another function that already accomplishes this? I'll apologize ahead
    >>>> of time because I'm probably missing something completely obvious here

    > :)
    >>>> Thanks all!
    >>>> Brian
    >>>>
    >>>>
    >>>>
    >>>> Preston Stephenson wrote:
    >>>>> You might want to check out the calendar publishing available
    >>>>> in the Bonsai release. It might be more straight forward.
    >>>>> Look at the administrator and client guides.
    >>>>>
    >>>>> http://www.novell.com/documentation/gwbonsai/
    >>>>>
    >>>>> Then, if you have more questions, post them here.
    >>>>>
    >>>>> Thanks.
    >>>>> Preston
    >>>>>
    >>>>>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid>

    > wrote:
    >>>>>> Hello all,
    >>>>>> I'm not very experienced in setting up resources in groupwise, nor

    > have
    >>>>>> I mastered the phpClient SOAP library, so bear with me :)
    >>>>>>
    >>>>>> What I would like to do, is set up a series of calendars in groupwise

    > in
    >>>>>> some manner which would be editable by various users in our system via

    >
    >>>>>> the groupwise client. Then, using the the SOAP API and PHP, I would
    >>>>>> like to grab events from these calendars for display in our internal
    >>>>>> web-portal.
    >>>>>>
    >>>>>> I'm mainly confused how these calendars should be created and then
    >>>>>> accessed via SOAP. These are my current thoughts:
    >>>>>>
    >>>>>> --------------
    >>>>>> 1. Proxy access to separate calendars -
    >>>>>> As separate resources whereby I would proxy into each of these

    > calendars
    >>>>>> through a common user via SOAP. Though my issue here resides in the
    >>>>>> fact that, though I have discovered how to login to a particular user

    >
    >>>>>> and see their individual calendar events; I still have no idea how to

    >
    >>>>>> proxy to another calendar through that current user...
    >>>>>>
    >>>>>> 2. Shared calendars under a particular user -
    >>>>>> As shared calendars under a centralized account, so we would create a

    >
    >>>>>> series of calendars under one user (or resource?). Then I could use
    >>>>>> SOAP to login to that user, and grab all the events I want from each

    > of
    >>>>>> the calendars
    >>>>>>
    >>>>>> 3. Another option? -
    >>>>>>
    >>>>>> --------------
    >>>>>>
    >>>>>> I'm wondering what the best organizational structure would be to
    >>>>>> create all these calendars, and then gain access to them via soap. If

    >
    >>>>>> someone could point me in the right direction, I would be extremely
    >>>>>> greatful! :)
    >>>>>>
    >>>>>> Thanks,
    >>>>>> Brian


  8. #8
    Preston Stephenson NNTP User

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    The trick is to get the app name and key registered in the POA database.
    There is a test app that runs on windows to do that. That is where
    you run the application on windows with a drive mapped to where
    the PO database are.

    After that you just use the trusted app name and key to log in to
    the POA using PHP.

    Preston

    >>> On Friday, May 09, 2008 at 9:03 AM, Brian Herold<bmherold@wisc.edu>

    wrote:
    > Maybe I'm thinking about this the wrong way, but I'm just trying to
    > authenticate to groupwise via PHP and SOAP using a Trusted Application
    > Key.
    >
    > Is there a way to simply generate an appname/key pair in order to
    > perform a SOAP loginRequest()? Novell's SOAP API documentation seems to
    > fully support this (see below). The only thing I would need is a name
    > for the the trusted app, and a 64-bit key, both of which which I would
    > have to create/register somehow. I'm doing all my SOAP connections via
    > PHP, so it's not really a desktop application written in C++ or anything
    > that could be registered, correct?
    >
    > From Novell NDK: Groupwise Web Services:
    >

    http://developer.novell.com/document...x.html?page=/d

    > ocumentation/gwsoap/gwwbserv/data/bktitle.html
    >
    > <loginRequest>
    > <types:auth type="types:TrustedApplication">
    > <types:username>USERNAME-TO-LOGIN-TO</types:username>
    > <types:name>MY-APP-NAME</types:name>
    >

    <types:key>64BITKEY06A90000875068005A00E700C0C0A3D 306A90000875068005A00E700<
    /ty
    > pes:key>
    >
    > </types:auth>
    > <application>phpClient</application>
    > </loginRequest>
    >
    > Preston Stephenson wrote:
    >> All you need to do is get the trusted application registered. You only
    >> need to do it once. The catch is you need to be able to mount a drive
    >> to the post office database and run the application from windows.
    >>
    >> See
    >>

    http://developer.novell.com/wiki/ind...pplication_API

    >>
    >>
    >> Preston
    >>
    >>>>> On Thursday, May 08, 2008 at 9:53 AM, Brian Herold<bmherold@wisc.edu>

    >> wrote:
    >>> Thanks Preston, that sounds like the perfect solution. I'm trying to
    >>> look into creating a trusted application key, but there aren't any
    >>> definitive guides on doing this. Apparently I cannot do this through
    >>> consoleone and must use something like 'GWArchrive' which I'm not
    >>> familiar with?
    >>>
    >>> Preston Stephenson wrote:
    >>>> You would be better off using a trusted application key.
    >>>> You can then log in as a user without knowing their password.
    >>>> With proxy, you have to be given rights to proxy and proxy
    >>>> doesn't work cross post office.
    >>>> For example, if UserA is on post office 1 and UserB is on
    >>>> post office 2, UserA would not be able to proxy to UserB
    >>>> using SOAP.
    >>>>
    >>>> That said, I think you would have to modify the core library.
    >>>>
    >>>> Preston
    >>>>
    >>>>>>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>
    >>>> wrote:
    >>>>> Preston,
    >>>>> Thanks - Bonsai looks great, though I don't think it's exactly what

    I'm
    >>
    >>>>> looking for in this particular instance. I did a little more
    >>>>> investigating and it looks like I'm going to need to proxy from a
    >>>>> centralized user account into other accounts.
    >>>>>
    >>>>> I've checked the SOAP docs and it looks like I'll need to use the
    >>>>> loginRequest function to do this... though in GroupwiseService.php (in


    >>>>> the phpClient library), loginRequest() doesn't appear to support

    passing
    >>
    >>>>> across the proxy component during the initial login. Could someone

    give
    >>
    >>>>> me a heads up on how (codewise) I can accomplish this?
    >>>>>
    >>>>> In trying to figure this out I've found that I could modify the
    >>>>> loginRequest function. The original function looks like this (sorry
    >>>>> about the formatting):
    >>>>>
    >>>>> ------------------
    >>>>> public function loginRequest(loginRequest $loginReq) {
    >>>>> $s = new SoapClient( NULL, array(
    >>>>> "location" => $this->location,
    >>>>> "uri" =>
    >>>> "http://schemas.novell.com/2005/01/GroupWise/methods",
    >>>>> "trace" => true ) );
    >>>>> $pt = array(
    >>>>> "username" => $loginReq->auth->username,
    >>>>> "password" => $loginReq->auth->password );
    >>>>>
    >>>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    NULL,
    >>
    >>>>> "language" );
    >>>>>
    >>>>> $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,


    >>>>> "version" );
    >>>>> $app = new Soapvar( $loginReq->application, XSD_STRING, NULL,

    NULL,
    >>
    >>>>> "application" );
    >>>>> return $s->__soapCall( 'loginRequest', array( $login, $lang,

    $ver,
    >>
    >>>>> $app));
    >>>>> }
    >>>>> ------------------
    >>>>>
    >>>>> By removing $pt and changing the $login line from this:
    >>>>>
    >>>>> $pt = array(
    >>>>> "username" => $loginReq->auth->username,
    >>>>> "password" => $loginReq->auth->password );
    >>>>>
    >>>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    NULL,
    >>
    >>>>> "language" );
    >>>>>
    >>>>> To this:
    >>>>>
    >>>>> $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    >>>>> "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types",

    >> "auth"
    >>>> );
    >>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    NULL,
    >>
    >>>>> "language" );
    >>>>>
    >>>>> I've found I can proxy in just fine like:
    >>>>>
    >>>>> $proxy = new Proxy();
    >>>>> $proxy->username = 'myusername';
    >>>>> $proxy->password = 'mypassword';
    >>>>> $proxy->proxy = 'account-to-proxy-into';
    >>>>>
    >>>>> $lr = new loginRequest();
    >>>>> $lr->auth = $proxy;
    >>>>> $lr->language = "en";
    >>>>> $lr->version = "1.2";
    >>>>> $lr->application = "phpClient";
    >>>>>
    >>>>> $lres = $gwservice->loginRequest($lr);
    >>>>>
    >>>>> ---------------
    >>>>>
    >>>>> Obviously I don't want to change the core library code. Is there
    >>>>> another function that already accomplishes this? I'll apologize ahead


    >>>>> of time because I'm probably missing something completely obvious

    here
    >> :)
    >>>>> Thanks all!
    >>>>> Brian
    >>>>>
    >>>>>
    >>>>>
    >>>>> Preston Stephenson wrote:
    >>>>>> You might want to check out the calendar publishing available
    >>>>>> in the Bonsai release. It might be more straight forward.
    >>>>>> Look at the administrator and client guides.
    >>>>>>
    >>>>>> http://www.novell.com/documentation/gwbonsai/
    >>>>>>
    >>>>>> Then, if you have more questions, post them here.
    >>>>>>
    >>>>>> Thanks.
    >>>>>> Preston
    >>>>>>
    >>>>>>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid>

    >> wrote:
    >>>>>>> Hello all,
    >>>>>>> I'm not very experienced in setting up resources in groupwise, nor

    >> have
    >>>>>>> I mastered the phpClient SOAP library, so bear with me :)
    >>>>>>>
    >>>>>>> What I would like to do, is set up a series of calendars in

    groupwise
    >> in
    >>>>>>> some manner which would be editable by various users in our system

    via
    >>
    >>>>>>> the groupwise client. Then, using the the SOAP API and PHP, I would


    >>>>>>> like to grab events from these calendars for display in our internal


    >>>>>>> web-portal.
    >>>>>>>
    >>>>>>> I'm mainly confused how these calendars should be created and then
    >>>>>>> accessed via SOAP. These are my current thoughts:
    >>>>>>>
    >>>>>>> --------------
    >>>>>>> 1. Proxy access to separate calendars -
    >>>>>>> As separate resources whereby I would proxy into each of these

    >> calendars
    >>>>>>> through a common user via SOAP. Though my issue here resides in the


    >>>>>>> fact that, though I have discovered how to login to a particular

    user
    >>
    >>>>>>> and see their individual calendar events; I still have no idea how

    to
    >>
    >>>>>>> proxy to another calendar through that current user...
    >>>>>>>
    >>>>>>> 2. Shared calendars under a particular user -
    >>>>>>> As shared calendars under a centralized account, so we would create

    a
    >>
    >>>>>>> series of calendars under one user (or resource?). Then I could use


    >>>>>>> SOAP to login to that user, and grab all the events I want from

    each
    >> of
    >>>>>>> the calendars
    >>>>>>>
    >>>>>>> 3. Another option? -
    >>>>>>>
    >>>>>>> --------------
    >>>>>>>
    >>>>>>> I'm wondering what the best organizational structure would be to
    >>>>>>> create all these calendars, and then gain access to them via soap.

    If
    >>
    >>>>>>> someone could point me in the right direction, I would be extremely


    >>>>>>> greatful! :)
    >>>>>>>
    >>>>>>> Thanks,
    >>>>>>> Brian


  9. #9

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    Okay, your patience has to be wearing thin by now, but I think I'm
    almost there :)

    I've downloaded novell-gwtapp-devel-2007.08.15-1windows.exe from the
    Trusted Application API which has the test app source files
    'TestTApp.cpp' you're talking about; but I can't compile the thing for
    the life of me (in visual Studio C++ 2008 Express)...

    Is there a pre-compiled binary somewhere?

    My desktop development knowledge is pretty non-existent - I apologize.

    Brian

    Preston Stephenson wrote:
    > The trick is to get the app name and key registered in the POA database.
    > There is a test app that runs on windows to do that. That is where
    > you run the application on windows with a drive mapped to where
    > the PO database are.
    >
    > After that you just use the trusted app name and key to log in to
    > the POA using PHP.
    >
    > Preston
    >
    >>>> On Friday, May 09, 2008 at 9:03 AM, Brian Herold<bmherold@wisc.edu>

    > wrote:
    >> Maybe I'm thinking about this the wrong way, but I'm just trying to
    >> authenticate to groupwise via PHP and SOAP using a Trusted Application
    >> Key.
    >>
    >> Is there a way to simply generate an appname/key pair in order to
    >> perform a SOAP loginRequest()? Novell's SOAP API documentation seems to
    >> fully support this (see below). The only thing I would need is a name
    >> for the the trusted app, and a 64-bit key, both of which which I would
    >> have to create/register somehow. I'm doing all my SOAP connections via
    >> PHP, so it's not really a desktop application written in C++ or anything
    >> that could be registered, correct?
    >>
    >> From Novell NDK: Groupwise Web Services:
    >>

    > http://developer.novell.com/document...x.html?page=/d
    >
    >> ocumentation/gwsoap/gwwbserv/data/bktitle.html
    >>
    >> <loginRequest>
    >> <types:auth type="types:TrustedApplication">
    >> <types:username>USERNAME-TO-LOGIN-TO</types:username>
    >> <types:name>MY-APP-NAME</types:name>
    >>

    > <types:key>64BITKEY06A90000875068005A00E700C0C0A3D 306A90000875068005A00E700<
    > /ty
    >> pes:key>
    >>
    >> </types:auth>
    >> <application>phpClient</application>
    >> </loginRequest>
    >>
    >> Preston Stephenson wrote:
    >>> All you need to do is get the trusted application registered. You only
    >>> need to do it once. The catch is you need to be able to mount a drive
    >>> to the post office database and run the application from windows.
    >>>
    >>> See
    >>>

    > http://developer.novell.com/wiki/ind...pplication_API
    >
    >>>
    >>> Preston
    >>>
    >>>>>> On Thursday, May 08, 2008 at 9:53 AM, Brian Herold<bmherold@wisc.edu>
    >>> wrote:
    >>>> Thanks Preston, that sounds like the perfect solution. I'm trying to
    >>>> look into creating a trusted application key, but there aren't any
    >>>> definitive guides on doing this. Apparently I cannot do this through
    >>>> consoleone and must use something like 'GWArchrive' which I'm not
    >>>> familiar with?
    >>>>
    >>>> Preston Stephenson wrote:
    >>>>> You would be better off using a trusted application key.
    >>>>> You can then log in as a user without knowing their password.
    >>>>> With proxy, you have to be given rights to proxy and proxy
    >>>>> doesn't work cross post office.
    >>>>> For example, if UserA is on post office 1 and UserB is on
    >>>>> post office 2, UserA would not be able to proxy to UserB
    >>>>> using SOAP.
    >>>>>
    >>>>> That said, I think you would have to modify the core library.
    >>>>>
    >>>>> Preston
    >>>>>
    >>>>>>>> On Wednesday, April 30, 2008 at 9:14 AM, Brian<bmherold@wisc.edu>
    >>>>> wrote:
    >>>>>> Preston,
    >>>>>> Thanks - Bonsai looks great, though I don't think it's exactly what

    > I'm
    >>>>>> looking for in this particular instance. I did a little more
    >>>>>> investigating and it looks like I'm going to need to proxy from a
    >>>>>> centralized user account into other accounts.
    >>>>>>
    >>>>>> I've checked the SOAP docs and it looks like I'll need to use the
    >>>>>> loginRequest function to do this... though in GroupwiseService.php (in

    >
    >>>>>> the phpClient library), loginRequest() doesn't appear to support

    > passing
    >>>>>> across the proxy component during the initial login. Could someone

    > give
    >>>>>> me a heads up on how (codewise) I can accomplish this?
    >>>>>>
    >>>>>> In trying to figure this out I've found that I could modify the
    >>>>>> loginRequest function. The original function looks like this (sorry
    >>>>>> about the formatting):
    >>>>>>
    >>>>>> ------------------
    >>>>>> public function loginRequest(loginRequest $loginReq) {
    >>>>>> $s = new SoapClient( NULL, array(
    >>>>>> "location" => $this->location,
    >>>>>> "uri" =>
    >>>>> "http://schemas.novell.com/2005/01/GroupWise/methods",
    >>>>>> "trace" => true ) );
    >>>>>> $pt = array(
    >>>>>> "username" => $loginReq->auth->username,
    >>>>>> "password" => $loginReq->auth->password );
    >>>>>>
    >>>>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    > NULL,
    >>>>>> "language" );
    >>>>>>
    >>>>>> $ver = new Soapvar( $loginReq->version, XSD_DECIMAL, NULL, NULL,

    >
    >>>>>> "version" );
    >>>>>> $app = new Soapvar( $loginReq->application, XSD_STRING, NULL,

    > NULL,
    >>>>>> "application" );
    >>>>>> return $s->__soapCall( 'loginRequest', array( $login, $lang,

    > $ver,
    >>>>>> $app));
    >>>>>> }
    >>>>>> ------------------
    >>>>>>
    >>>>>> By removing $pt and changing the $login line from this:
    >>>>>>
    >>>>>> $pt = array(
    >>>>>> "username" => $loginReq->auth->username,
    >>>>>> "password" => $loginReq->auth->password );
    >>>>>>
    >>>>>> $login = new SoapVar( $pt, SOAP_ENC_OBJECT, "PlainText",
    >>>>>> "http://schemas.novell.com/2005/01/GroupWise/types", "auth" );
    >>>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    > NULL,
    >>>>>> "language" );
    >>>>>>
    >>>>>> To this:
    >>>>>>
    >>>>>> $login = new SoapVar( $loginReq->auth, SOAP_ENC_OBJECT,
    >>>>>> "PlainText", "http://schemas.novell.com/2005/01/GroupWise/types",
    >>> "auth"
    >>>>> );
    >>>>>> $lang = new Soapvar( $loginReq->language, XSD_LANGUAGE, NULL,

    > NULL,
    >>>>>> "language" );
    >>>>>>
    >>>>>> I've found I can proxy in just fine like:
    >>>>>>
    >>>>>> $proxy = new Proxy();
    >>>>>> $proxy->username = 'myusername';
    >>>>>> $proxy->password = 'mypassword';
    >>>>>> $proxy->proxy = 'account-to-proxy-into';
    >>>>>>
    >>>>>> $lr = new loginRequest();
    >>>>>> $lr->auth = $proxy;
    >>>>>> $lr->language = "en";
    >>>>>> $lr->version = "1.2";
    >>>>>> $lr->application = "phpClient";
    >>>>>>
    >>>>>> $lres = $gwservice->loginRequest($lr);
    >>>>>>
    >>>>>> ---------------
    >>>>>>
    >>>>>> Obviously I don't want to change the core library code. Is there
    >>>>>> another function that already accomplishes this? I'll apologize ahead

    >
    >>>>>> of time because I'm probably missing something completely obvious

    > here
    >>> :)
    >>>>>> Thanks all!
    >>>>>> Brian
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>> Preston Stephenson wrote:
    >>>>>>> You might want to check out the calendar publishing available
    >>>>>>> in the Bonsai release. It might be more straight forward.
    >>>>>>> Look at the administrator and client guides.
    >>>>>>>
    >>>>>>> http://www.novell.com/documentation/gwbonsai/
    >>>>>>>
    >>>>>>> Then, if you have more questions, post them here.
    >>>>>>>
    >>>>>>> Thanks.
    >>>>>>> Preston
    >>>>>>>
    >>>>>>>>>> On Tuesday, April 29, 2008 at 10:19 AM, <user@domain.invalid>
    >>> wrote:
    >>>>>>>> Hello all,
    >>>>>>>> I'm not very experienced in setting up resources in groupwise, nor
    >>> have
    >>>>>>>> I mastered the phpClient SOAP library, so bear with me :)
    >>>>>>>>
    >>>>>>>> What I would like to do, is set up a series of calendars in

    > groupwise
    >>> in
    >>>>>>>> some manner which would be editable by various users in our system

    > via
    >>>>>>>> the groupwise client. Then, using the the SOAP API and PHP, I would

    >
    >>>>>>>> like to grab events from these calendars for display in our internal

    >
    >>>>>>>> web-portal.
    >>>>>>>>
    >>>>>>>> I'm mainly confused how these calendars should be created and then
    >>>>>>>> accessed via SOAP. These are my current thoughts:
    >>>>>>>>
    >>>>>>>> --------------
    >>>>>>>> 1. Proxy access to separate calendars -
    >>>>>>>> As separate resources whereby I would proxy into each of these
    >>> calendars
    >>>>>>>> through a common user via SOAP. Though my issue here resides in the

    >
    >>>>>>>> fact that, though I have discovered how to login to a particular

    > user
    >>>>>>>> and see their individual calendar events; I still have no idea how

    > to
    >>>>>>>> proxy to another calendar through that current user...
    >>>>>>>>
    >>>>>>>> 2. Shared calendars under a particular user -
    >>>>>>>> As shared calendars under a centralized account, so we would create

    > a
    >>>>>>>> series of calendars under one user (or resource?). Then I could use

    >
    >>>>>>>> SOAP to login to that user, and grab all the events I want from

    > each
    >>> of
    >>>>>>>> the calendars
    >>>>>>>>
    >>>>>>>> 3. Another option? -
    >>>>>>>>
    >>>>>>>> --------------
    >>>>>>>>
    >>>>>>>> I'm wondering what the best organizational structure would be to
    >>>>>>>> create all these calendars, and then gain access to them via soap.

    > If
    >>>>>>>> someone could point me in the right direction, I would be extremely

    >
    >>>>>>>> greatful! :)
    >>>>>>>>
    >>>>>>>> Thanks,
    >>>>>>>> Brian


  10. #10
    Tommy Mikkelsen NNTP User

    Re: Publishing Calendars to the Web (PHP SOAP Proxy)

    Try this:

    http://developer.novell.com/wiki/index.php/Tapp_samples

    Can't remember which sample contained exe files, but one of the 3 did ;-)


    --

    /Tommy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •