Symptom
Trying to connect to a web service and getting the following error message:
The above error occurs immediatle after creating the SoapConnection object in the following code:
soapconnection conn
long ll_rtn
currencyserverwebservice pobj
conn = create soapconnection
//The error occurs here
ll_rtn = conn.createinstance(pobj, "currencyserverwebservice")
Environment
PowerBuilder
Windows 7 64-bit
Cause
This error was caused because the libea32.dll was being loaded from the C:\Windows\SysWOW64 folder instead of the Shared\PowerBuilder folder. This was determined by running process monitor when trying to run the application. The following were the entries in the Process Monitor console/log:
CreateFile C:\Program Files
(x86)\Appeon\PowerBuilder 170\LIBEAY32.dll NAME NOT FOUND
Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point,
Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
CreateFile
C:\Windows\SysWOW64\libeay32.dll SUCCESS Desired Access: Read
Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode:
Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
Resolution
Renaming the C:\Windows\SYSWOW64\libea32.dll enabled the Shared\PowerBuilder\libea32.dll to load and solved the problem.