Problem in creation of webservices

Posted by Admin on 18-Mar-2010 11:48

Good Morning.

I was trying to create a webservice and consume it from progress but I'm having a problem when consuming it, and not where the problem comes.

I'm working with version Progress 10.2a (license OE Workgroup RDBMS and OE Studio).

And install webserver Apache with Tomcat.

And copy de directory <progress install>servlets\wsa to <dir install Tomcat>webapps\

So far so good, when i call to url http://localhost:8080/wsa/wsa1 in the IE give a positive response:

WSA Web Services

Status:wsa1:OK:111

In the Progress Explorer Tool I hace created and running the services AppServer (asbroker1), NameServer (NS1) and WSA Webservices adapter (WSA1).

In Wsa1 i have the webservices "TestCIAL" created with Proxygen Generator, all i think is correct, when i push Status in WSA1 tell me:

Web Services Adapter wsa1 is running

WSA Administration: Enabled

Web Services: Enabled

WSDL Retrieval: Enabled

And when i push "Status" in "TestCIAL" show me:


TestCIAL

Target NameSpace: urn:tempuri-org

Status : ENABLED

AppServerInfo : Appserver://localhost:5162/asbroker1

Session Model : Free

Style/Use : Document/Literal

Application properties:

appServerKeepalive : denyClientASK,denyServerASK

appServiceHost : localhost

appServiceName : asbroker1

appServicePort : 5162

appServiceProtocol : Appserver

....


Everythink seems ok.

But when i tried to consume this webservices gives a error:

The code to consume is:

DEFINE VARIABLE hWSDL AS HANDLE.

DEFINE VARIABLE HCIALObj AS HANDLE.

DEFINE VARIABLE RESPUESTA1 AS CHARACTER NO-UNDO.

DEFINE VARIABLE CLIENTEID AS CHARACTER NO-UNDO INITIAL 1.

CREATE SERVER hWSDL.

hWSDL:CONNECT ("-WSDL 'c:\SERVIDORWEB\Tomcat\webapps\wsa\wsa1\TestCIAL.wsdl'").

RUN TestCIALObj SET HCIALObj ON SERVER hWSDL.

RUN FORClientes IN HCIALObj(INPUT CLIENTEID, OUTPUT RESPUESTA2).

MESSAGE RESPUESTA1 VIEW-AS ALERT-BOX.

DELETE PROCEDURE HCIALObj.
hWSDL

hWSDL:DISCONNECT().
DELETE OBJECT hWSDL.


When executed then run FORClientes... generates the following error:
Operacion Web services FORClientes generó un SOAP Fault. SOAP faultstring es: Se detecto un error durante la ejecucion de la peticacion web Service (10893) (11506).

And in the log wsa1.wsa.log:

[10/03/18@11:11:27.390+0100] P-005748 T-http-8080-1 2 MaestroCIAL 4GL-Provider Error en petición de ejecución de SOAP: Connect Failure: Timeout or Interrupt occurred while attempting to communicate with NameServer. (8231) (10926)

Any idea? Problem with configuration of Explorer Tool? the configuration of Tomcat?

Or the creation os wsdl with proxy generator and this procedure?

For more information the code os procedure:

DEFINE INPUT PARAMETER CustomerNumber AS INTEGER.
DEFINE OUTPUT PARAMETER CustomerName AS CHARACTER.


IF CustomerNumber = 1 THEN ASSIGN CustomerName = "TESTE CLIENTE 1".
ELSE ASSIGN CustomerName = "TESTE CLIENTE ".

Thanks.

All Replies

Posted by Carlosj on 21-Oct-2010 07:31

Bom dia, acredito que o seu problema esteja na linha onde você esta invocando o webservice.

ao invés de:

'c:\SERVIDORWEB\Tomcat\webapps\wsa\wsa1\TestCIAL.wsdl'

use o tomcat http://localhost:8080....wsa1\TestCIAL.wsdl

This thread is closed