prosoapclient.xml is missing when connecting a web service

PeMertens

New Member
Hi folks,


currently I am investigating how to connect public web services in order to be prepared for a customer project.

Therfore, I adopted several code samples found in this forum and in oehive.org and (quick-and-dirty) tried a code like this:

<<<<<<<<<<<<<<<
RUN AccessWebService
(INPUT "",
INPUT "-WSDL 'http://www.thomas-bayer.com/axis2/services/CSV2XMLService?wsdl'",
INPUT "",
INPUT "",
OUTPUT oXML).

PROCEDURE AccessWebService.
DEFINE VARIABLE hWebService AS HANDLE NO-UNDO.
DEFINE VARIABLE hServiceType AS HANDLE NO-UNDO.

DEFINE INPUT PARAMETER ipXml AS longchar NO-UNDO.
DEFINE INPUT PARAMETER ipWsdl AS CHARACTER NO-UNDO.
DEFINE INPUT PARAMETER ipServiceName AS CHARACTER NO-UNDO.
DEFINE INPUT PARAMETER ipServiceCall AS CHARACTER NO-UNDO.
DEFINE OUTPUT PARAMETER opXml AS longchar NO-UNDO.

CREATE SERVER hWebService.

hWebService:CONNECT(ipWsdl) NO-ERROR.
IF NOT hWebService:CONNECTED() THEN DO:
DEFINE VARIABLE errmsg AS CHARACTER NO-UNDO INIT "SERVER NOT CONNECTED~n".
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO ERROR-STATUS:NUM-MESSAGES:
errmsg = errmsg + ERROR-STATUS:GET-MESSAGE(i) + '~n'.
END.
MESSAGE errmsg VIEW-AS ALERT-BOX ERROR.
STOP.
END.
ELSE DO:
MESSAGE 'connected' VIEW-AS ALERT-BOX.
hWebService:DISCONNECT().
END.
DELETE OBJECT hWebService.
END PROCEDURE.
>>>>>>>>>>>>>>

When running this the first time, the following error message appears:

SERVER NOT CONNECTED
Error initializing SOAP Processor: File open error: C:/programme/progress/dlc01/properties/prosoapclient.xml) (11733)

:confused: Where can I find this component?

Subsequent trials end up in error message 11442 (which is logical but should be mentioned to complete the picture.

My environment is:
Win2000 Server
OE 10.1B
The web service mentioned above is a public one.

The server I am working on runs several versions of Progress simultaneously such as 8, 9 and 10 in different DLC-environments (it´s a development server).

Thank you very much.
Peter

My research in the knowledgebase and other places
 
Maybe an obvious one, but does C:/programme/progress/dlc01/properties/prosoapclient.xml exist?

Casper.
 
Hi Casper,

no, it didn´t. But meanwhile I found the missing components on our LINUX development server. This let me overcome the problem but introduced error message "Error initializing SOAP Processor: Cannot instantiate class 'WASP_WSDLFaultExceptionDeserializer' (11733)" instead.

But there is already a Progress KB entry for this (P127858) which explains that there is obviously a mix of a 10.1A and 10.1B installation.

So I am going to check this and will post the outcome of all of this in this thread to let the community benefit.

Thanks,
Peter
 
Back
Top