• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Another WebServices Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another WebServices Question


  • Subject: Another WebServices Question
  • From: Brendon Allen <email@hidden>
  • Date: Tue, 16 Mar 2004 16:07:41 +1100

Hey all sorry to bother again,

Have an interesting problem and was hoping maybe someone has seen this
before.  I have an app using SOAP through AXIS to talk to another app
using WO WebServices.  Basically here is what I am doing and need to be
able to do.

1. from a client call a login method via WebServices on my main app to
verify login
2. from client call a method via WebServices on my main app to get the
assets for that user they logged in as possesses

My problem is I need to know if the user is logged in when they call
the asset method (for reasons I will not go into these have to be
separate and called separately).  To get around this I had the idea I
would make a new WOSession on login and save the info in the session
and then send back the sessionID to the client which would then need to
be passed into subsequent methods including the asset method.

My problem now is I need to restore the session and I do not have a
context or request to do so.  The restoreSessionID in application wants
an id and a context and the one in sessionstore wants an id and a
request.  In my situation I have neither.  help!

Also I will state that there is a way to pass the context from client
to server over SOAP using something like

         WOContext context =
(WOContext)MessageContext.getCurrentContext().getProperty("com.webobject
s.appserver.WOContext");

on the server where MessageContext is an Axis context that is passed by
the client.  The problem with this is I do not want the client to have
to be using WO to access my API and to pass the WOContext it would be.
So basically I just want a way to login on the remote machine via RPC
over soap have the server start a session with some variables stashed
in it and then have the client access that session via its id to
perform methods that can access its session variables.

thanks in advance and hope this makes some sense it is hard to explain.

Brendon
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Compile code in Xcode.
  • Next by Date: add file in WOLips and read it.
  • Previous by thread: Compile code in Xcode.
  • Next by thread: Best Approach Question
  • Index(es):
    • Date
    • Thread