cancel
Showing results for 
Search instead for 
Did you mean: 

Powerbuilder 11.5 Classic Webservice Client deploy

Former Member
0 Kudos


I'm using PB 11.5 Classic

I've created an application to consume a webservice.


lconnection = create soapconnection

ll_ret = lconnection.createinstance( lws, "ciminterface" )

if ll_ret <> 0 then

  gnv_app.inv_log.of_adderror( "Webservice call error :  " + string( ll_ret ) )

  return -1

end if


The PB WebService DLL ("ciminterface.dll") has been generated correctly.

These DLL have been deploy in the same directory of the application;

ciminterface.dll (the pb webservice dll of this application)

pbwsclient115.pbd

Sybase.Powerbuilder.WebService.Runtime.dll

Sybase.PowerBuilder.WebService.RuntimeRemoteLoader.dll


When I run this code from PB everything works fine


But when compile and run the EXE I get the error 100 (Invalid proxy name) when the

"CreateInstance" is executed.


Any idea ?


Thanks a lot for your help.


P. Antoine





Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pascal;

1) The following assemblies should be installed in the MS-Windows GAC (global assembly cache) and not reside with the PB Application, as follows:

    Sybase.Powerbuilder.WebService.Runtime.dll

    Sybase.PowerBuilder.WebService.RuntimeRemoteLoader.dll

2) Use the PB Runtime Packager to deploy your application run-time DLL's as this utility will register your required .Net assemblies in the GAC for you.

3) Re-check your PBD/DLL library list to make sure you have the PBD/DLL (P-Code vs M-Code compile) library with the proxies included in your deployment.

HTH

Regards ... Chris

arnd_schmidt
Active Contributor
0 Kudos

Looks like the pbwsclient115.pbx is missing.

Take a look at the deployment instructions.


SyBooks Online (Archive)-Deploying Applications and Components


hth


Arnd

Former Member
0 Kudos

Hello Chris,

Thank you for your help.

We've found the solution;

Our application (maya) consist of 20 PBL librairies.

One of these librairies ( app_ws.pbl ) content all the proxy objects necessary to call the webservices.

The project ( p_maya ) is used to generate the EXE file and all the pbd librairies.

In this project, we have checked all the 20 librairies pbl to be generated in PBD EXCEPTED the app_ws.pbl. We forgot to check this library.

We've generated and deployed the application ;

When we run the application, we got the error 100 (Invalid proxy name) when the "CreateInstance" is executed.


After that, in the project we've checked  the library app_ws.pbl  to be generated in PBD

We generate and deploy the application.

We run the application, and everything works fine !

Regards,

P. Antoine.

Former Member
0 Kudos

Excellent new Pascal!  

Answers (0)