Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Help - synchronizing MBO by passing session code

2 posts in General Discussion Last posting was on 2012-06-18 12:52:19.0Z
Aman Verma Posted on 2012-06-05 13:01:31.0Z
Sender: 1325.4fce02ae.1804289383@sybase.com
From: Aman Verma
Newsgroups: sybase.public.sup.general
Subject: Help - synchronizing MBO by passing session code
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fce032b.1346.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 5 Jun 2012 06:01:31 -0700
X-Trace: forums-1-dub 1338901291 172.20.134.41 (5 Jun 2012 06:01:31 -0700)
X-Original-Trace: 5 Jun 2012 06:01:31 -0700, 172.20.134.41
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1020
Article PK: 1087169

Hello All,

I am creating android native application. I have a
webservice datasource. This webservice has login method
which accepts username and password and return the session
code.

String login(String userName, String password)

Now for any subsequent communication, I have to pass this
session code along with.

For example to get an employee,

Employee findEmployee(int empId, String session)

I can generate Employee MBO but I am not sure how to pass
session code which is available on device.

So I have two questions.

1) In order to get valid Session, is it possible to generate
MBO for login operation?
2) If it is possible then how can I pass valid session code
along with synchronize request for employee MBO ?


Gupta Posted on 2012-06-18 12:52:19.0Z
Sender: 6a25.4fdf1bcc.1804289383@sybase.com
From: Gupta
Newsgroups: sybase.public.sup.general
Subject: Re: Help - synchronizing MBO by passing session code
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fdf2483.6b85.1681692777@sybase.com>
References: <4fce032b.1346.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 18 Jun 2012 05:52:19 -0700
X-Trace: forums-1-dub 1340023939 172.20.134.41 (18 Jun 2012 05:52:19 -0700)
X-Original-Trace: 18 Jun 2012 05:52:19 -0700, 172.20.134.41
Lines: 32
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1039
Article PK: 1087188

Hi,
save the sessionId in device.
In Empployee MBO create SyncParameter for sessionId and
mapped to Load parameter.
In client code set sessionId to sync parameter and then
synchronize.

> Hello All,
>
> I am creating android native application. I have a
> webservice datasource. This webservice has login method
> which accepts username and password and return the session
> code.
>
> String login(String userName, String password)
>
> Now for any subsequent communication, I have to pass this
> session code along with.
>
> For example to get an employee,
>
> Employee findEmployee(int empId, String session)
>
> I can generate Employee MBO but I am not sure how to pass
> session code which is available on device.
>
> So I have two questions.
>
> 1) In order to get valid Session, is it possible to
> generate MBO for login operation?
> 2) If it is possible then how can I pass valid session
> code along with synchronize request for employee MBO ?