- Antony Xavier
- PowerServer 2020 or older (Obsolete)
- Wednesday, 8 January 2020 06:12 AM UTC
Hi Gurus,
I have web service, which was in Old version (pb 10.5) and convert to pb2017r3 , it is working from Design & Runtime(Exe) . When I convert to web I changed the code and using "appeonwebservicecomponent" as mentioned in the help, it is not working, always returns -1, and in error message always null, following are my code, advice me how to solve.
/*********************************************************************/
/*Sample Code*/
integer IRet
any paralist[]
appeonwebservicecomponent caller
caller=create appeonwebservicecomponent
caller.calltype="1"
caller.proxydllorurl="http://myserver/DWURLIntegApp/service.asmx"
caller.classdescript=""
paralist[1]="Finance"
paralist[2]=758
TRY
IRet=caller.of_callwebservice("GetDWIntegrationURLByDocID",paralist)
CATCH (runtimeerror EX1)
MessageBox ( 'Find Error', ex1.GetMessage() )
END TRY
MessageBox ( string(IRet), string(caller.ErrorText))
If Isnull(caller.ReturnValue) Then
MessageBox ( string(IRet), 'null returnvalue')
else
MessageBox ( string(IRet), 'not null returnvalue') //always show
MessageBox ( string(IRet), string(caller.ReturnValue) )
end if
/*********************************************************************/
Regards
Antony
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.