Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: "Bad Runtime Reference", as soon as SoapConnection Createinstance is called...

1,109 views
Skip to first unread message

Bruce Armstrong [TeamSybase]

unread,
May 7, 2008, 1:11:19 PM5/7/08
to
You're missing a runtime file. What files did get included in that
directory? Is the application running out of that directory?

<ZK> wrote in message news:4821e22b.4db...@sybase.com...
> Hi,
> I have the same problem as mentioned below. I will explain
> in detail what I need to do:
> I need to access a webservice using EASYSOAP.DLL using PB
> 10.5.2 (don't want to involve .NET).
> Successfully created a proxy using "Weservice Proxy Wizard".
> Added pbsoapclient105.pbd to the library list. All the
> required DLL's (extracted using the pb runtime packager) and
> the pbls are in the same directory "SOAPDLL".
>
> Webservice was created:
> http://www.webservicex.net/uszip.asmx?WSDL
>
> Web Service Generator Project Status
> Deployment PBL: C:\SoapDLL\test.pbl
> Clear PBL on build: No
> Confirm overwrites: No
> WSDL Location: http://www.webservicex.net/uszip.asmx?WSDL
> Use .NET Engine: No
> Services selected :
> Service USZip:
> USZipSoap
>
> Code:
> SoapConnection conn // Define SoapConnection
> uszipsoap proxy_obj // Declare proxy
> conn = create SoapConnection //Instantiated connection
> rVal = Conn.CreateInstance(proxy_obj, "USZipSoap")
>
> CreateInstance give me an error. Even getting the same error
> when I tried PB provided weservice example. Also tried in
> other developer's PC too.
> ErrorMessage: "Bad runtime reference"
>
> Also wanted to share that when I try a import PB Extention
> to import pbsoapclient105.pbx, it gives me a message:
> ---------- Import PB Extension:
> Importing C:\SoapDLL\pbsoapclient105.pbx - Error: The file
> is not a valid dll or pbx file.
> ---------- Finished
>
> Appreciate your response.
>
> ZK


ZK

unread,
May 7, 2008, 1:08:59 PM5/7/08
to

Bruce Armstrong [TeamSybase]

unread,
May 8, 2008, 2:25:29 AM5/8/08
to
Most of these you don't really need (see below). I'm a bit confused
though. If you're throwing runtimes into the same directory, I'd
expect to see a compiled version of your application. It looks like
you've got the noncompiled version there.

In any event, if you can't import the pbsoapclient105.pbx, the file
may be corrupt. You might want to try importing the pbwsclient105.pbx
instead. From the online docs, it looks like it can be used with both
engines, whereas the first only works with the EasySOAP engine.

If all else fails, you might try running FileMon and watching to see
what PB is trying to access and failing to find when the error occurs.

Your application:
test.dwp
test.pbl
test.pbt
test.usr.opt

Required PB runtime files
pbvm105.dll
pbshr105.dll
libjcc.dll
libjutils.dll
pbdwe105.dll

Supporting Microsoft files
atl71.dll
msvcp71.dll
msvcr71.dll

Required EasySOAP engine files
EasySoap105.dll
ExPat105.dll
libeay32.dll
ssleay32.dll
xerces-c_2_6.dll
xerces-depdom_2_6.dll
pbsoapclient105.pbd
pbsoapclient105.pbx

Non required PB runtime files
pbacc105.dll
pbdwr105.dll
pbdwr105.pbd
pbXerces105.dll
pbjvm105.dll
pbrtc105.dll
tp11.dll
tp11_bmp.flt
tp11_css.dll
tp11_doc.dll
tp11_gif.flt
tp11_htm.dll
tp11_ic.dll
tp11_ic.ini
tp11_jpg.flt
tp11_obj.dll
tp11_pdf.dll
tp11_png.flt
tp11_rtf.dll
tp11_tif.flt
tp11_tls.dll
tp11_wmf.flt
tp11_wnd.dll
tp4ole11.ocx
pbtra105.dll
pbtrs105.dll
pbcomrt105.dll
PBDOM105.pbx
pbjag105.dll

Non required PowerBuilder database drivers
pbo10105.dll
pbo84105.dll
pbo90105.dll

Non required .Net Engine files
pbNetWSRuntime105.dll
pbwsclient105.pbd
pbwsclient105.pbx
Sybase.Powerbuilder.WebService.Runtime.dll
Sybase.PowerBuilder.WebService.RuntimeRemoteLoader.dll
Sybase.PowerBuilder.WebService.WSDL.dll
Sybase.PowerBuilder.WebService.WSDLRemoteLoader.dll

I have no idea
Iskalnik.dll
vm.out


On 7 May 2008 11:19:42 -0700, ZK wrote:

>Thanks for the response.
>
>Attached is the list of files within SOAPDLL directory. I am
>running the application out from that directory.
>
>Also wanted to specify that I have tried the PB example of
>webservice on mine as well as another developer's PC and in
>both the location it's not working.
>
>Could you please let me know which DLL I am missing.
>
>Thanks.
>ZK

Christian Lübeck

unread,
Jun 25, 2008, 8:47:05 AM6/25/08
to
hello,

i'm not really sure if this is the right forum. i've got problems to
call the soapconnection (both!).

classdefinition l
TRY
DO
soapconnection lnv_soap
lnv_soap = CREATE soapconnection
l = lnv_soap.classdefinition
long ll_i

for ll_i = 1 TO upperbound( l.scriptlist)
messagebox( '#', l.scriptlist[ ll_i].name)
NEXT
lnv_soap.setsoaplogfile( 'c:\soap.log')

li_ret = 1
EXIT
LOOP UNTIL 1 = 2
CATCH ( runtimeerror l_err)
li_ret = -1
messagebox( '#', l_err.text)
END TRY

setsoaplogfile gives "bad runtime reference at line xx". in the
scriptlist setsoaplogfile is valid.

any ideas?

thanks christian

Bruce Armstrong [TeamSybase]

unread,
Jun 25, 2008, 9:46:06 AM6/25/08
to

Not sure what you're trying to do. Where is your CreateInstance for
the proxy?

On 25 Jun 2008 05:47:05 -0700, Christian Lübeck <nos...@cargosoft.de>
wrote:

Christian Lübeck

unread,
Jun 25, 2008, 11:16:39 AM6/25/08
to
all methods (createinstance etc.) from the soapconnection doesn't work.
only triggerevent, postevent etc. works without runtimeerror.

i think it's a problem with the pb installation or the enable installation.

i think the wrong pb dll's are in the memory when i started pb.
it might be an installation problem with enable.

i proof the installation.

thanks

0 new messages