JonMeecham
Member
Environment (my Windows PC)
-------------------------------------------------------------
WSA Web Services
Status:wsa1:OK:111
-------------------------------------------------------------
Therefore the adapter is working okay.
I've created a simple program to add two numbers together and return the sum. I've added this to a webservice using the proxy generator. Then I deployed the web service using Progress explorer.
The webservice has a FREE session model (i.e. not managed).
The appServer it points to is STATE-FREE.
When I run the following code it hangs on the line that begins RUN simplesum ..... (I've replaced specific services in this post with WebServiceName to be generic)
-------------------------------------------------------------
DEFINE VARIABLE hWebServer AS HANDLE NO-UNDO.
DEFINE VARIABLE hWebServiceNameObj AS HANDLE NO-UNDO.
DEFINE VARIABLE piReturnValue AS INTEGER NO-UNDO.
CREATE SERVER hWebServer.
hWebServer:CONNECT("-WSDL C:\Progress\webservice\webservicename.wsdl").
/* This message says [yes WEBSERVICE] */
MESSAGE "Connected?" hWebServer:CONNECTED() hWebServer:SUBTYPE.
IF NOT hWebServer:CONNECTED() THEN RETURN.
RUN webServiceNameObj SET hWebServiceNameObj ON hWebServer NO-ERROR.
/* This message says [yes] */
MESSAGE "Valid Handle to Procedure?" VALID-HANDLE(hWebServiceNameObj).
IF NOT VALID-HANDLE(hWebServiceNameObj) THEN RETURN.
/* Ths run statement hangs */
RUN simplesum IN hWebServiceNameObj
(INPUT 1,
INPUT 2,
OUTPUT piReturnValue).
/* We never get here at all */
MESSAGE "return = " piReturnValue.
hWebServer: DISCONNECT().
DELETE OBJECT hWebServer.
-------------------------------------------------------------
Nothing appears in any logs anywhere on the PC.
Does anyone have any ideas why it's hanging?
Cheers
Jon
- WinXP Pro
- OpenEdge 10.0B
- Apache Tomcat 5.5
-------------------------------------------------------------
WSA Web Services
Status:wsa1:OK:111
-------------------------------------------------------------
Therefore the adapter is working okay.
I've created a simple program to add two numbers together and return the sum. I've added this to a webservice using the proxy generator. Then I deployed the web service using Progress explorer.
The webservice has a FREE session model (i.e. not managed).
The appServer it points to is STATE-FREE.
When I run the following code it hangs on the line that begins RUN simplesum ..... (I've replaced specific services in this post with WebServiceName to be generic)
-------------------------------------------------------------
DEFINE VARIABLE hWebServer AS HANDLE NO-UNDO.
DEFINE VARIABLE hWebServiceNameObj AS HANDLE NO-UNDO.
DEFINE VARIABLE piReturnValue AS INTEGER NO-UNDO.
CREATE SERVER hWebServer.
hWebServer:CONNECT("-WSDL C:\Progress\webservice\webservicename.wsdl").
/* This message says [yes WEBSERVICE] */
MESSAGE "Connected?" hWebServer:CONNECTED() hWebServer:SUBTYPE.
IF NOT hWebServer:CONNECTED() THEN RETURN.
RUN webServiceNameObj SET hWebServiceNameObj ON hWebServer NO-ERROR.
/* This message says [yes] */
MESSAGE "Valid Handle to Procedure?" VALID-HANDLE(hWebServiceNameObj).
IF NOT VALID-HANDLE(hWebServiceNameObj) THEN RETURN.
/* Ths run statement hangs */
RUN simplesum IN hWebServiceNameObj
(INPUT 1,
INPUT 2,
OUTPUT piReturnValue).
/* We never get here at all */
MESSAGE "return = " piReturnValue.
hWebServer: DISCONNECT().
DELETE OBJECT hWebServer.
-------------------------------------------------------------
Nothing appears in any logs anywhere on the PC.
Does anyone have any ideas why it's hanging?
Cheers
Jon