Home > Back-end >  Distress delphi7 development webservice problem
Distress delphi7 development webservice problem

Time:09-21

I use delphi7 established a webservice finally compiled into iis post project, program can be run, but if use database control will quote

Wrong "org. Apache. Axis. AxisFault: Access violation at address 0232 a764 module in 'project1. DLL'. Read of address" trouble which used

Delphi7 development webservice expert help to see, what I use is wsCaller. The jar to test, and is there a better way of testing webservice

The function Tmain. Deduction (Shopno, openid: string; Money: integer) : string;
Var
Bs, cardid: string;
Jifen, kj_money: integer;
Sjkj_money: integer;
The begin
/////if not perform this is normal
WebModule1. ADOQuery1. Close;
WebModule1. ADOQuery1. SQL. The Clear;
WebModule1. ADOQuery1. SQL. The Add (' select * from Wechatinfo where WCIOPENID='" + trim (openid) + "' ");
WebModule1. ADOQuery1. Open;
/////if not perform this is normal
Result:='aaaaa
end

CodePudding user response:

Try to join CoInitialize and CoUninitialize up and down

CodePudding user response:

The to jjpweb
Or an error, please help to see again, thank you

CodePudding user response:

For the most part is TADOConnection connection is not successful, the open will go wrong,
The database connection, find the reason,

CodePudding user response:

Problem solved; I also encountered similar problems, solving

CodePudding user response:

http://blog.csdn.net/pcwe2002/article/details/52527782
Included in the sample back to HTTP by writing stored procedures provide json, than webservice efficiently
  • Related