
Well i dont know how use a webservice previously exposed, acording me :lol:
the program to expose as a webeservice is?
/*RetChar.p*/
DEFINE OUTPUT PARAMETER pChar AS CHARACTER.
ASSIGN pChar = "Hello World".
The code for acces this webservices is:
DEFINE VARIABLE hWeatherWS AS HANDLE NO-UNDO.
DEFINE VARIABLE hPortType AS HANDLE NO-UNDO.
DEFINE VARIABLE cTemp AS CHARACTER NO-UNDO.
CREATE SERVER hWeatherWS.
hWeatherWS:CONNECT
("-WSDL 'http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:localhost:XProject.wsdl'").
MESSAGE "Connected?" hWeatherWS:CONNECTED()hWeatherWS:SUBTYPE
VIEW-AS ALERT-BOX.
IF NOT hWeatherWS:CONNECTED () THEN RETURN.
RUN RetChar SET hPortType ON SERVER hWeatherWS (OUTPUT cTemp) .
MESSAGE "The temperature is:" ctemp
VIEW-AS ALERT-BOX.
<--------------->
And then, this messahe apears 11748
Error loading WSDL Dcoument http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:localhost:XProject.wsdl
; http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:localhost:XProject.wsdl line 2 column 44 error:
The parsed node is not wsdl:definitions document (11748)
Whe i put in the coneection line of the program obove.
-WSDL C:\tomcat\bin\wepapps\wsa\wsa1\XProject.wsdl
the result is, I have connection!!!, but with other erros.
I think this is not the way to use.
Could you please helpme, maybe its some of configuration, or i dont know
Tahnks
