1. Andres Slachevsky
  2. PowerServer 2020 or older (Obsolete)
  3. Friday, 4 May 2018 14:26 PM UTC

Hello All,

im using this code to call a WS in a Appeon 2016 PB 12.5 APP

this code work

g_ws_caller = Create appeonwebservicecomponent 
g_ws_caller.calltype = "1" 
 
g_ws_caller.proxydllorurl="http://appeon-01/ws_sicaj/n_ws_sicaj.asmx"
g_ws_caller.classdescript=""
 
ws_paralist[1] = sqlca1.logid
ws_paralist[2] = sqlca1.logpass
 
ll_Ret=g_ws_caller.of_callwebservice("uf_connect_odbc",ws_paralist)
 
and any other WS with 2 or less parameters
when i try call any WS with 3 or more i get an error
for example
 
 appeonwebservicecomponent  l_ws_caller
l_ws_caller = Create appeonwebservicecomponent 
l_ws_caller.calltype = "1" 
 
l_ws_caller.proxydllorurl="http://appeon-01/ws_sicaj/n_ws_sicaj.asmx"
l_ws_caller.classdescript=""
 
ws_paralist[1] = "A"
ws_paralist[2] = "B"
ws_paralist[3] = "C"
   //  ws_paralist[4] = ps_modstring
 
li_ws_ret =l_ws_caller.of_callwebservice("uf_test",ws_paralist)
i get this error in the error lof of appeon server
2018-05-04 10:20:08.668 : Object reference not set to an instance of an object.
   at Appeon.Util.WebServiceUtil.DynamicProxy.Initialzie(Int32 methodType, String fullPath, String typeName, String methodName)
   at Appeon.Util.WebServiceUtil.WebServiceFactory.GetProxy(Int32 methodType, String fullPath, String typeName, String methodName)
   at Appeon.Server.Commands.CallWebServiceCommand.ExecuteWebServiceMethod()
   at Appeon.Server.Commands.CallWebServiceCommand.Execute()
Appeon Support Team Accepted Answer Pending Moderation
  1. Monday, 7 May 2018 00:40 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi,

Yes, you need to restart the IIS after deploying a Web service with a new method. It is mentiond in note 2 of page below of PowerServer online help.
https://www.appeon.com/support/documents/appeon_online_help/2017/workarounds_and_api_guide/ch01s03s08.html

Regards,
ZhaoKai

Comment
There are no comments made yet.
Andres Slachevsky Accepted Answer Pending Moderation
  1. Friday, 4 May 2018 15:25 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

i Found the problem

a Restart of the IIS Solve the porblem

​when a new version of the WebService is deploy the internal definition of the WebService in PowerServer is not updated until de IIS was Reset 

uf_connect_odbc was in the old version of the WebService and that was why it was working. the other method is only in the new version 
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.