Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:27 AM UTC

Uniface 9: Parameters sent from Uniface to Web service not seen

Parameters sent from Uniface to Web service not seen

Author: tatiana@ca.ibm.com (tandron)

Hi,

This is our first test with web services and we use U9.3.02, SOP U2.0.  We have a web service running on a Windows machine and we successfully imported the WSDL from this service, adjusted parms properties in datamodel, compiled the newly generated model, etc. Signature created OK. In a test form, we call this service but none of the parameters is seen. We get error -150, activation error. Not sure what is wrong, the call is syntactically correct and there are no communication issues. We are unable to see the XML generated but we suspect it's empty strings. What could be wrong, are we missing anything in the setup?

Logic is something like this, we pass four parms as fields in an occurence and expect back a string:

variables 

    String vStatus

endvariables

 

PARM1.RETRIEVEREQUEST = 11 

PARM2.RETRIEVEREQUEST = "ABC" 

PARM3.RETRIEVEREQUEST = "SSSS" 

PARM4.RETRIEVEREQUEST = $date

 

activate "VWS".RETRIEVE("RETRIEVEREQUEST.HTTP_WS_TEST",vStatus)

 

Thanks,

Tatiana

 

12 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:27 AM UTC

Parameters sent from Uniface to Web service not seen

Author: tatiana@ca.ibm.com (tandron)

Hi,

This is our first test with web services and we use U9.3.02, SOP U2.0.  We have a web service running on a Windows machine and we successfully imported the WSDL from this service, adjusted parms properties in datamodel, compiled the newly generated model, etc. Signature created OK. In a test form, we call this service but none of the parameters is seen. We get error -150, activation error. Not sure what is wrong, the call is syntactically correct and there are no communication issues. We are unable to see the XML generated but we suspect it's empty strings. What could be wrong, are we missing anything in the setup?

Logic is something like this, we pass four parms as fields in an occurence and expect back a string:

variables 

    String vStatus

endvariables

 

PARM1.RETRIEVEREQUEST = 11 

PARM2.RETRIEVEREQUEST = "ABC" 

PARM3.RETRIEVEREQUEST = "SSSS" 

PARM4.RETRIEVEREQUEST = $date

 

activate "VWS".RETRIEVE("RETRIEVEREQUEST.HTTP_WS_TEST",vStatus)

 

Thanks,

Tatiana

 

With -150 there should be some info of the actual error in the message frame.


Author: Theo Neeskens (tneeskens@itblockz.nl)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:27 AM UTC

Parameters sent from Uniface to Web service not seen

Author: tatiana@ca.ibm.com (tandron)

Hi,

This is our first test with web services and we use U9.3.02, SOP U2.0.  We have a web service running on a Windows machine and we successfully imported the WSDL from this service, adjusted parms properties in datamodel, compiled the newly generated model, etc. Signature created OK. In a test form, we call this service but none of the parameters is seen. We get error -150, activation error. Not sure what is wrong, the call is syntactically correct and there are no communication issues. We are unable to see the XML generated but we suspect it's empty strings. What could be wrong, are we missing anything in the setup?

Logic is something like this, we pass four parms as fields in an occurence and expect back a string:

variables 

    String vStatus

endvariables

 

PARM1.RETRIEVEREQUEST = 11 

PARM2.RETRIEVEREQUEST = "ABC" 

PARM3.RETRIEVEREQUEST = "SSSS" 

PARM4.RETRIEVEREQUEST = $date

 

activate "VWS".RETRIEVE("RETRIEVEREQUEST.HTTP_WS_TEST",vStatus)

 

Thanks,

Tatiana

 

Hi Tatiana

with the activate you have put the name of the entity in quotes.

So your parameter is just the string "RETRIEVEREQUEST.HTTP_WS_TEST", not the expected entity.

Remove the quotes and give it another try.

Uli


Author: ulrich-merkel (ulrichmerkel@web.de)