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.

Soap connection problem

2 posts in .NET Winform Last posting was on 2010-01-21 15:22:54.0Z
Mrinal Posted on 2010-01-21 06:05:56.0Z
Sender: 6f64.4b57ed3d.1804289383@sybase.com
From: Mrinal
Newsgroups: sybase.public.powerbuilder.net.winform
Subject: Soap connection problem
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4b57eec4.6f7f.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 20 Jan 2010 22:05:56 -0800
X-Trace: forums-1-dub 1264053956 10.22.241.41 (20 Jan 2010 22:05:56 -0800)
X-Original-Trace: 20 Jan 2010 22:05:56 -0800, 10.22.241.41
Lines: 39
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.net.winform:923
Article PK: 707654

Hi,
I am using PB9 and trying to use webservice from my code.
Using 'Web Service Proxy Wizard' I have been deployed
webservice. After that I write below script in application
open event :
SoapConnection conn
pxy_currencyexchangeport p_obj

//Create connection instance
conn = create SoapConnection

//Set options for the connection
conn.SetOptions('SoapLog="soaplog.txt"')
// Create proxy instance
l_ret = Conn.CreateInstance(p_obj,
"pxy_currencyexchangeport")
if l_ret <> 0 then
MessageBox("Error", "Cannot create instance of proxy")
return
end if

// Invoke Web Service
try
r_rate = p_obj.GetRate("us","japan")
MessageBox("Currency Exchange Rate","1 US$ = "+
string(r_rate) + " Japanese Yens")
catch ( SoapException e )
MessageBox ("Error", "Cannot invoke Web Service~n"
+e.getMessage())
end try

But during run the applicaiton I am getting following error
:
PowerBuilder Applicaitn Execution Error(R0021)

Error: Bad runtime function reference at line 11 in open
event of object mytestweb

Any help?


Bruce Armstrong Posted on 2010-01-21 15:22:54.0Z
From: Bruce Armstrong <NOCANSPAM_bruce.armstrong@yahoo.com>
Newsgroups: sybase.public.powerbuilder.net.winform
Subject: Re: Soap connection problem
Reply-To: NOCANSPAM_bruce.armstrong@yahoo.com
Message-ID: <aasgl5h9ql1rt56pc9jlb7c38kjucv8v87@4ax.com>
References: <4b57eec4.6f7f.1681692777@sybase.com>
X-Newsreader: Forte Agent 5.00/32.1171
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 21 Jan 2010 07:22:54 -0800
X-Trace: forums-1-dub 1264087374 10.22.241.152 (21 Jan 2010 07:22:54 -0800)
X-Original-Trace: 21 Jan 2010 07:22:54 -0800, vip152.sybase.com
Lines: 55
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.net.winform:924
Article PK: 707653

Wrong forum. Also cross-posted. I responded to the post that was in
the appropriate forum.

On 20 Jan 2010 22:05:56 -0800, Mrinal wrote:

>Hi,
>I am using PB9 and trying to use webservice from my code.
>Using 'Web Service Proxy Wizard' I have been deployed
>webservice. After that I write below script in application
>open event :
>SoapConnection conn
>pxy_currencyexchangeport p_obj
>
>//Create connection instance
>conn = create SoapConnection
>
>//Set options for the connection
>conn.SetOptions('SoapLog="soaplog.txt"')
>// Create proxy instance
>l_ret = Conn.CreateInstance(p_obj,
>"pxy_currencyexchangeport")
>if l_ret <> 0 then
> MessageBox("Error", "Cannot create instance of proxy")
>return
>end if
>
>// Invoke Web Service
>try
> r_rate = p_obj.GetRate("us","japan")
> MessageBox("Currency Exchange Rate","1 US$ = "+
>string(r_rate) + " Japanese Yens")
> catch ( SoapException e )
> MessageBox ("Error", "Cannot invoke Web Service~n"
>+e.getMessage())
>end try
>
>But during run the applicaiton I am getting following error
>:
>PowerBuilder Applicaitn Execution Error(R0021)
>
>Error: Bad runtime function reference at line 11 in open
>event of object mytestweb
>
>Any help?

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

My Web 2.0 Stuff

Blog: http://bruce.pbdjmagazine.com/
Facebook: http://www.facebook.com/people/Bruce-Armstrong/1600223798
Fotki: http://public.fotki.com/brucearmstrong/
LinkedIn: http://www.linkedin.com/in/bruceaarmstrong
Twitter: http://twitter.com/bruce_armstrong
YouTube: http://www.youtube.com/user/brucearmstrong