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.

How to get return value from Web service call operation

2 posts in General Discussion Last posting was on 2012-05-22 12:04:03.0Z
AlexT Posted on 2012-05-14 16:41:16.0Z
From: AlexT <AlexT>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version: 1.0
Newsgroups: sybase.public.sup.general
Subject: How to get return value from Web service call operation
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4fb135ac$1@forums-1-dub>
Date: 14 May 2012 09:41:16 -0700
X-Trace: forums-1-dub 1337013676 10.22.241.152 (14 May 2012 09:41:16 -0700)
X-Original-Trace: 14 May 2012 09:41:16 -0700, vip152.sybase.com
Lines: 22
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:993
Article PK: 1087144

Hi All,

I'm very new in SUP. I'm trying to develop a Native Android application
(based on the tutorial), trying to invoke a SOAP WebService based MBO
(instead SQL Tables based MBO). This is a simple Web Service method
which gets an input parameter (string), and then returns a response(string).

I built the MBO "dragging" the SOAP WS and creating MBO "operations".

I was able to invoke the MBO operation using :
wsoperation other = new wsoperation();
other.setParam1("5");
other.create();
other.save();
other.submitPending();
DEMODB.synchronize();

How can I capture the return value? I don't know how to get it.
I really appreciate any guide / sample code.

Thanks
Alex


f.casati Posted on 2012-05-22 12:04:03.0Z
Sender: 7ebc.4fbb7e02.1804289383@sybase.com
From: f.casati
Newsgroups: sybase.public.sup.general
Subject: Re: How to get return value from Web service call operation
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4fbb80b3.7f24.1681692777@sybase.com>
References: <4fb135ac$1@forums-1-dub>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 22 May 2012 05:04:03 -0700
X-Trace: forums-1-dub 1337688243 172.20.134.41 (22 May 2012 05:04:03 -0700)
X-Original-Trace: 22 May 2012 05:04:03 -0700, 172.20.134.41
Lines: 37
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sup.general:1001
Article PK: 1087152

Hi,

as far as i know it's not possible to get the return value
of an operation, I think it's because of the asynchronous
nature of the SUP server.

If your return parameter is some kind of status (i.e. "OK"
or "ERROR") you can modify the service to throw a custom
exception and catch it in your code.

Bye,

> Hi All,
>
> I'm very new in SUP. I'm trying to develop a Native
> Android application (based on the tutorial), trying to
> invoke a SOAP WebService based MBO (instead SQL Tables
> based MBO). This is a simple Web Service method which
> gets an input parameter (string), and then returns a
> response(string).
>
> I built the MBO "dragging" the SOAP WS and creating MBO
> "operations".
>
> I was able to invoke the MBO operation using :
> wsoperation other = new wsoperation();
> other.setParam1("5");
> other.create();
> other.save();
> other.submitPending();
> DEMODB.synchronize();
>
> How can I capture the return value? I don't know how to
> get it. I really appreciate any guide / sample code.
>
> Thanks
> Alex