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.

Byte array from webservice

6 posts in Appeon (partner product) Last posting was on 2012-07-16 12:43:28.0Z
Josh Posted on 2012-07-11 20:23:56.0Z
Sender: 1c8d.4ffddeed.1804289383@sybase.com
From: Josh
Newsgroups: sybase.public.appeon
Subject: Byte array from webservice
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4ffde0dc.1cc2.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 11 Jul 2012 13:23:56 -0700
X-Trace: forums-1-dub 1342038236 172.20.134.41 (11 Jul 2012 13:23:56 -0700)
X-Original-Trace: 11 Jul 2012 13:23:56 -0700, 172.20.134.41
Lines: 18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2999
Article PK: 21992

I have .net webservice that returns byte array. In appeon
web service works with ANY datatype. But web service does
not return anything for byte array. I tried returning by ref
as parm as well but it didn't work.
It works fine in PB12.5 C/S with proxy object generated in
PB.
I am using this:
appeonwebservicecomponent l_ws_appeon
any lbyte_return, lbyte_parm_ref
any paralist[]

paralist[1] = 'test'
paralist[2] = lbyte_parm_ref //get by reference
l_ret=l_ws_appeon.of_callwebservice("my_net_webservice",
paralist)

lbyte_return = l_ws_appeon.ReturnValue //This does not
return anything


Chris Pollach Posted on 2012-07-12 12:32:02.0Z
From: Chris Pollach <cpollach@travel-net.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Re: Byte array from webservice
References: <4ffde0dc.1cc2.1681692777@sybase.com>
In-Reply-To: <4ffde0dc.1cc2.1681692777@sybase.com>
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: <4ffec3c2$1@forums-1-dub>
Date: 12 Jul 2012 05:32:02 -0700
X-Trace: forums-1-dub 1342096322 172.20.134.152 (12 Jul 2012 05:32:02 -0700)
X-Original-Trace: 12 Jul 2012 05:32:02 -0700, vip152.sybase.com
Lines: 35
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:3002
Article PK: 21989


On 7/11/2012 4:23 PM, Josh wrote:
> I have .net webservice that returns byte array. In appeon
> web service works with ANY datatype. But web service does
> not return anything for byte array. I tried returning by ref
> as parm as well but it didn't work.
> It works fine in PB12.5 C/S with proxy object generated in
> PB.
> I am using this:
> appeonwebservicecomponent l_ws_appeon
> any lbyte_return, lbyte_parm_ref
> any paralist[]
>
> paralist[1] = 'test'
> paralist[2] = lbyte_parm_ref //get by reference
> l_ret=l_ws_appeon.of_callwebservice("my_net_webservice",
> paralist)
>
> lbyte_return = l_ws_appeon.ReturnValue //This does not
> return anything
>

Hi Josh;

Have you tried declaring the return area as either: 1) Blob or 2)
Byte [] instead of ANY? I use BLOB personally.

--
Regards ... Chris
President: OSUG / STD Inc.
Vice President: ISUG
Blog: http://chrispollach.blogspot.com
SourceForge: http://sourceforge.net/projects/stdfndclass
PBDJ: http://chrispollach.sys-con.com


Josh Posted on 2012-07-16 12:43:28.0Z
Sender: 24d6.50040ac3.1804289383@sybase.com
From: Josh
Newsgroups: sybase.public.appeon
Subject: Re: Byte array from webservice
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <50040c70.2516.1681692777@sybase.com>
References: <4ffec3c2$1@forums-1-dub>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 16 Jul 2012 05:43:28 -0700
X-Trace: forums-1-dub 1342442608 172.20.134.41 (16 Jul 2012 05:43:28 -0700)
X-Original-Trace: 16 Jul 2012 05:43:28 -0700, 172.20.134.41
Lines: 50
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:3004
Article PK: 21995

Yes i did and it does not work as well. The error I get is
in below line which is even before calling
l_ws_appeon.ReturnValue.

l_ret=l_ws_appeon.of_callwebservice("my_net_webservice",
paralist) //l_ret comes as -1

That means it does not matter what return datatype I define
in PB, error comes while calling web service itself. Moment
I change my .net WS return datatype to not byte[] it works
fine.
looks like Appeon does not support byte[] as return or as
parm.

> On 7/11/2012 4:23 PM, Josh wrote:
> > I have .net webservice that returns byte array. In
> > appeon web service works with ANY datatype. But web
> > service does not return anything for byte array. I tried
> > returning by ref as parm as well but it didn't work.
> > It works fine in PB12.5 C/S with proxy object generated
> > in PB.
> > I am using this:
> > appeonwebservicecomponent l_ws_appeon
> > any lbyte_return, lbyte_parm_ref
> > any paralist[]
> >
> > paralist[1] = 'test'
> > paralist[2] = lbyte_parm_ref //get by reference
> > l_ret=l_ws_appeon.of_callwebservice("my_net_webservice",
> > paralist)
> >
> > lbyte_return = l_ws_appeon.ReturnValue //This does not
> > return anything
> >
>
> Hi Josh;
>
> Have you tried declaring the return area as either: 1)
> Blob or 2) Byte [] instead of ANY? I use BLOB personally.
>
> --
> Regards ... Chris
> President: OSUG / STD Inc.
> Vice President: ISUG
> Blog: http://chrispollach.blogspot.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
> PBDJ: http://chrispollach.sys-con.com
>
>


Josh Posted on 2012-07-11 20:27:52.0Z
Sender: 1c8d.4ffddeed.1804289383@sybase.com
From: Josh
Newsgroups: sybase.public.appeon
Subject: Re: Byte array from webservice
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4ffde1c8.1ce9.1681692777@sybase.com>
References: <4ffde0dc.1cc2.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 11 Jul 2012 13:27:52 -0700
X-Trace: forums-1-dub 1342038472 172.20.134.41 (11 Jul 2012 13:27:52 -0700)
X-Original-Trace: 11 Jul 2012 13:27:52 -0700, 172.20.134.41
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:3000
Article PK: 21993

I forgot to add this code in this sample:
l_ws_appeon=create appeonwebservicecomponent
l_ws_appeon.calltype="1"
l_ws_appeon.proxydllorurl=
"http://localhost/my_ws/my_ws.asmx"
l_ws_appeon.classdescript=""

My web service does work fine except nothing comes back in
byte array variable. Let me know if byte array is not
supported.

> I have .net webservice that returns byte array. In appeon
> web service works with ANY datatype. But web service does
> not return anything for byte array. I tried returning by
> ref as parm as well but it didn't work.
> It works fine in PB12.5 C/S with proxy object generated in
> PB.
> I am using this:
> appeonwebservicecomponent l_ws_appeon
> any lbyte_return, lbyte_parm_ref
> any paralist[]
>
> paralist[1] = 'test'
> paralist[2] = lbyte_parm_ref //get by reference
> l_ret=l_ws_appeon.of_callwebservice("my_net_webservice",
> paralist)
>
> lbyte_return = l_ws_appeon.ReturnValue //This does not
> return anything