Client Machine
Powerbuilder 11.5.3127
.NET Framework is 2.0.50727
XP Pro SP3
Developers Machine
Powerbuilder 11.5.3127
.NET Framework is 3.5
XP Pro SP3
Added a web service to an existing Powerbuilder
11.5 application.
The NVO is created and the instance for the proxy
is created.
I am able to run the app and access the webservice
on my development machine with no issues.
I created a new Runtime Package using the PB
Runtime Packageer tool to include the SOAP Client, PB components, and the DB
interfaces. I un-install the previous installation of the PB 11.5 runtimes
on the clients pc and then I install the new msi that includes the SOAP
Client. Even re-booted the pc. The msi included 52
files.
I launch the pb 11.5 app and it launches
fine. But when I click on the button that I know will call the method for
the web services I get a message 'The .NET engine is unableto start". The
message is from the system since I am using the Throwable object to catch the
errors.
Any Ideas/Clues?????
My code:
instance variables for NVO
s2009_service iproxy_webservice
SoapConnection
iSOAP_connection
constructor
isoap_connection = CREATE
SoapConnection
of_instantiateservice(iproxy_webservice,
"s2009_service")
Function #1
(of_instantiateservice)
<<<< This works fine and the proxy is created
TRY
rc =
iSOAP_connection.CreateInstance(proxy, ptype)
CHOOSE CASE
rc
CASE 100
sMsg = "Invalid proxy name - " +
pType
CASE 101
sMsg = "Failed to create
proxy"
CASE 0
sMsg = ""
CASE
ELSE
sMsg = "Unknown error (" + String(rc) +
")"
END CHOOSE
if rc <> 0
then MessageBox("Web Service CDB Cust IDs - Invocation Error", sMsg,
Exclamation!)
CATCH (PBXRuntimeError rte)
rc =
-1
MessageBox("Web Service CDB Cust IDs - Runtime Error",
rte.GetMessage(), Exclamation!)
CATCH (Throwable te)
rc =
-1
MessageBox("Web Service CDB Cust IDs - Throwable Runtime Error",
te.GetMessage(), Exclamation!)
END TRY
Function
#2 (of_retrieve_cdb_custids)
<<<<<<<<<<< Failed when calling the
method
s2009_customer lnv_cdb_customer
s_cdb_customers lstr_cdb_customers
TRY
lnv_cdb_customer =
iproxy_webservice.retrieveids(cust_id)
//***********************************************
// Add data to the local structure to be passed
back
//***********************************************
lstr_cdb_customers.TXPid = lnv_cdb_customer.TXPid
lstr_cdb_customers.IDDid = lnv_cdb_customer.IDDid
lstr_cdb_customers.DFCid = lnv_cdb_customer.DFCid
lstr_cdb_customers.IWid = lnv_cdb_customer.IWid
lstr_cdb_customers.HTXid = lnv_cdb_customer.HTXid
lstr_cdb_customers.total_cust_id_count = li_cust_id_count
CATCH (Throwable
Err)
lstr_cdb_customers.total_cust_id_count = 0
Messagebox("Web
Service CDB Cust IDs - Error","Unable to determine number of CDB Lookup IDs.~r~r
Please
Contact IT Support.~r~rCannot connect to Web Service.~r" +
string(Err.getmessage()))
END TRY